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