com.android.dx.cf.attrib
Class BaseLocalVariables

java.lang.Object
  extended by com.android.dx.cf.attrib.BaseAttribute
      extended by com.android.dx.cf.attrib.BaseLocalVariables
All Implemented Interfaces:
Attribute
Direct Known Subclasses:
AttLocalVariableTable, AttLocalVariableTypeTable

public abstract class BaseLocalVariables
extends BaseAttribute

Base attribute class for standard LocalVariableTable and LocalVariableTypeTable attributes.


Constructor Summary
BaseLocalVariables(String name, LocalVariableList localVariables)
          Constructs an instance.
 
Method Summary
 int byteLength()
          Get the total length of the attribute in bytes, including the header.
 LocalVariableList getLocalVariables()
          Gets the list of "local variable" entries associated with this instance.
 
Methods inherited from class com.android.dx.cf.attrib.BaseAttribute
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseLocalVariables

public BaseLocalVariables(String name,
                          LocalVariableList localVariables)
Constructs an instance.

Parameters:
name - non-null; attribute name
localVariables - non-null; list of local variable entries
Method Detail

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 least 6.

Returns:
>= 6; the total length, in bytes

getLocalVariables

public final LocalVariableList getLocalVariables()
Gets the list of "local variable" entries associated with this instance.

Returns:
non-null; the list


Copyright © 2015. All rights reserved.