Package 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
Attribute class for standard
ConstantValue
attributes.-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
non-null;
attribute name for attributes of this type -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the total length of the attribute in bytes, including the header.Gets the constant value of this instance.Methods inherited from class com.android.dx.cf.attrib.BaseAttribute
getName
-
Field Details
-
ATTRIBUTE_NAME
non-null;
attribute name for attributes of this type- See Also:
-
-
Constructor Details
-
AttConstantValue
Constructs an instance.- Parameters:
constantValue
-non-null;
the constant value, which must be an instance of one of:CstString
,CstInteger
,CstLong
,CstFloat
, orCstDouble
-
-
Method Details
-
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 least6
.- Returns:
>= 6;
the total length, in bytes
-
getConstantValue
Gets the constant value of this instance. The returned value is an instance of one of:CstString
,CstInteger
,CstLong
,CstFloat
, orCstDouble
.- Returns:
non-null;
the constant value
-