Package com.android.dx.rop.cst
Class CstInteger
java.lang.Object
com.android.dx.rop.cst.Constant
com.android.dx.rop.cst.TypedConstant
com.android.dx.rop.cst.CstLiteralBits
com.android.dx.rop.cst.CstLiteral32
com.android.dx.rop.cst.CstInteger
- All Implemented Interfaces:
TypeBearer
,ToHuman
,Comparable<Constant>
Constants of type
CONSTANT_Integer_info
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final CstInteger
non-null;
instance representing0
static final CstInteger
non-null;
instance representing1
static final CstInteger
non-null;
instance representing2
static final CstInteger
non-null;
instance representing3
static final CstInteger
non-null;
instance representing4
static final CstInteger
non-null;
instance representing5
static final CstInteger
non-null;
instance representing-1
-
Method Summary
Modifier and TypeMethodDescriptiongetType()
Gets the type associated with this instance.int
getValue()
Gets theint
value.static CstInteger
make
(int value) Makes an instance for the given value.toHuman()
Return the "human" string form of this instance.toString()
typeName()
Returns the human name for the particular type of constant this instance is.Methods inherited from class com.android.dx.rop.cst.CstLiteral32
compareTo0, equals, fitsInInt, getIntBits, getLongBits, hashCode, isCategory2
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
-
Field Details
-
VALUE_M1
non-null;
instance representing-1
-
VALUE_0
non-null;
instance representing0
-
VALUE_1
non-null;
instance representing1
-
VALUE_2
non-null;
instance representing2
-
VALUE_3
non-null;
instance representing3
-
VALUE_4
non-null;
instance representing4
-
VALUE_5
non-null;
instance representing5
-
-
Method Details
-
make
Makes an instance for the given value. This may (but does not necessarily) return an already-allocated instance.- Parameters:
value
- theint
value- Returns:
non-null;
the appropriate instance
-
toString
-
getType
Gets the type associated with this instance.- Returns:
non-null;
the type
-
typeName
Returns the human name for the particular type of constant this instance is. -
toHuman
Return the "human" string form of this instance. This is generally less "debuggy" thantoString()
.- Returns:
non-null;
the human string form
-
getValue
public int getValue()Gets theint
value.- Returns:
- the value
-