org.aspectj.apache.bcel.classfile
Class ConstantCP

java.lang.Object
  extended by org.aspectj.apache.bcel.classfile.Constant
      extended by 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.

Version:
$Id: ConstantCP.java,v 1.5 2009/09/16 00:43:49 aclement Exp $
Author:
M. Dahm
See Also:
ConstantFieldref, ConstantMethodref, ConstantInterfaceMethodref

Method Summary
 void dump(java.io.DataOutputStream file)
           
 java.lang.String getClass(ConstantPool cp)
           
 int getClassIndex()
           
 int getNameAndTypeIndex()
           
 java.lang.String toString()
           
 
Methods inherited from class org.aspectj.apache.bcel.classfile.Constant
accept, clone, copy, getTag, getValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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