| java.lang.Object classycle.classfile.Constant classycle.classfile.RefConstant
All known Subclasses: classycle.classfile.InterfaceMethodRefConstant, classycle.classfile.MethodRefConstant, classycle.classfile.FieldRefConstant,
RefConstant | abstract public class RefConstant extends Constant (Code) | | Abstract supper class of all reference constants.
author: Franz-Josef Elmer |
Constructor Summary | |
public | RefConstant(Constant[] pool, int classIndex, int nameAndTypeIndex) Creates an instance for the specified class, name, and type.
Parameters: pool - Constant pool. |
RefConstant | public RefConstant(Constant[] pool, int classIndex, int nameAndTypeIndex)(Code) | | Creates an instance for the specified class, name, and type.
Parameters: pool - Constant pool. Needed for resolving references. Parameters: classIndex - Index of ClassConstant. Parameters: nameAndTypeIndex - Index of NameAndTypeConstant. |
toString | protected String toString(String constantType)(Code) | | Pretty printing. Will be used by toString of the subclasses.
|
|
|