public class GFiles extends ExecutionResult<java.util.LinkedList<GFile>> implements IterableAndSize<GFile>
QUIT, UNDEF, VOID
Constructor and Description |
---|
GFiles() |
GFiles(java.util.LinkedList<GFile> files) |
Modifier and Type | Method and Description |
---|---|
void |
addFile(java.io.File file) |
void |
addFiles(java.io.File[] files) |
boolean |
addFiles(java.io.File file,
boolean recursive) |
void |
addFiles(java.lang.String filename,
boolean recursive) |
GFiles |
clone() |
java.lang.String |
getScriptConstantRepresentation()
Returns the value as a constant in valid script syntax.
|
int |
getSize()
Returns the number of elements to iterate.
|
java.lang.String |
getStringRepresentation()
Returns a user-readable string representation of this instance.
|
ScriptType |
getType()
Returns the type of the result.
|
java.util.LinkedList<GFile> |
getValue()
Returns the internal value.
|
java.util.Iterator<GFile> |
iterator() |
void |
setValue(java.util.LinkedList<GFile> value)
Sets the internal value.
|
java.io.File[] |
toArray() |
equals, getSign, getTypeName, isZero, toString
isStopExecution
public GFiles(java.util.LinkedList<GFile> files)
public GFiles()
public ScriptType getType()
ExecutionResult
getType
in class ExecutionResult<java.util.LinkedList<GFile>>
public GFiles clone()
clone
in class ExecutionResult<java.util.LinkedList<GFile>>
public java.util.LinkedList<GFile> getValue()
ExecutionResult
getValue
in class ExecutionResult<java.util.LinkedList<GFile>>
public void setValue(java.util.LinkedList<GFile> value)
ExecutionResult
setValue
in class ExecutionResult<java.util.LinkedList<GFile>>
value
- the new value.public void addFile(java.io.File file)
public void addFiles(java.io.File[] files)
public boolean addFiles(java.io.File file, boolean recursive)
public void addFiles(java.lang.String filename, boolean recursive)
public java.util.Iterator<GFile> iterator()
iterator
in interface java.lang.Iterable<GFile>
public int getSize()
IterableAndSize
getSize
in interface IterableAndSize<GFile>
public java.lang.String getStringRepresentation()
ExecutionReturn
getStringRepresentation
in class ExecutionResult<java.util.LinkedList<GFile>>
public java.lang.String getScriptConstantRepresentation()
ExecutionReturn
getScriptConstantRepresentation
in class ExecutionReturn
public java.io.File[] toArray()