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

CstLong

public final class CstLong extends CstLiteral64
Constants of type CONSTANT_Long_info.

Fields Summary
public static final CstLong
VALUE_0
non-null; instance representing 0
public static final CstLong
VALUE_1
non-null; instance representing 1
Constructors Summary
private CstLong(long value)
Constructs an instance. This constructor is private; use {@link #make}.

param
value the long value

        super(value);
    
Methods Summary
public com.android.dx.rop.type.TypegetType()
{@inheritDoc}

        return Type.LONG;
    
public longgetValue()
Gets the long value.

return
the value

        return getLongBits();
    
public static com.android.dx.rop.cst.CstLongmake(long value)
Makes an instance for the given value. This may (but does not necessarily) return an already-allocated instance.

param
value the long value


                                
         
        /*
         * Note: Javadoc notwithstanding, this implementation always
         * allocates.
         */
        return new CstLong(value);
    
public java.lang.StringtoHuman()
{@inheritDoc}

        return Long.toString(getLongBits());
    
public java.lang.StringtoString()
{@inheritDoc}

        long value = getLongBits();
        return "long{0x" + Hex.u8(value) + " / " + value + '}";
    
public java.lang.StringtypeName()
{@inheritDoc}

        return "long";