FileDocCategorySizeDatePackage
CstLong.javaAPI DocAndroid 5.1 API2288Thu Mar 12 22:18:30 GMT 2015com.android.dx.rop.cst

CstLong

public final class CstLong extends CstLiteral64
Constants of type {@code CONSTANT_Long_info}.

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

param
value the {@code long} value

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

        return Type.LONG;
    
public longgetValue()
Gets the {@code 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 {@code 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";