ValueType
- the type of the internal value.public abstract class ExecutionResult<ValueType> extends ExecutionReturn
QUIT, UNDEF, VOID
Constructor and Description |
---|
ExecutionResult() |
Modifier and Type | Method and Description |
---|---|
abstract ExecutionResult<ValueType> |
clone() |
boolean |
equals(java.lang.Object obj)
Indicates whether or not the internal value equals the internal value of the given ExecutionResult.
|
java.lang.String |
getSign()
Returns the short sign of the type.
|
java.lang.String |
getStringRepresentation()
Returns a user-readable string representation of this instance.
|
abstract ScriptType |
getType()
Returns the type of the result.
|
java.lang.String |
getTypeName()
Returns the name of the type.
|
abstract ValueType |
getValue()
Returns the internal value.
|
boolean |
isZero()
Indicates whether or not the value is zero, regardless, of which type this zero is.
|
abstract void |
setValue(ValueType value)
Sets the internal value.
|
java.lang.String |
toString() |
protected java.lang.String |
valueToString()
Returns the internal value as a string
|
getScriptConstantRepresentation, isStopExecution
public abstract ValueType getValue()
public abstract void setValue(ValueType value)
value
- the new value.public abstract ScriptType getType()
public abstract ExecutionResult<ValueType> clone()
clone
in class java.lang.Object
public java.lang.String getTypeName()
public java.lang.String getSign()
public java.lang.String toString()
toString
in class java.lang.Object
protected java.lang.String valueToString()
public java.lang.String getStringRepresentation()
ExecutionReturn
getStringRepresentation
in class ExecutionReturn
public boolean isZero()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object