public class GInteger extends ExecutionResult<java.lang.Integer> implements ToFloat, ToInteger, ToBoolean, TextHolder
QUIT, UNDEF, VOID| Constructor and Description |
|---|
GInteger() |
GInteger(java.lang.Integer value) |
| 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.
|
GInteger |
clone() |
java.lang.String |
getText()
Returns the text.
|
ScriptType |
getType()
Returns the type of the result.
|
static ScriptType |
getTypeStatic() |
java.lang.Integer |
getValue()
Returns the internal value.
|
boolean |
isZero()
Indicates whether or not the value is zero, regardless, of which type this zero is.
|
void |
setValue(java.lang.Integer value)
Sets the internal value.
|
equals, getSign, getStringRepresentation, getTypeName, toStringgetScriptConstantRepresentation, isStopExecutionpublic java.lang.Integer getValue()
ExecutionResultgetValue in class ExecutionResult<java.lang.Integer>public void setValue(java.lang.Integer value)
ExecutionResultsetValue in class ExecutionResult<java.lang.Integer>value - the new value.public ScriptType getType()
ExecutionResultgetType in class ExecutionResult<java.lang.Integer>public boolean isZero()
ExecutionResultisZero in class ExecutionResult<java.lang.Integer>public static ScriptType getTypeStatic()
public int asInteger()
ToIntegerpublic float asFloat()
ToFloatpublic boolean asBoolean()
ToBooleanpublic GInteger clone()
clone in class ExecutionResult<java.lang.Integer>public java.lang.String getText()
TextHoldergetText in interface TextHolder