public class GIterable<ElementType extends ExecutionResult<?>> extends ExecutionResult<IterableAndSize<ElementType>> implements IterableAndSize<ElementType>, TextHolder
QUIT, UNDEF, VOID
Constructor and Description |
---|
GIterable() |
GIterable(IterableAndSize<ElementType> value) |
Modifier and Type | Method and Description |
---|---|
GIterable<ElementType> |
clone() |
int |
getSize()
Returns the number of elements to iterate.
|
java.lang.String |
getText()
Returns the text.
|
ScriptType |
getType()
Returns the type of the result.
|
static ScriptType |
getTypeStatic() |
IterableAndSize<ElementType> |
getValue()
Returns the internal value.
|
java.util.Iterator<ElementType> |
iterator() |
void |
setValue(IterableAndSize<ElementType> value)
Sets the internal value.
|
protected java.lang.String |
valueToString()
Returns the internal value as a string
|
equals, getSign, getStringRepresentation, getTypeName, isZero, toString
getScriptConstantRepresentation, isStopExecution
public GIterable(IterableAndSize<ElementType> value)
public GIterable()
public static ScriptType getTypeStatic()
public IterableAndSize<ElementType> getValue()
ExecutionResult
getValue
in class ExecutionResult<IterableAndSize<ElementType extends ExecutionResult<?>>>
public void setValue(IterableAndSize<ElementType> value)
ExecutionResult
setValue
in class ExecutionResult<IterableAndSize<ElementType extends ExecutionResult<?>>>
value
- the new value.public ScriptType getType()
ExecutionResult
getType
in class ExecutionResult<IterableAndSize<ElementType extends ExecutionResult<?>>>
protected java.lang.String valueToString()
ExecutionResult
valueToString
in class ExecutionResult<IterableAndSize<ElementType extends ExecutionResult<?>>>
public java.util.Iterator<ElementType> iterator()
iterator
in interface java.lang.Iterable<ElementType extends ExecutionResult<?>>
public int getSize()
IterableAndSize
getSize
in interface IterableAndSize<ElementType extends ExecutionResult<?>>
public GIterable<ElementType> clone()
clone
in class ExecutionResult<IterableAndSize<ElementType extends ExecutionResult<?>>>
public java.lang.String getText()
TextHolder
getText
in interface TextHolder