Top Description Fields Constructors Methods
org.aspectj.apache.bcel.classfile

public abstract Class ConstantCP

extends Constant
Class Inheritance
Known Direct Subclasses
org.aspectj.apache.bcel.classfile.ConstantFieldref, org.aspectj.apache.bcel.classfile.ConstantInterfaceMethodref, org.aspectj.apache.bcel.classfile.ConstantMethodref
Imports
java.io.DataInputStream, .DataOutputStream, .IOException, org.aspectj.apache.bcel.Constants

Abstract super class for Fieldref and Methodref constants.
Author
M. Dahm
Version
$Id: ConstantCP.java,v 1.5 2009/09/16 00:43:49 aclement Exp $
See Also
ConstantFieldref, ConstantMethodref, ConstantInterfaceMethodref

Field Summary

Modifier and TypeField and Description
protected int
protected int
Inherited from org.aspectj.apache.bcel.classfile.Constant:
tag

Constructor Summary

AccessConstructor and Description
pack-priv
ConstantCP(byte tag, DataInputStream file)

protected
ConstantCP(byte tag, int classIndex, int nameAndTypeIndex)

Method Summary

Modifier and TypeMethod and Description
public final void
public String
public final int
public final int
public final String
toString()

Overrides org.aspectj.apache.bcel.classfile.Constant.toString.

Returns a string representation of the object.
Inherited from org.aspectj.apache.bcel.classfile.Constant:
acceptclonecopygetTaggetValuereadConstant

Field Detail

classIndexback to summary
protected int classIndex
nameAndTypeIndexback to summary
protected int nameAndTypeIndex

Constructor Detail

ConstantCPback to summary
pack-priv ConstantCP(byte tag, DataInputStream file) throws IOException
ConstantCPback to summary
protected ConstantCP(byte tag, int classIndex, int nameAndTypeIndex)

Method Detail

dumpback to summary
public final void dump(DataOutputStream file) throws IOException

Implements abstract org.aspectj.apache.bcel.classfile.Constant.dump.

Annotations
@Override
getClassback to summary
public String getClass(ConstantPool cp)
getClassIndexback to summary
public final int getClassIndex()
getNameAndTypeIndexback to summary
public final int getNameAndTypeIndex()
toStringback to summary
public final String toString()

Overrides org.aspectj.apache.bcel.classfile.Constant.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override