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
FieldsModifier and TypeFieldDescriptionstatic final CstIntegernon-null;instance representing0static final CstIntegernon-null;instance representing1static final CstIntegernon-null;instance representing2static final CstIntegernon-null;instance representing3static final CstIntegernon-null;instance representing4static final CstIntegernon-null;instance representing5static final CstIntegernon-null;instance representing-1 -
Method Summary
Modifier and TypeMethodDescriptiongetType()Gets the type associated with this instance.intgetValue()Gets theintvalue.static CstIntegermake(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 CstLiteral32
compareTo0, equals, fitsInInt, getIntBits, getLongBits, hashCode, isCategory2Methods inherited from class CstLiteralBits
fitsIn16Bits, fitsIn8BitsMethods inherited from class 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- theintvalue- Returns:
non-null;the appropriate instance
-
toString
-
getType
-
typeName
-
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 theintvalue.- Returns:
- the value
-