FileDocCategorySizeDatePackage
BaseLocalVariables.javaAPI DocAndroid 1.5 API2056Wed May 06 22:41:02 BST 2009com.android.dx.cf.attrib

BaseLocalVariables

public abstract class BaseLocalVariables extends BaseAttribute
Base attribute class for standard LocalVariableTable and LocalVariableTypeTable attributes.

Fields Summary
private final com.android.dx.cf.code.LocalVariableList
localVariables
non-null; list of local variable entries
Constructors Summary
public BaseLocalVariables(String name, com.android.dx.cf.code.LocalVariableList localVariables)
Constructs an instance.

param
name non-null; attribute name
param
localVariables non-null; list of local variable entries

        super(name);

        try {
            if (localVariables.isMutable()) {
                throw new MutabilityException("localVariables.isMutable()");
            }
        } catch (NullPointerException ex) {
            // Translate the exception.
            throw new NullPointerException("localVariables == null");
        }

        this.localVariables = localVariables;
    
Methods Summary
public final intbyteLength()
{@inheritDoc}

        return 8 + localVariables.size() * 10;
    
public final com.android.dx.cf.code.LocalVariableListgetLocalVariables()
Gets the list of "local variable" entries associated with this instance.

return
non-null; the list

        return localVariables;