java.io.Serializable, java.lang.Cloneable, IndexedInstruction, LoadClass, TypedInstructionFieldInstruction, InvokeInstructionpublic abstract class FieldOrMethod extends CPInstruction implements LoadClass
indexlength, opcode| Modifier | Constructor | Description |
|---|---|---|
protected |
FieldOrMethod(short opcode,
int index) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getClassName(ConstantPoolGen cpg) |
Deprecated.
If the instruction references an array class,
this method will return "java.lang.Object".
|
ObjectType |
getClassType(ConstantPoolGen cpg) |
Deprecated.
If the instruction references an array class,
the ObjectType returned will be invalid.
|
ObjectType |
getLoadClassType(ConstantPoolGen cpg) |
Returns the ObjectType of the referenced class or interface
that may be loaded and resolved.
|
java.lang.String |
getName(ConstantPoolGen cpg) |
|
ReferenceType |
getReferenceType(ConstantPoolGen cpg) |
Return the reference type representing the class, interface,
or array class referenced by the instruction.
|
java.lang.String |
getSignature(ConstantPoolGen cpg) |
dump, getIndex, getType, initFromFile, setIndex, toString, toStringaccept, consumeStack, copy, equals, getComparator, getLength, getName, getOpcode, produceStack, readInstruction, setComparator, toStringprotected FieldOrMethod(short opcode,
int index)
index - to constant poolpublic java.lang.String getSignature(ConstantPoolGen cpg)
public java.lang.String getName(ConstantPoolGen cpg)
public java.lang.String getClassName(ConstantPoolGen cpg)
public ObjectType getClassType(ConstantPoolGen cpg)
public ReferenceType getReferenceType(ConstantPoolGen cpg)
cpg - the ConstantPoolGen used to create the instructionpublic ObjectType getLoadClassType(ConstantPoolGen cpg)
LoadClassgetLoadClassType in interface LoadClass