public final class CstBoolean extends CstLiteral32
boolean.| Modifier and Type | Field and Description |
|---|---|
static CstBoolean |
VALUE_FALSE
non-null; instance representing false |
static CstBoolean |
VALUE_TRUE
non-null; instance representing true |
| Modifier and Type | Method and Description |
|---|---|
Type |
getType()
Gets the type associated with this instance.
|
boolean |
getValue()
Gets the
boolean value. |
static CstBoolean |
make(boolean value)
Makes an instance for the given value.
|
static CstBoolean |
make(int value)
Makes an instance for the given
int value. |
java.lang.String |
toHuman()
Return the "human" string form of this instance.
|
java.lang.String |
toString() |
java.lang.String |
typeName()
Returns the human name for the particular type of constant
this instance is.
|
compareTo0, equals, fitsInInt, getIntBits, getLongBits, hashCode, isCategory2fitsIn16Bits, fitsIn8BitsgetBasicFrameType, getBasicType, getFrameType, isConstantpublic static final CstBoolean VALUE_FALSE
non-null; instance representing falsepublic static final CstBoolean VALUE_TRUE
non-null; instance representing truepublic static CstBoolean make(boolean value)
value - the boolean valuenon-null; the appropriate instancepublic static CstBoolean make(int value)
int value. This
will return an already-allocated instance.value - must be either 0 or 1non-null; the appropriate instancepublic java.lang.String toString()
toString in class java.lang.Objectpublic Type getType()
non-null; the typepublic java.lang.String typeName()
public java.lang.String toHuman()
toString().non-null; the human string formpublic boolean getValue()
boolean value.Copyright © 2020. All Rights Reserved.