FileDocCategorySizeDatePackage
PlainCstInsn.javaAPI DocAndroid 1.5 API2728Wed May 06 22:41:02 BST 2009com.android.dx.rop.code

PlainCstInsn

public final class PlainCstInsn extends CstInsn
Instruction which contains an explicit reference to a constant but which cannot throw an exception.

Fields Summary
Constructors Summary
public PlainCstInsn(Rop opcode, SourcePosition position, RegisterSpec result, RegisterSpecList sources, com.android.dx.rop.cst.Constant cst)
Constructs an instance.

param
opcode non-null; the opcode
param
position non-null; source position
param
result null-ok; spec for the result, if any
param
sources non-null; specs for all the sources
param
cst non-null; the constant

        super(opcode, position, result, sources, cst);

        if (opcode.getBranchingness() != Rop.BRANCH_NONE) {
            throw new IllegalArgumentException("bogus branchingness");
        }
    
Methods Summary
public voidaccept(Visitor visitor)
{@inheritDoc}

        visitor.visitPlainCstInsn(this);
    
public com.android.dx.rop.type.TypeListgetCatches()
{@inheritDoc}

        return StdTypeList.EMPTY;
    
public InsnwithAddedCatch(com.android.dx.rop.type.Type type)
{@inheritDoc}

        throw new UnsupportedOperationException("unsupported");
    
public InsnwithNewRegisters(RegisterSpec result, RegisterSpecList sources)
{@inheritDoc}


        return new PlainCstInsn(getOpcode(), getPosition(),
                                result,
                                sources,
                                getConstant());

    
public InsnwithRegisterOffset(int delta)
{@inheritDoc}

        return new PlainCstInsn(getOpcode(), getPosition(),
                                getResult().withOffset(delta),
                                getSources().withOffset(delta),
                                getConstant());