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

public abstract Class ConstantCPInfo

extends ConstantPoolEntry
Class Inheritance
Known Direct Subclasses
org.apache.tools.ant.taskdefs.optional.depend.constantpool.DoubleCPInfo, org.apache.tools.ant.taskdefs.optional.depend.constantpool.FloatCPInfo, org.apache.tools.ant.taskdefs.optional.depend.constantpool.IntegerCPInfo, org.apache.tools.ant.taskdefs.optional.depend.constantpool.InvokeDynamicCPInfo, org.apache.tools.ant.taskdefs.optional.depend.constantpool.LongCPInfo, org.apache.tools.ant.taskdefs.optional.depend.constantpool.MethodTypeCPInfo, org.apache.tools.ant.taskdefs.optional.depend.constantpool.ModuleCPInfo, org.apache.tools.ant.taskdefs.optional.depend.constantpool.PackageCPInfo, org.apache.tools.ant.taskdefs.optional.depend.constantpool.StringCPInfo

A Constant Pool entry which represents a constant value.

Field Summary

Modifier and TypeField and Description
private Object
value

The entry's untyped value.

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
protected
ConstantCPInfo(int
the constant pool entry type to be used.
tagValue
,
int
the number of constant pool entry slots occupied by this entry.
entries
)

Initialise the constant entry.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the value of the constant (untyped).
getValue
()

Get the value of the constant.

public void
setValue(Object
the new untyped value of this constant.
newValue
)

Set the constant value.

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

Field Detail

valueback to summary
private Object value

The entry's untyped value. Each subclass interprets the constant value based on the subclass's type. The value here must be compatible.

Constructor Detail

ConstantCPInfoback to summary
protected ConstantCPInfo(int tagValue, int entries)

Initialise the constant entry.

Parameters
tagValue:int

the constant pool entry type to be used.

entries:int

the number of constant pool entry slots occupied by this entry.

Method Detail

getValueback to summary
public Object getValue()

Get the value of the constant.

Returns:Object

the value of the constant (untyped).

setValueback to summary
public void setValue(Object newValue)

Set the constant value.

Parameters
newValue:Object

the new untyped value of this constant.