public class GFloat extends ExecutionResult<java.lang.Float> implements ToInteger, ToBoolean, ToFloat, TextHolder
QUIT, UNDEF, VOID| Constructor and Description |
|---|
GFloat() |
GFloat(java.lang.Double value) |
GFloat(java.lang.Float value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
asBoolean()
Casts the value to boolean.
|
double |
asDouble() |
float |
asFloat()
Casts the value to float.
|
int |
asInteger()
Casts the value to int.
|
GFloat |
clone() |
java.lang.String |
getScriptConstantRepresentation()
Returns the value as a constant in valid script syntax.
|
java.lang.String |
getText()
Returns the text.
|
ScriptType |
getType()
Returns the type of the result.
|
static ScriptType |
getTypeStatic() |
java.lang.Float |
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.Float value)
Sets the internal value.
|
equals, getSign, getStringRepresentation, getTypeName, toStringisStopExecutionpublic GFloat(java.lang.Float value)
public GFloat()
public GFloat(java.lang.Double value)
public java.lang.Float getValue()
ExecutionResultgetValue in class ExecutionResult<java.lang.Float>public void setValue(java.lang.Float value)
ExecutionResultsetValue in class ExecutionResult<java.lang.Float>value - the new value.public ScriptType getType()
ExecutionResultgetType in class ExecutionResult<java.lang.Float>public static ScriptType getTypeStatic()
public boolean isZero()
ExecutionResultisZero in class ExecutionResult<java.lang.Float>public java.lang.String getScriptConstantRepresentation()
ExecutionReturngetScriptConstantRepresentation in class ExecutionReturnpublic int asInteger()
ToIntegerpublic float asFloat()
ToFloatpublic boolean asBoolean()
ToBooleanpublic double asDouble()
public GFloat clone()
clone in class ExecutionResult<java.lang.Float>public java.lang.String getText()
TextHoldergetText in interface TextHolder