FileDocCategorySizeDatePackage
CstLiteral32.javaAPI DocAndroid 1.5 API2116Wed May 06 22:41:02 BST 2009com.android.dx.rop.cst

CstLiteral32

public abstract class CstLiteral32 extends CstLiteralBits
Constants which are literal 32-bit values of some sort.

Fields Summary
private final int
bits
the value as int bits
Constructors Summary
CstLiteral32(int bits)
Constructs an instance.

param
bits the value as int bits

        this.bits = bits;
    
Methods Summary
protected intcompareTo0(Constant other)
{@inheritDoc}

        int otherBits = ((CstLiteral32) other).bits;

        if (bits < otherBits) {
            return -1;
        } else if (bits > otherBits) {
            return 1;
        } else {
            return 0;
        }
    
public final booleanequals(java.lang.Object other)
{@inheritDoc}

        return (other != null) &&
            (getClass() == other.getClass()) &&
            bits == ((CstLiteral32) other).bits;
    
public final booleanfitsInInt()
{@inheritDoc}

        return true;
    
public final intgetIntBits()
{@inheritDoc}

        return bits;
    
public final longgetLongBits()
{@inheritDoc}

        return (long) bits;
    
public final inthashCode()
{@inheritDoc}

        return bits;
    
public final booleanisCategory2()
{@inheritDoc}

        return false;