antlraux package
v0.2.1

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

Field Summary
protected  CommandSpec spec
           
 
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
 

Field Detail

spec

protected CommandSpec spec
Constructor Detail

Task

public Task(CommandSpec spec,
            java.lang.Object[] params)
The class constructor.

Parameters:
spec - The CommandSpec associated to this Task.
params - The parsed params.
Method Detail

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.

antlraux package
v0.2.1

Created by Enrique José García Cota