antlraux.clparse
Class Task
java.lang.Object
|
+--antlraux.clparse.Task
- public class Task
- extends java.lang.Object
Each time that the parser succesfully parses a command and its params, it adds a Task to a list of
tasks. Basically a task is a group made with a CommandSpec and a table of params.
When a task is executed, it calls the method associated with its CommandSpec passing it
its list of params.
- Author:
- Enrique José García Cota
Constructor Summary |
Task(CommandSpec spec,
java.lang.Object[] params)
The class constructor. |
Method Summary |
java.lang.Object |
execute()
This method calls the method associated to the task, passing it its list of params. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
spec
protected CommandSpec spec
Task
public Task(CommandSpec spec,
java.lang.Object[] params)
- The class constructor.
- Parameters:
spec
- The CommandSpec associated to this Task.params
- The parsed params.
execute
public java.lang.Object execute()
throws CommandLineParserException
- This method calls the method associated to the task, passing it its list of params.
- Throws:
CommandLineParserException
- If the method executed throws an exception, or an error ocurred.
Created by Enrique José García Cota