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

Class FieldRefCPInfo

public class FieldRefCPInfo extends ConstantPoolEntry

A FieldRef CP Info
Constructor Summary
FieldRefCPInfo()
Constructor.
Method Summary
StringgetFieldClassName()
Gets the name of the class defining the field
StringgetFieldName()
Get the name of the field
StringgetFieldType()
Get the type of the field
voidread(DataInputStream cpStream)
read a constant pool entry from a class stream.
voidresolve(ConstantPool constantPool)
Resolve this constant pool entry with respect to its dependents in the constant pool.
StringtoString()
Print a readable version of the constant pool entry.

Constructor Detail

FieldRefCPInfo

public FieldRefCPInfo()
Constructor.

Method Detail

getFieldClassName

public String getFieldClassName()
Gets the name of the class defining the field

Returns: the name of the class defining the field

getFieldName

public String getFieldName()
Get the name of the field

Returns: the field's name

getFieldType

public String getFieldType()
Get the type of the field

Returns: the field's type in string format

read

public void read(DataInputStream cpStream)
read a constant pool entry from a class stream.

Parameters: cpStream the DataInputStream which contains the constant pool entry to be read.

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

resolve

public void resolve(ConstantPool constantPool)
Resolve this constant pool entry with respect to its dependents in the constant pool.

Parameters: constantPool the constant pool of which this entry is a member and against which this entry is to be resolved.

toString

public String toString()
Print a readable version of the constant pool entry.

Returns: the string representation of this constant pool entry.