|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.task.LineInvoker
public class LineInvoker
Invokes the Stilts tasks using a LineTableEnvironment
.
Constructor Summary | |
---|---|
LineInvoker(String toolName,
ObjectFactory<Task> taskFactory)
Constructor. |
Method Summary | |
---|---|
static String |
getParamHelp(TableEnvironment env,
String taskName,
Parameter param)
Returns a help string for a parameter of one of the tasks known to this application. |
static String |
getPrefixedParameterUsage(Parameter[] params,
String prefix)
Returns a usage string for a set of parameters, prefixed by a given string. |
int |
invoke(String[] args)
Invokes one of the known tasks given a string of command-line words. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LineInvoker(String toolName, ObjectFactory<Task> taskFactory)
toolName
- name of the overall applicationtaskFactory
- factory which can create the tasks known to
the applicationMethod Detail |
---|
public int invoke(String[] args)
args
string will typically come straight out of
a static main()
method.
args
- argument listpublic static String getPrefixedParameterUsage(Parameter[] params, String prefix)
params
- parameter arrayprefix
- string to prepend to the first line
public static String getParamHelp(TableEnvironment env, String taskName, Parameter param)
env
- execution environmenttaskName
- task nickname - may be null if heading is not requiredparam
- parameter for which usage information is required
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |