Access | Constructor and Description |
---|---|
pack-priv | |
protected |
Modifier and Type | Method and Description |
---|---|
public String | Returns: name of the referenced class/interface
Deprecated
If the instruction references an array class, this method will return "java.lang.Object".
|
public ObjectType | Returns: type of the referenced class/interface
Deprecated
If the instruction references an array class, the ObjectType returned will be invalid. Use
getReferenceType() instead.
|
public ObjectType | Returns: type of the referenced class/interfaceA ConstantPoolGen cpg)Implements com. |
public String | |
public ReferenceType | Returns: an ObjectType (if the referenced class type is a class or interface), or an ArrayType (if the referenced class type is an array class)the ConstantPoolGen used to create the instruction cpg)Gets the reference type representing the class, interface, or array class referenced by the instruction. |
public String |
FieldOrMethod | back to summary |
---|---|
pack-priv FieldOrMethod() Empty constructor needed for Instruction.readInstruction. Not to be used otherwise. |
FieldOrMethod | back to summary |
---|---|
protected FieldOrMethod(final short opcode, final int index)
|
getClassName | back to summary |
---|---|
public String getClassName(final ConstantPoolGen cpg)
Deprecated If the instruction references an array class, this method will return "java.lang.Object". For code
generated by Java 1.5, this answer is sometimes wrong (e.g., if the "clone()" method is called on an
array). A better idea is to use the
|
getClassType | back to summary |
---|---|
public ObjectType getClassType(final ConstantPoolGen cpg)
Deprecated If the instruction references an array class, the ObjectType returned will be invalid. Use getReferenceType() instead.
|
getLoadClassType | back to summary |
---|---|
public ObjectType getLoadClassType(final ConstantPoolGen cpg) Implements com. Gets the ObjectType of the method return or field.
|
getName | back to summary |
---|---|
public String getName(final ConstantPoolGen cpg)
|
getReferenceType | back to summary |
---|---|
public ReferenceType getReferenceType(final ConstantPoolGen cpg) Gets the reference type representing the class, interface, or array class referenced by the instruction.
|
getSignature | back to summary |
---|---|
public String getSignature(final ConstantPoolGen cpg)
|