Class ConstantValue
java.lang.Object
org.fife.rsta.ac.java.classreader.attributes.AttributeInfo
org.fife.rsta.ac.java.classreader.attributes.ConstantValue
The "
ConstantValue" attribute, as defined by 4.7.2 of the
JVM specification.- Version:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intAn index into the constant pool that gives the constant value represented by this attribute. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the constant's value, as a string.intReturns the index into the constant pool that gives the constant value represented by this attribute.Methods inherited from class AttributeInfo
getClassFile, getName, readUnsupportedAttribute
-
Field Details
-
constantValueIndex
private int constantValueIndexAn index into the constant pool that gives the constant value represented by this attribute.
-
-
Constructor Details
-
ConstantValue
CConstructor.- Parameters:
cf- The class file.constantValueIndex- The index into the constant pool that gives the constant value represented by this attribute.
-
-
Method Details
-
getConstantValueIndex
public int getConstantValueIndex()Returns the index into the constant pool that gives the constant value represented by this attribute.- Returns:
- The index.
-
getConstantValueAsString
Returns the constant's value, as a string.- Returns:
- The constant's value, as a string.
-