|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dx.rop.cst.Constant
com.android.dx.rop.cst.TypedConstant
com.android.dx.rop.cst.CstLiteralBits
public abstract class CstLiteralBits
Constants which are literal bitwise values of some sort.
| Constructor Summary | |
|---|---|
CstLiteralBits()
|
|
| Method Summary | |
|---|---|
boolean |
fitsIn16Bits()
Returns true if this value can fit in 16 bits with sign-extension. |
boolean |
fitsIn8Bits()
Returns true if this value can fit in 8 bits with sign-extension. |
abstract boolean |
fitsInInt()
Returns whether or not this instance's value may be accurately represented as an int. |
abstract int |
getIntBits()
Gets the value as int bits. |
abstract long |
getLongBits()
Gets the value as long bits. |
| Methods inherited from class com.android.dx.rop.cst.TypedConstant |
|---|
getBasicFrameType, getBasicType, getFrameType, isConstant |
| Methods inherited from class com.android.dx.rop.cst.Constant |
|---|
compareTo, compareTo0, isCategory2, typeName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.android.dx.rop.type.TypeBearer |
|---|
getType |
| Methods inherited from interface com.android.dx.util.ToHuman |
|---|
toHuman |
| Constructor Detail |
|---|
public CstLiteralBits()
| Method Detail |
|---|
public abstract boolean fitsInInt()
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.
true iff this instance fits in an intpublic abstract int getIntBits()
int bits. If this instance contains
more bits than fit in an int, then this returns only
the low-order bits.
public abstract long getLongBits()
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.
public boolean fitsIn16Bits()
public boolean fitsIn8Bits()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||