public class GBoolean extends ExecutionResult<java.lang.Boolean> implements ToBoolean, ToInteger, ToFloat, TextHolder
| Modifier and Type | Field and Description |
|---|---|
static GBoolean |
FALSE |
static GBoolean |
TRUE |
QUIT, UNDEF, VOID| Modifier and Type | Method and Description |
|---|---|
boolean |
asBoolean()
Casts the value to boolean.
|
float |
asFloat()
Casts the value to float.
|
int |
asInteger()
Casts the value to int.
|
GBoolean |
clone() |
static GBoolean |
create(boolean bool) |
java.lang.String |
getText()
Returns the text.
|
ScriptType |
getType()
Returns the type of the result.
|
static ScriptType |
getTypeStatic() |
java.lang.Boolean |
getValue()
Returns the internal value.
|
void |
setValue(java.lang.Boolean value)
Sets the internal value.
|
equals, getSign, getStringRepresentation, getTypeName, isZero, toStringgetScriptConstantRepresentation, isStopExecutionpublic java.lang.Boolean getValue()
ExecutionResultgetValue in class ExecutionResult<java.lang.Boolean>public GBoolean clone()
clone in class ExecutionResult<java.lang.Boolean>public static GBoolean create(boolean bool)
public void setValue(java.lang.Boolean value)
ExecutionResultsetValue in class ExecutionResult<java.lang.Boolean>value - the new value.public ScriptType getType()
ExecutionResultgetType in class ExecutionResult<java.lang.Boolean>public static ScriptType getTypeStatic()
public int asInteger()
ToIntegerpublic float asFloat()
ToFloatpublic boolean asBoolean()
ToBooleanpublic java.lang.String getText()
TextHoldergetText in interface TextHolder