org.apache.tools.ant.taskdefs.optional.depend.constantpool

Class ClassCPInfo

public class ClassCPInfo extends ConstantPoolEntry

The constant pool entry which stores class information.
Constructor Summary
ClassCPInfo()
Constructor.
Method Summary
StringgetClassName()
Get the class name of this entry.
voidread(DataInputStream cpStream)
Read the entry from a stream.
voidresolve(ConstantPool constantPool)
Resolve this class info against the given constant pool.
StringtoString()
Generate a string readable version of this entry

Constructor Detail

ClassCPInfo

public ClassCPInfo()
Constructor. Sets the tag value for this entry to type Class

Method Detail

getClassName

public String getClassName()
Get the class name of this entry.

Returns: the class' name.

read

public void read(DataInputStream cpStream)
Read the entry from a stream.

Parameters: cpStream the stream containing the constant pool entry to be read.

Throws: IOException thrown if there is a problem reading the entry from the stream.

resolve

public void resolve(ConstantPool constantPool)
Resolve this class info against the given constant pool.

Parameters: constantPool the constant pool with which to resolve the class.

toString

public String toString()
Generate a string readable version of this entry

Returns: string representation of this constant pool entry

Copyright