public interface LoadClass
Modifier and Type | Method and Description |
---|---|
ObjectType |
getLoadClassType(ConstantPoolGen cpg)
Returns the
ObjectType of the referenced class or interface that may be loaded and resolved. |
Type |
getType(ConstantPoolGen cpg)
Returns the type associated with this instruction.
|
ObjectType getLoadClassType(ConstantPoolGen cpg)
ObjectType
of the referenced class or interface that may be loaded and resolved.cpg
- A ConstantPoolGenType getType(ConstantPoolGen cpg)
GETFIELD
would return the type of the field and not the type of the class where the field
is defined. If no class is forced to be loaded, null
is returned. An example for this is an NEWARRAY
instruction that creates an
int[][]
.cpg
- A ConstantPoolGengetLoadClassType(ConstantPoolGen)
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.