|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.classfile.AbstractInstructionAccessor
at.dms.classfile.Instruction
at.dms.classfile.FieldRefInstruction
public class FieldRefInstruction
Instructions thar refers to class fields opc_getstatic, opc_putstatic, opc_getfield, opc_putfield
Field Summary |
---|
Constructor Summary | |
---|---|
FieldRefInstruction(int opcode,
FieldRefConstant field)
Constructs a new field reference instruction from a class file |
|
FieldRefInstruction(int opcode,
String name,
String type)
Constructs a new field reference instruction |
|
FieldRefInstruction(int opcode,
String owner,
String name,
String type)
Constructs a new field reference instruction |
Method Summary | |
---|---|
boolean |
canComplete()
Returns true iff control flow can reach the next instruction in textual order. |
FieldRefConstant |
getFieldRefConstant()
Returns the field constant on which this expression refers itself |
int |
getPushedOnStack()
Returns the size of data pushed on the stack by this instruction |
byte |
getReturnType()
Returns the type pushed on the stack |
int |
getStack()
Return the amount of stack (positive or negative) used by this instruction |
Methods inherited from class at.dms.classfile.Instruction |
---|
dump, getOpcode, getPoppedFromStack, isLiteral |
Methods inherited from class at.dms.classfile.AbstractInstructionAccessor |
---|
deepClone, deepCloneInto, transform |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldRefInstruction(int opcode, String name, String type)
opcode
- the opcode of the instructionname
- the qualified name of the referenced fieldtype
- the signature of the referenced fieldpublic FieldRefInstruction(int opcode, String owner, String name, String type)
opcode
- the opcode of the instructionowner
- the qualified name of the class containing the fieldname
- the simple name of the referenced fieldtype
- the signature of the referenced fieldpublic FieldRefInstruction(int opcode, FieldRefConstant field)
opcode
- the opcode of the instructionfield
- the field reference (as pooled constant)Method Detail |
---|
public boolean canComplete()
canComplete
in class Instruction
public FieldRefConstant getFieldRefConstant()
public byte getReturnType()
getReturnType
in class Instruction
public int getPushedOnStack()
getPushedOnStack
in class Instruction
public int getStack()
getStack
in class Instruction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |