|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.enhancer.classfile.Insn
Insn is an abstract class which represents a java VM instruction in a sequence of instructions.
Field Summary | |
static int |
opc_target
|
Method Summary | |
Insn |
append(Insn i)
Append an instruction sequence at the end of this instruction sequence. |
abstract java.lang.String |
argTypes()
What are the types of the stack operands ? |
abstract boolean |
branches()
Does this instruction branch? |
static Insn |
create(int theOpCode)
Create an instruction which requires no immediate operands |
static Insn |
create(int theOpCode,
ConstBasic constValue)
Create an instruction which requires a single constant from the constant pool as an immediate operand. |
static Insn |
create(int theOpCode,
InsnTarget target)
Create an instruction which requires a single branch offset as an immediate operand. |
static Insn |
create(int theOpCode,
int intValue)
Create an instruction which requires a single integral constant as an immediate operand. |
Insn |
insert(Insn i)
Insert an instruction sequence in the code sequence after this instruction. |
boolean |
isEqual(java.util.Stack msg,
java.lang.Object obj)
Compares this instance with another for structural equality. |
static int |
loadStoreDataType(int opcode)
Return the type of value manipulated by the load/store instruction |
void |
markTargets()
Mark possible branch targets |
Insn |
next()
Returns the next instruction in the code sequence |
abstract int |
nStackArgs()
How many words of stack operands does this instruction take? |
abstract int |
nStackResults()
How many words of stack results does this instruction deposit? |
int |
offset()
Return the offset of this instruction in the containing code sequence |
int |
opcode()
Return the opcode for this instruction |
static java.lang.String |
opName(int opcode)
Return the name of the operation for a given opcode |
Insn |
prev()
Returns the previous instruction in the code sequence |
void |
printInsn(java.io.PrintStream out)
Print this instruction to the output stream |
void |
printList(java.io.PrintStream out)
Print the sequence of instructions to the output stream |
void |
remove()
Removes the current instruction from it's embedding sequence. |
abstract java.lang.String |
resultTypes()
What are the types of the stack results? |
Insn |
setNext(Insn i)
Insert the single instruction in the code sequence after this instruction. |
java.lang.String |
toString()
A printable representation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int opc_target
Method Detail |
public Insn next()
public Insn prev()
public void remove()
public Insn setNext(Insn i)
public Insn insert(Insn i)
public Insn append(Insn i)
public int opcode()
public int offset()
public abstract int nStackArgs()
public abstract int nStackResults()
public abstract java.lang.String argTypes()
public abstract java.lang.String resultTypes()
public abstract boolean branches()
public void markTargets()
public static java.lang.String opName(int opcode)
public static Insn create(int theOpCode)
public static Insn create(int theOpCode, ConstBasic constValue)
public static Insn create(int theOpCode, int intValue)
public static Insn create(int theOpCode, InsnTarget target)
public void printList(java.io.PrintStream out)
public void printInsn(java.io.PrintStream out)
public boolean isEqual(java.util.Stack msg, java.lang.Object obj)
public java.lang.String toString()
public static final int loadStoreDataType(int opcode)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |