FileDocCategorySizeDatePackage
CstInsn.javaAPI DocAndroid 1.5 API2109Wed May 06 22:41:02 BST 2009com.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
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 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; 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
non-null; the constant

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

        return cst.toHuman();