Top Description Fields Constructors Methods
org.droidparts.dexmaker.dx.rop.cst

public final Class CstBoolean

extends CstLiteral32
Class Inheritance
Imports
org.droidparts.dexmaker.dx.rop.type.Type

Constants of type boolean.

Field Summary

Modifier and TypeField and Description
public static final CstBoolean
VALUE_FALSE

non-null; instance representing false

public static final CstBoolean
VALUE_TRUE

non-null; instance representing true

Constructor Summary

AccessConstructor and Description
private
CstBoolean(boolean
the boolean value
value
)

Constructs an instance.

Method Summary

Modifier and TypeMethod and Description
public Type
getType()

Implements org.droidparts.dexmaker.dx.rop.type.TypeBearer.getType.

Gets the type associated with this instance.
public boolean

Returns:

the value
getValue
()

Gets the boolean value.

public static CstBoolean

Returns:

non-null; the appropriate instance
make
(boolean
the boolean value
value
)

Makes an instance for the given value.

public static CstBoolean

Returns:

non-null; the appropriate instance
make
(int
must be either 0 or 1
value
)

Makes an instance for the given int value.

public String
toHuman()

Implements org.droidparts.dexmaker.dx.util.ToHuman.toHuman.

Return the "human" string form of this instance.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public String
typeName()

Implements abstract org.droidparts.dexmaker.dx.rop.cst.Constant.typeName.

Returns the human name for the particular type of constant this instance is.
Inherited from org.droidparts.dexmaker.dx.rop.cst.CstLiteral32:
compareTo0equalsfitsInIntgetIntBitsgetLongBitshashCodeisCategory2

Field Detail

VALUE_FALSEback to summary
public static final CstBoolean VALUE_FALSE

non-null; instance representing false

VALUE_TRUEback to summary
public static final CstBoolean VALUE_TRUE

non-null; instance representing true

Constructor Detail

CstBooleanback to summary
private CstBoolean(boolean value)

Constructs an instance. This constructor is private; use make.

Parameters
value:boolean

the boolean value

Method Detail

getTypeback to summary
public Type getType()

Implements org.droidparts.dexmaker.dx.rop.type.TypeBearer.getType.

Doc from org.droidparts.dexmaker.dx.rop.type.TypeBearer.getType.

Gets the type associated with this instance.

Returns:Type

non-null; the type

getValueback to summary
public boolean getValue()

Gets the boolean value.

Returns:boolean

the value

makeback to summary
public static CstBoolean make(boolean value)

Makes an instance for the given value. This will return an already-allocated instance.

Parameters
value:boolean

the boolean value

Returns:CstBoolean

non-null; the appropriate instance

makeback to summary
public static CstBoolean make(int value)

Makes an instance for the given int value. This will return an already-allocated instance.

Parameters
value:int

must be either 0 or 1

Returns:CstBoolean

non-null; the appropriate instance

toHumanback to summary
public String toHuman()

Implements org.droidparts.dexmaker.dx.util.ToHuman.toHuman.

Doc from org.droidparts.dexmaker.dx.util.ToHuman.toHuman.

Return the "human" string form of this instance. This is generally less "debuggy" than toString().

Returns:String

non-null; the human string form

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override
typeNameback to summary
public String typeName()

Implements abstract org.droidparts.dexmaker.dx.rop.cst.Constant.typeName.

Doc from org.droidparts.dexmaker.dx.rop.cst.Constant.typeName.

Returns the human name for the particular type of constant this instance is.

Returns:String

non-null; the name

Annotations
@Override