org.aspectj.apache.bcel.classfile
Class ConstantCP
java.lang.Object
org.aspectj.apache.bcel.classfile.Constant
org.aspectj.apache.bcel.classfile.ConstantCP
- All Implemented Interfaces:
- java.lang.Cloneable, Node
- Direct Known Subclasses:
- ConstantFieldref, ConstantInterfaceMethodref, ConstantMethodref
public abstract class ConstantCP
- extends Constant
Abstract super class for Fieldref and Methodref constants.
- See Also:
ConstantFieldref
,
ConstantMethodref
,
ConstantInterfaceMethodref
Fields inherited from class org.aspectj.apache.bcel.classfile.Constant |
tag |
Constructor Summary |
protected |
ConstantCP(byte tag,
int classIndex,
int nameAndTypeIndex)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
classIndex
protected int classIndex
nameAndTypeIndex
protected int nameAndTypeIndex
ConstantCP
protected ConstantCP(byte tag,
int classIndex,
int nameAndTypeIndex)
dump
public final void dump(java.io.DataOutputStream file)
throws java.io.IOException
- Specified by:
dump
in class Constant
- Throws:
java.io.IOException
getClassIndex
public final int getClassIndex()
getNameAndTypeIndex
public final int getNameAndTypeIndex()
getClass
public java.lang.String getClass(ConstantPool cp)
toString
public final java.lang.String toString()
- Overrides:
toString
in class Constant