FileDocCategorySizeDatePackage
PlainCstInsn.javaAPI DocAndroid 5.1 API2787Thu Mar 12 22:18:30 GMT 2015com.android.dexgen.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.dexgen.rop.cst.Constant cst)
Constructs an instance.

param
opcode {@code non-null;} the opcode
param
position {@code non-null;} source position
param
result {@code null-ok;} spec for the result, if any
param
sources {@code non-null;} specs for all the sources
param
cst {@code 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.dexgen.rop.type.TypeListgetCatches()
{@inheritDoc}

        return StdTypeList.EMPTY;
    
public InsnwithAddedCatch(com.android.dexgen.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());