FileDocCategorySizeDatePackage
LocalStart.javaAPI DocAndroid 1.5 API2986Wed May 06 22:41:02 BST 2009com.android.dx.dex.code

LocalStart

public final class LocalStart extends ZeroSizeInsn
Pseudo-instruction which is used to introduce a new local variable. That is, an instance of this class in an instruction stream indicates that starting with the subsequent instruction, the indicated variable is bound.

Fields Summary
private final com.android.dx.rop.code.RegisterSpec
local
non-null; register spec representing the local variable introduced by this instance
Constructors Summary
public LocalStart(com.android.dx.rop.code.SourcePosition position, com.android.dx.rop.code.RegisterSpec local)
Constructs an instance. The output address of this instance is initially unknown (-1).

param
position non-null; source position
param
local non-null; register spec representing the local variable introduced by this instance

        super(position);

        if (local == null) {
            throw new NullPointerException("local == null");
        }

        this.local = local;
    
Methods Summary
protected java.lang.StringargString()
{@inheritDoc}

        return local.toString();
    
public com.android.dx.rop.code.RegisterSpecgetLocal()
Gets the register spec representing the local variable introduced by this instance.

return
non-null; the register spec

        return local;
    
protected java.lang.StringlistingString0(boolean noteIndices)
{@inheritDoc}

        return "local-start " + localString(local);
    
public static java.lang.StringlocalString(com.android.dx.rop.code.RegisterSpec spec)
Returns the local variable listing string for a single register spec.

param
spec non-null; the spec to convert
return
non-null; the string form

        return spec.regString() + ' " + spec.getLocalItem().toString() + ": " +
            spec.getTypeBearer().toHuman();
    
public DalvInsnwithRegisterOffset(int delta)
{@inheritDoc}

        return new LocalStart(getPosition(), local.withOffset(delta));
    
public DalvInsnwithRegisters(com.android.dx.rop.code.RegisterSpecList registers)
{@inheritDoc}

        return new LocalStart(getPosition(), local);