|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.classfile.AbstractInstructionAccessor
org.multijava.dis.InstructionHandle
| Field Summary | |
private int |
address
|
private Instruction |
instruction
|
private boolean |
isTarget
|
private ArrayList |
lineNumbers
|
| Constructor Summary | |
InstructionHandle(Instruction instruction,
int address)
Creates a new instruction handle. |
|
| Method Summary | |
void |
attachTo(AccessorContainer container)
Notifies this handle that is has been attached to the specified container. |
String |
getLabel()
Returns an identifier for the instruction address. |
private void |
printClassRef(IndentingWriter out,
ClassConstant ref)
Prints a ClassConstant. |
private void |
printFieldRef(IndentingWriter out,
FieldRefConstant ref)
|
private void |
printFieldSignature(IndentingWriter out,
String signature)
|
private void |
printInstructionHandle(IndentingWriter out,
InstructionHandle handle)
|
private void |
printInterfaceRef(IndentingWriter out,
InterfaceConstant ref)
|
private void |
printMethodRef(IndentingWriter out,
MethodRefConstant ref)
|
private void |
printMethodSpec(IndentingWriter out,
String name,
String signature)
|
private void |
printQualifiedName(IndentingWriter out,
String ident)
|
void |
write(IndentingWriter out,
boolean optionShowStack)
Prints a byte code instruction |
private void |
writeClassRefInstruction(IndentingWriter out,
ClassRefInstruction insn)
Prints a ClassRefInstruction. |
private void |
writeFieldRefInstruction(IndentingWriter out,
FieldRefInstruction insn)
Prints a FieldRefInstruction. |
private void |
writeIincInstruction(IndentingWriter out,
IincInstruction insn)
Prints a IincInstruction. |
private void |
writeInstruction(IndentingWriter out,
Instruction insn)
Prints an instruction (dispatches to instruction types). |
private void |
writeInvokeinterfaceInstruction(IndentingWriter out,
InvokeinterfaceInstruction insn)
Prints a InvokeinterfaceInstruction. |
private void |
writeJumpInstruction(IndentingWriter out,
JumpInstruction insn)
Prints a JumpInstruction. |
private void |
writeLocalVarInstruction(IndentingWriter out,
LocalVarInstruction insn)
Prints a LocalVarInstruction. |
private void |
writeMethodRefInstruction(IndentingWriter out,
MethodRefInstruction insn)
Prints a MethodRefInstruction. |
private void |
writeMultiarrayInstruction(IndentingWriter out,
MultiarrayInstruction insn)
Prints a MultiarrayInstruction. |
private void |
writeNewarrayInstruction(IndentingWriter out,
NewarrayInstruction insn)
Prints a NewarrayInstruction. |
private void |
writeNoArgInstruction(IndentingWriter out,
NoArgInstruction insn)
Prints a NoArgInstruction. |
private void |
writeOpcode(IndentingWriter out,
int opcode)
Prints the opcode. |
private void |
writeOpcode(IndentingWriter out,
String opcode)
Prints the opcode. |
private void |
writePushLiteralInstruction(IndentingWriter out,
PushLiteralInstruction insn)
Prints a PushLiteralInstruction. |
private void |
writeSwitchInstruction(IndentingWriter out,
SwitchInstruction insn)
Prints a SwitchInstruction. |
| Methods inherited from class org.multijava.util.classfile.AbstractInstructionAccessor |
transform |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private final Instruction instruction
private final int address
private ArrayList lineNumbers
private boolean isTarget
| Constructor Detail |
public InstructionHandle(Instruction instruction,
int address)
instruction - the instructionaddress - the address of the instruction| Method Detail |
public void attachTo(AccessorContainer container)
public String getLabel()
public void write(IndentingWriter out,
boolean optionShowStack)
private void writeInstruction(IndentingWriter out,
Instruction insn)
private void writeOpcode(IndentingWriter out,
String opcode)
private void writeOpcode(IndentingWriter out,
int opcode)
private void writeClassRefInstruction(IndentingWriter out,
ClassRefInstruction insn)
private void writeFieldRefInstruction(IndentingWriter out,
FieldRefInstruction insn)
private void writeIincInstruction(IndentingWriter out,
IincInstruction insn)
private void writeInvokeinterfaceInstruction(IndentingWriter out,
InvokeinterfaceInstruction insn)
private void writeJumpInstruction(IndentingWriter out,
JumpInstruction insn)
private void writeLocalVarInstruction(IndentingWriter out,
LocalVarInstruction insn)
private void writeMethodRefInstruction(IndentingWriter out,
MethodRefInstruction insn)
private void writeMultiarrayInstruction(IndentingWriter out,
MultiarrayInstruction insn)
private void writeNewarrayInstruction(IndentingWriter out,
NewarrayInstruction insn)
private void writeNoArgInstruction(IndentingWriter out,
NoArgInstruction insn)
private void writePushLiteralInstruction(IndentingWriter out,
PushLiteralInstruction insn)
private void writeSwitchInstruction(IndentingWriter out,
SwitchInstruction insn)
private void printClassRef(IndentingWriter out,
ClassConstant ref)
private void printFieldRef(IndentingWriter out,
FieldRefConstant ref)
private void printInterfaceRef(IndentingWriter out,
InterfaceConstant ref)
private void printMethodRef(IndentingWriter out,
MethodRefConstant ref)
private void printMethodSpec(IndentingWriter out,
String name,
String signature)
private void printFieldSignature(IndentingWriter out,
String signature)
private void printQualifiedName(IndentingWriter out,
String ident)
private void printInstructionHandle(IndentingWriter out,
InstructionHandle handle)
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||