|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.neeve.robin.Script
public final class Script
Represents an executable Robin script
| Method Summary | |
|---|---|
void |
abort()
Abort a script execution |
boolean |
aborted()
Indicates whether the abort flag is set |
void |
cleanup()
Cleanup all scripts commands in reverse order |
void |
clear()
Clear a script's command set |
List<Command> |
commands()
Get the script instruction set |
int |
current()
Get the current instruction pointer |
String |
getRunId()
Gets the run id currently set for the script. |
Script |
parseCommandLine(String line,
int lineNum,
boolean mock)
Parse a command string |
Script |
parseFromFile(String scriptFilename)
Parse commands from a script file This method invokes parseFromFile(scriptFilename, null) |
Script |
parseFromFile(String scriptFilename,
String commaDelimitedKeyValuePairs)
Parse a script file using parameters specified as a comma delimited string of key value pairs |
Script |
parseFromFile(String scriptFilename,
com.neeve.util.UtlTailoring.PropertySource primaryParameterResolver)
Parse a script file using a specified parameter resolver |
void |
rewind()
Rewind the script's current pointer back to the beginning |
void |
run()
Run all commands from current to end of the script. |
void |
run(int numCommands)
Run a specified number of commands in a script with a new run calculated from the given time |
void |
truncate(int pos)
Truncate a script's command set |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public final List<Command> commands()
public final int current()
public final void rewind()
public final void clear()
public final void truncate(int pos)
public final Script parseCommandLine(String line,
int lineNum,
boolean mock)
public final Script parseFromFile(String scriptFilename,
com.neeve.util.UtlTailoring.PropertySource primaryParameterResolver)
public final Script parseFromFile(String scriptFilename,
String commaDelimitedKeyValuePairs)
throws IOException
IOExceptionpublic final Script parseFromFile(String scriptFilename)
This method invokes parseFromFile(scriptFilename, null)
public final void run(int numCommands)
numCommands - The number of commands to run. A value of -1 indicates
all commands from the current command to the end of the script.
This method runs a specified number of commands starting from the script's current command.
public final void run()
This method is equivalent to invoking run(-1)
current command.
public final void abort()
public final boolean aborted()
public final void cleanup()
public String getRunId()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||