FileDocCategorySizeDatePackage
BaseLocalVariables.javaAPI DocAndroid 5.1 API2076Thu Mar 12 22:18:30 GMT 2015com.android.dx.cf.attrib

BaseLocalVariables

public abstract class BaseLocalVariables extends BaseAttribute
Base attribute class for standard {@code LocalVariableTable} and {@code LocalVariableTypeTable} attributes.

Fields Summary
private final com.android.dx.cf.code.LocalVariableList
localVariables
{@code 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 {@code non-null;} attribute name
param
localVariables {@code 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
{@code non-null;} the list

        return localVariables;