Top Description Fields Constructors Methods
org.apache.tools.ant.taskdefs.optional.depend.constantpool

public Class ClassCPInfo

extends ConstantPoolEntry
Class Inheritance
Imports
java.io.DataInputStream, .IOException

The constant pool entry which stores class information.

Field Summary

Modifier and TypeField and Description
private String
className

The class' name.

private int
index

The index into the constant pool where this class' name is stored.

Inherited from org.apache.tools.ant.taskdefs.optional.depend.constantpool.ConstantPoolEntry:
CONSTANT_CLASSCONSTANT_DOUBLECONSTANT_FIELDREFCONSTANT_FLOATCONSTANT_INTEGERCONSTANT_INTERFACEMETHODREFCONSTANT_INVOKEDYNAMICCONSTANT_LONGCONSTANT_METHODHANDLECONSTANT_METHODREFCONSTANT_METHODTYPECONSTANT_MODULEINFOCONSTANT_NAMEANDTYPECONSTANT_PACKAGEINFOCONSTANT_STRINGCONSTANT_UTF8

Constructor Summary

AccessConstructor and Description
public
ClassCPInfo()

Constructor.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the class' name.
getClassName
()

Get the class name of this entry.

public void
read(DataInputStream
the stream containing the constant pool entry to be read.
cpStream
)

Implements abstract org.apache.tools.ant.taskdefs.optional.depend.constantpool.ConstantPoolEntry.read.

Read the entry from a stream.
public void
resolve(ConstantPool
the constant pool with which to resolve the class.
constantPool
)

Overrides org.apache.tools.ant.taskdefs.optional.depend.constantpool.ConstantPoolEntry.resolve.

Resolve this class info against the given constant pool.
public String

Returns:

string representation of this constant pool entry
toString
()

Overrides java.lang.Object.toString.

Generate a string readable version of this entry
Inherited from org.apache.tools.ant.taskdefs.optional.depend.constantpool.ConstantPoolEntry:
getNumEntriesgetTagisResolvedreadEntry

Field Detail

classNameback to summary
private String className

The class' name. This will be only valid if the entry has been resolved against the constant pool.

indexback to summary
private int index

The index into the constant pool where this class' name is stored. If the class name is changed, this entry is invalid until this entry is connected to a constant pool.

Constructor Detail

ClassCPInfoback to summary
public ClassCPInfo()

Constructor. Sets the tag value for this entry to type Class

Method Detail

getClassNameback to summary
public String getClassName()

Get the class name of this entry.

Returns:String

the class' name.

readback to summary
public void read(DataInputStream cpStream) throws IOException

Implements abstract org.apache.tools.ant.taskdefs.optional.depend.constantpool.ConstantPoolEntry.read.

Read the entry from a stream.

Parameters
cpStream:DataInputStream

the stream containing the constant pool entry to be read.

Annotations
@Override
Exceptions
IOException:
thrown if there is a problem reading the entry from the stream.
resolveback to summary
public void resolve(ConstantPool constantPool)

Overrides org.apache.tools.ant.taskdefs.optional.depend.constantpool.ConstantPoolEntry.resolve.

Resolve this class info against the given constant pool.

Parameters
constantPool:ConstantPool

the constant pool with which to resolve the class.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Generate a string readable version of this entry

Returns:String

string representation of this constant pool entry

Annotations
@Override