FileDocCategorySizeDatePackage
LocalStart.javaAPI DocAndroid 5.1 API3232Thu Mar 12 22:18:30 GMT 2015com.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
{@code 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 ({@code -1}).

param
position {@code non-null;} source position
param
local {@code 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
{@code 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 {@code non-null;} the spec to convert
return
{@code non-null;} the string form

        return spec.regString() + ' " + spec.getLocalItem().toString() + ": " +
            spec.getTypeBearer().toHuman();
    
public DalvInsnwithMapper(com.android.dx.ssa.RegisterMapper mapper)
{@inheritDoc}

      return new LocalStart(getPosition(), mapper.map(local));
    
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);