public abstract class FieldInstruction extends FieldOrMethod
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
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, getReferenceType
getName, getNameAndType, getSignature
dump, getIndex, initFromFile, setIndex, toString
accept, consumeStack, copy, dispose, equals, getComparator, getLength, getName, getOpcode, hashCode, produceStack, readInstruction, setComparator, toString
private static final long serialVersionUID
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)