com.android.dx.cf.attrib
Class AttConstantValue
java.lang.Object
com.android.dx.cf.attrib.BaseAttribute
com.android.dx.cf.attrib.AttConstantValue
- All Implemented Interfaces:
- Attribute
public final class AttConstantValue
- extends BaseAttribute
Attribute class for standard ConstantValue attributes.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ATTRIBUTE_NAME
public static final String ATTRIBUTE_NAME
non-null; attribute name for attributes of this type
- See Also:
- Constant Field Values
AttConstantValue
public AttConstantValue(TypedConstant constantValue)
- Constructs an instance.
- Parameters:
constantValue - non-null; the constant value, which must
be an instance of one of: CstString,
CstInteger, CstLong,
CstFloat, or CstDouble
byteLength
public int byteLength()
- Get the total length of the attribute in bytes, including the
header. Since the header is always six bytes, the result of
this method is always at least
6.
- Returns:
>= 6; the total length, in bytes
getConstantValue
public TypedConstant getConstantValue()
- Gets the constant value of this instance. The returned value
is an instance of one of:
CstString,
CstInteger, CstLong,
CstFloat, or CstDouble.
- Returns:
non-null; the constant value
Copyright © 2015. All rights reserved.