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

public Class FieldRefCPInfo

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

A FieldRef CP Info

Field Summary

Modifier and TypeField and Description
private int
classIndex

Index into the constant pool for the class

private String
fieldClassName

Name of the field's class

private String
fieldName

name of the field in that class

private String
fieldType

The type of the field

private int
nameAndTypeIndex

Index into the constant pool for the name and type entry

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
FieldRefCPInfo()

Constructor.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the name of the class defining the field
getFieldClassName
()

Gets the name of the class defining the field

public String

Returns:

the field's name
getFieldName
()

Get the name of the field

public String

Returns:

the field's type in string format
getFieldType
()

Get the type of the field

public void
read(DataInputStream
the DataInputStream which contains the constant pool entry to be read.
cpStream
)

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

read a constant pool entry from a class stream.
public void
resolve(ConstantPool
the constant pool of which this entry is a member and against which this entry is to be resolved.
constantPool
)

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

Resolve this constant pool entry with respect to its dependents in the constant pool.
public String

Returns:

the string representation of this constant pool entry.
toString
()

Overrides java.lang.Object.toString.

Print a readable version of the constant pool entry.
Inherited from org.apache.tools.ant.taskdefs.optional.depend.constantpool.ConstantPoolEntry:
getNumEntriesgetTagisResolvedreadEntry

Field Detail

classIndexback to summary
private int classIndex

Index into the constant pool for the class

fieldClassNameback to summary
private String fieldClassName

Name of the field's class

fieldNameback to summary
private String fieldName

name of the field in that class

fieldTypeback to summary
private String fieldType

The type of the field

nameAndTypeIndexback to summary
private int nameAndTypeIndex

Index into the constant pool for the name and type entry

Constructor Detail

FieldRefCPInfoback to summary
public FieldRefCPInfo()

Constructor.

Method Detail

getFieldClassNameback to summary
public String getFieldClassName()

Gets the name of the class defining the field

Returns:String

the name of the class defining the field

getFieldNameback to summary
public String getFieldName()

Get the name of the field

Returns:String

the field's name

getFieldTypeback to summary
public String getFieldType()

Get the type of the field

Returns:String

the field's type in string format

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

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

read a constant pool entry from a class stream.

Parameters
cpStream:DataInputStream

the DataInputStream which contains the constant pool entry to be read.

Annotations
@Override
Exceptions
IOException:
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 constant pool entry with respect to its dependents in the constant pool.

Parameters
constantPool:ConstantPool

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

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Print a readable version of the constant pool entry.

Returns:String

the string representation of this constant pool entry.

Annotations
@Override