Interface IConstantValueAttribute
- All Superinterfaces:
IClassFileAttribute
- All Known Implementing Classes:
ConstantValueAttribute
Description of a constant value attribute as described in the JVM
specifications.
This interface may be implemented by clients.
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptionAnswer back the constant pool entry that represents the constant value of this attribute.intAnswer back the constant value index.Methods inherited from interface IClassFileAttribute
getAttributeLength, getAttributeName, getAttributeNameIndexModifier and TypeMethodDescriptionlongAnswer back the attribute length as specified in the JVM specifications.char[]Answer back the attribute name as specified in the JVM specifications.intAnswer back the attribute name index in the constant pool as specified in the JVM specifications.
-
Method Details
-
getConstantValueIndex
int getConstantValueIndex()Answer back the constant value index.- Returns:
- the constant value index
-
getConstantValue
IConstantPoolEntry getConstantValue()Answer back the constant pool entry that represents the constant value of this attribute.- Returns:
- the constant pool entry that represents the constant value of this attribute
-