public abstract class FieldInstruction extends FieldOrMethod implements TypedInstruction
index
length, opcode
Modifier | Constructor and Description |
---|---|
(package private) |
FieldInstruction()
Empty constructor needed for the Class.newInstance() statement in
Instruction.readInstruction().
|
protected |
FieldInstruction(short opcode,
int index) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFieldName(ConstantPoolGen cpg) |
protected int |
getFieldSize(ConstantPoolGen cpg) |
Type |
getFieldType(ConstantPoolGen cpg) |
Type |
getType(ConstantPoolGen cpg)
Returns the type associated with this instruction.
|
java.lang.String |
toString(ConstantPool cp) |
getClassName, getClassType, getLoadClassType, getName, getReferenceType, getSignature
dump, getIndex, initFromFile, setIndex, toString
accept, consumeStack, copy, dispose, equals, getComparator, getLength, getName, getOpcode, produceStack, readInstruction, setComparator, toString
FieldInstruction()
protected FieldInstruction(short opcode, int index)
index
- to constant poolpublic java.lang.String toString(ConstantPool cp)
toString
in class CPInstruction
protected int getFieldSize(ConstantPoolGen cpg)
public Type getType(ConstantPoolGen cpg)
LoadClass
getType
in interface LoadClass
getType
in interface TypedInstruction
getType
in class CPInstruction
LoadClass.getLoadClassType(ConstantPoolGen)
public Type getFieldType(ConstantPoolGen cpg)
public java.lang.String getFieldName(ConstantPoolGen cpg)