Package com.android.dx.rop.cst
Class CstBoolean
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.CstBoolean
- All Implemented Interfaces:
TypeBearer
,ToHuman
,Comparable<Constant>
Constants of type
boolean
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final CstBoolean
non-null;
instance representingfalse
static final CstBoolean
non-null;
instance representingtrue
-
Method Summary
Modifier and TypeMethodDescriptiongetType()
Gets the type associated with this instance.boolean
getValue()
Gets theboolean
value.static CstBoolean
make
(boolean value) Makes an instance for the given value.static CstBoolean
make
(int value) Makes an instance for the givenint
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_FALSE
non-null;
instance representingfalse
-
VALUE_TRUE
non-null;
instance representingtrue
-
-
Method Details
-
make
Makes an instance for the given value. This will return an already-allocated instance.- Parameters:
value
- theboolean
value- Returns:
non-null;
the appropriate instance
-
make
Makes an instance for the givenint
value. This will return an already-allocated instance.- Parameters:
value
- must be either0
or1
- 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 boolean getValue()Gets theboolean
value.- Returns:
- the value
-