FileDocCategorySizeDatePackage
CstInsn.javaAPI DocAndroid 5.1 API2163Thu Mar 12 22:18:30 GMT 2015com.android.dx.rop.code

CstInsn

public abstract class CstInsn extends Insn
Instruction which contains an explicit reference to a constant.

Fields Summary
private final com.android.dx.rop.cst.Constant
cst
{@code non-null;} the constant
Constructors Summary
public CstInsn(Rop opcode, SourcePosition position, RegisterSpec result, RegisterSpecList sources, com.android.dx.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;} constant

        super(opcode, position, result, sources);

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

        this.cst = cst;
    
Methods Summary
public booleancontentEquals(Insn b)
{@inheritDoc}

        /*
         * The cast (CstInsn)b below should always succeed since
         * Insn.contentEquals compares classes of this and b.
         */
        return super.contentEquals(b)
                && cst.equals(((CstInsn)b).getConstant());
    
public com.android.dx.rop.cst.ConstantgetConstant()
Gets the constant.

return
{@code non-null;} the constant

        return cst;
    
public java.lang.StringgetInlineString()
{@inheritDoc}

        return cst.toHuman();