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, toString
getScriptConstantRepresentation, isStopExecution
public java.lang.Boolean getValue()
ExecutionResult
getValue
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)
ExecutionResult
setValue
in class ExecutionResult<java.lang.Boolean>
value
- the new value.public ScriptType getType()
ExecutionResult
getType
in class ExecutionResult<java.lang.Boolean>
public static ScriptType getTypeStatic()
public int asInteger()
ToInteger
public float asFloat()
ToFloat
public boolean asBoolean()
ToBoolean
public java.lang.String getText()
TextHolder
getText
in interface TextHolder