public abstract class RefConstant extends Constant
| Constructor and Description |
|---|
RefConstant(Constant[] pool,
int classIndex,
int nameAndTypeIndex)
Creates an instance for the specified class, name, and type.
|
| Modifier and Type | Method and Description |
|---|---|
ClassConstant |
getClassConstant()
Returns the class constant.
|
NameAndTypeConstant |
getNameAndType()
Returns the name-and-type constant.
|
protected java.lang.String |
toString(java.lang.String constantType)
Pretty printing.
|
extractConstantPool, getConstantpublic RefConstant(Constant[] pool, int classIndex, int nameAndTypeIndex)
pool - Constant pool. Needed for resolving references.classIndex - Index of ClassConstant.nameAndTypeIndex - Index of NameAndTypeConstant.public ClassConstant getClassConstant()
public NameAndTypeConstant getNameAndType()
protected java.lang.String toString(java.lang.String constantType)