Top Description Constructors Methods
org.droidparts.dexmaker.dx.rop.cst

public abstract Class CstLiteralBits

extends TypedConstant
Class Inheritance
Known Direct Subclasses
org.droidparts.dexmaker.dx.rop.cst.CstKnownNull, org.droidparts.dexmaker.dx.rop.cst.CstLiteral32, org.droidparts.dexmaker.dx.rop.cst.CstLiteral64

Constants which are literal bitwise values of some sort.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the sign-extended lower 16 bits are the same as the value.
fitsIn16Bits
()

Returns true if this value can fit in 16 bits with sign-extension.

public boolean

Returns:

true if the sign-extended lower 8 bits are the same as the value.
fitsIn8Bits
()

Returns true if this value can fit in 8 bits with sign-extension.

public abstract boolean

Returns:

true iff this instance fits in an int
fitsInInt
()

Returns whether or not this instance's value may be accurately represented as an int.

public abstract int

Returns:

the bits
getIntBits
()

Gets the value as int bits.

public abstract long

Returns:

the bits
getLongBits
()

Gets the value as long bits.

Inherited from org.droidparts.dexmaker.dx.rop.cst.TypedConstant:
getBasicFrameTypegetBasicTypegetFrameTypeisConstant

Constructor Detail

CstLiteralBitsback to summary
public CstLiteralBits()

Method Detail

fitsIn16Bitsback to summary
public boolean fitsIn16Bits()

Returns true if this value can fit in 16 bits with sign-extension.

Returns:boolean

true if the sign-extended lower 16 bits are the same as the value.

fitsIn8Bitsback to summary
public boolean fitsIn8Bits()

Returns true if this value can fit in 8 bits with sign-extension.

Returns:boolean

true if the sign-extended lower 8 bits are the same as the value.

fitsInIntback to summary
public abstract boolean fitsInInt()

Returns whether or not this instance's value may be accurately represented as an int. The rule is that if there is an int which may be sign-extended to yield this instance's value, then this method returns true. Otherwise, it returns false.

Returns:boolean

true iff this instance fits in an int

getIntBitsback to summary
public abstract int getIntBits()

Gets the value as int bits. If this instance contains more bits than fit in an int, then this returns only the low-order bits.

Returns:int

the bits

getLongBitsback to summary
public abstract long getLongBits()

Gets the value as long bits. If this instance contains fewer bits than fit in a long, then the result of this method is the sign extension of the value.

Returns:long

the bits