|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectclassycle.classfile.Constant
classycle.classfile.RefConstant
public abstract class RefConstant
Abstract supper class of all reference constants.
| Constructor Summary | |
|---|---|
RefConstant(Constant[] pool,
int classIndex,
int nameAndTypeIndex)
Creates an instance for the specified class, name, and type. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class classycle.classfile.Constant |
|---|
extractConstantPool, getConstant |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RefConstant(Constant[] pool,
int classIndex,
int nameAndTypeIndex)
pool - Constant pool. Needed for resolving references.classIndex - Index of ClassConstant.nameAndTypeIndex - Index of NameAndTypeConstant.| Method Detail |
|---|
public ClassConstant getClassConstant()
public NameAndTypeConstant getNameAndType()
protected java.lang.String toString(java.lang.String constantType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||