public abstract class FieldInstruction extends FieldOrMethod implements TypedInstruction
indexlength, 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 |
|---|---|
String |
getFieldName(ConstantPoolGen cpg) |
protected int |
getFieldSize(ConstantPoolGen cpg) |
Type |
getFieldType(ConstantPoolGen cpg) |
Type |
getType(ConstantPoolGen cpg)
Returns the type associated with this instruction.
|
String |
toString(ConstantPool cp) |
getClassName, getClassType, getLoadClassType, getName, getReferenceType, getSignaturedump, getIndex, initFromFile, setIndex, toStringaccept, consumeStack, copy, dispose, equals, getComparator, getLength, getName, getOpcode, produceStack, readInstruction, setComparator, toStringFieldInstruction()
protected FieldInstruction(short opcode,
int index)
index - to constant poolpublic String toString(ConstantPool cp)
toString in class CPInstructionprotected int getFieldSize(ConstantPoolGen cpg)
public Type getType(ConstantPoolGen cpg)
LoadClassgetType in interface LoadClassgetType in interface TypedInstructiongetType in class CPInstructionLoadClass.getLoadClassType(ConstantPoolGen)public Type getFieldType(ConstantPoolGen cpg)
public String getFieldName(ConstantPoolGen cpg)