FileDocCategorySizeDatePackage
CstDouble.javaAPI DocAndroid 5.1 API2538Thu Mar 12 22:18:30 GMT 2015com.android.dexgen.rop.cst

CstDouble

public final class CstDouble extends CstLiteral64
Constants of type {@code CONSTANT_Double_info}.

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

param
bits the {@code double} value as {@code long} bits

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

        return Type.DOUBLE;
    
public doublegetValue()
Gets the {@code double} value.

return
the value

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

param
bits the {@code double} value as {@code long} bits


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

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

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

        return "double";