-
- All Implemented Interfaces:
public final class ConstantValueAttribute extends AttributeInfo
Describes a ConstantValue attribute structure.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classConstantValueAttribute.Companion
-
Field Summary
Fields Modifier and Type Field Description private IntegerconstantValueIndexprivate final Constantconstantprivate IntegerattributeNameIndexprivate final Stringname
-
Constructor Summary
Constructors Constructor Description ConstantValueAttribute(ClassFile classFile)
-
Method Summary
Modifier and Type Method Description final IntegergetConstantValueIndex()Constant pool index of the constant value. final UnitsetConstantValueIndex(Integer constantValueIndex)Constant pool index of the constant value. final ConstantgetConstant()IntegergetAttributeLength()Get the length of this attribute in bytes. -
Methods inherited from class org.gjt.jclasslib.structures.AttributeInfo
getAttributeNameIndex, getName, setAttributeNameIndex -
Methods inherited from class org.gjt.jclasslib.structures.Structure
read, write -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ConstantValueAttribute
ConstantValueAttribute(ClassFile classFile)
-
-
Method Detail
-
getConstantValueIndex
final Integer getConstantValueIndex()
Constant pool index of the constant value.
-
setConstantValueIndex
final Unit setConstantValueIndex(Integer constantValueIndex)
Constant pool index of the constant value.
-
getConstant
final Constant getConstant()
-
getAttributeLength
Integer getAttributeLength()
Get the length of this attribute in bytes.
-
-
-
-