Top Description Methods
org.apache.bcel.classfile

public Interface ConstantObject

Known Direct Implementers
org.apache.bcel.classfile.ConstantPackage, org.apache.bcel.classfile.ConstantString, org.apache.bcel.classfile.ConstantClass, org.apache.bcel.classfile.ConstantDouble, org.apache.bcel.classfile.ConstantFloat, org.apache.bcel.classfile.ConstantInteger, org.apache.bcel.classfile.ConstantLong, org.apache.bcel.classfile.ConstantModule

This interface denotes those constants that have a "natural" value, such as ConstantLong, ConstantString, etc..
See Also
Constant

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

object representing the constant, e.g., Long for ConstantLong.
getConstantValue
(ConstantPool
the constant.
constantPool
)

Gets the object representing the constant, e.g., Long for ConstantLong.

Method Detail

getConstantValueback to summary
public Object getConstantValue(ConstantPool constantPool)

Gets the object representing the constant, e.g., Long for ConstantLong.

Parameters
constantPool:ConstantPool

the constant.

Returns:Object

object representing the constant, e.g., Long for ConstantLong.