|
||||||||||
| 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
com.android.dx.rop.cst.CstLiteral32
public abstract class CstLiteral32
Constants which are literal 32-bit values of some sort.
| Method Summary | |
|---|---|
protected int |
compareTo0(Constant other)
Compare the values of this and another instance, which are guaranteed to be of the same class. |
boolean |
equals(Object other)
|
boolean |
fitsInInt()
Returns whether or not this instance's value may be accurately represented as an int. |
int |
getIntBits()
Gets the value as int bits. |
long |
getLongBits()
Gets the value as long bits. |
int |
hashCode()
|
boolean |
isCategory2()
Returns true if this instance is a category-2 constant,
meaning it takes up two slots in the constant pool, or
false if this instance is category-1. |
| Methods inherited from class com.android.dx.rop.cst.CstLiteralBits |
|---|
fitsIn16Bits, fitsIn8Bits |
| 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, typeName |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, 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 |
| Method Detail |
|---|
public final boolean equals(Object other)
equals in class Objectpublic final int hashCode()
hashCode in class Objectprotected int compareTo0(Constant other)
compareTo0 in class Constantother - non-null; the instance to compare to
-1, 0, or 1, as usual
for a comparisonpublic final boolean isCategory2()
true if this instance is a category-2 constant,
meaning it takes up two slots in the constant pool, or
false if this instance is category-1.
isCategory2 in class Constanttrue iff this instance is category-2public final 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.
fitsInInt in class CstLiteralBitstrue iff this instance fits in an intpublic final int getIntBits()
int bits. If this instance contains
more bits than fit in an int, then this returns only
the low-order bits.
getIntBits in class CstLiteralBitspublic final 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.
getLongBits in class CstLiteralBits
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||