Package com.android.dx.cf.attrib
Class BaseLocalVariables
java.lang.Object
com.android.dx.cf.attrib.BaseAttribute
com.android.dx.cf.attrib.BaseLocalVariables
- All Implemented Interfaces:
Attribute
- Direct Known Subclasses:
AttLocalVariableTable
,AttLocalVariableTypeTable
Base attribute class for standard
LocalVariableTable
and LocalVariableTypeTable
attributes.-
Constructor Summary
ConstructorDescriptionBaseLocalVariables
(String name, LocalVariableList localVariables) Constructs an instance. -
Method Summary
Modifier and TypeMethodDescriptionfinal int
Get the total length of the attribute in bytes, including the header.final LocalVariableList
Gets the list of "local variable" entries associated with this instance.Methods inherited from class com.android.dx.cf.attrib.BaseAttribute
getName
-
Constructor Details
-
BaseLocalVariables
Constructs an instance.- Parameters:
name
-non-null;
attribute namelocalVariables
-non-null;
list of local variable entries
-
-
Method Details
-
byteLength
public final 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
-
getLocalVariables
Gets the list of "local variable" entries associated with this instance.- Returns:
non-null;
the list
-