public final class AttConstantValue extends BaseAttribute
ConstantValue attributes.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTRIBUTE_NAME
non-null; attribute name for attributes of this type |
| Constructor and Description |
|---|
AttConstantValue(TypedConstant constantValue)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
byteLength()
Get the total length of the attribute in bytes, including the
header.
|
TypedConstant |
getConstantValue()
Gets the constant value of this instance.
|
getNamepublic static final java.lang.String ATTRIBUTE_NAME
non-null; attribute name for attributes of this typepublic AttConstantValue(TypedConstant constantValue)
constantValue - non-null; the constant value, which must
be an instance of one of: CstString,
CstInteger, CstLong,
CstFloat, or CstDoublepublic int byteLength()
6.>= 6; the total length, in bytespublic TypedConstant getConstantValue()
CstString,
CstInteger, CstLong,
CstFloat, or CstDouble.non-null; the constant valueCopyright © 2020. All Rights Reserved.