java.io.Serializable
, java.lang.Cloneable
, IndexedInstruction
, LoadClass
, TypedInstruction
public abstract class FieldInstruction extends FieldOrMethod implements TypedInstruction
index
length, opcode
Modifier | Constructor | Description |
---|---|---|
protected |
FieldInstruction(short opcode,
int index) |
Modifier and Type | Method | 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) |
dump, getIndex, initFromFile, setIndex, toString
getClassName, getClassType, getLoadClassType, getName, getReferenceType, getSignature
accept, consumeStack, copy, equals, getComparator, getLength, getName, getOpcode, produceStack, readInstruction, setComparator, toString
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)