- getAssignments() - Method in class uk.ac.starlink.task.LineEnvironment
-
- getDescription() - Method in class uk.ac.starlink.task.Parameter
-
Returns the textual description for this parameter.
- getErrorCode() - Method in exception uk.ac.starlink.task.ExecutionException
-
- getErrorStream() - Method in interface uk.ac.starlink.task.Environment
-
Returns an output stream into which error or logging output from
a task can be written.
- getErrorStream() - Method in class uk.ac.starlink.task.LineEnvironment
-
- getErrorStream() - Method in class uk.ac.starlink.task.TerminalEnvironment
-
Returns System.err.
- getInteractive() - Method in class uk.ac.starlink.task.LineEnvironment
-
Determines whether we are running interactively.
- getJavaVersion() - Static method in class uk.ac.starlink.task.InvokeUtils
-
Returns the JVM version, without throwing any exceptions.
- getJavaVM() - Static method in class uk.ac.starlink.task.InvokeUtils
-
Returns the JVM name and version string, without throwing any exceptions.
- getName(T) - Method in class uk.ac.starlink.task.ChoiceParameter
-
Converts an option value object to a string which is used to identify
it as a string value of this parameter.
- getName() - Method in class uk.ac.starlink.task.LineWord
-
Returns the parameter name represented by this word.
- getName() - Method in class uk.ac.starlink.task.Parameter
-
Returns the name of this parameter.
- getNames() - Method in interface uk.ac.starlink.task.Environment
-
Returns an array of parameter names which have been specified.
- getNames() - Method in class uk.ac.starlink.task.LineEnvironment
-
- getNames() - Method in class uk.ac.starlink.task.TerminalEnvironment
-
- getObjectFactory() - Method in class uk.ac.starlink.task.ObjectFactoryParameter
-
Returns the object factory used by this parameter.
- getOption(String) - Method in class uk.ac.starlink.task.ChoiceParameter
-
Returns the option value associated with a given string by this
parameter.
- getOptionNames() - Method in class uk.ac.starlink.task.ChoiceParameter
-
Returns an array of the string values of options accepted by this
parameter.
- getOptions() - Method in class uk.ac.starlink.task.ChoiceParameter
-
Returns an array of the option objects which may form the
values of this parameter.
- getOptionValueList() - Method in class uk.ac.starlink.task.ChoiceParameter
-
Returns a collection of the option objects which may form the
values of this parameter.
- getOutputStream() - Method in interface uk.ac.starlink.task.Environment
-
Returns an output stream into which text output from a task can
be written.
- getOutputStream() - Method in class uk.ac.starlink.task.LineEnvironment
-
- getOutputStream() - Method in class uk.ac.starlink.task.TerminalEnvironment
-
Returns System.out.
- getParameter() - Method in exception uk.ac.starlink.task.ParameterValueException
-
Returns the parameter with which this exception is associated.
- getParameters() - Method in interface uk.ac.starlink.task.Task
-
Returns the list of parameters which may be used by this task.
- getParamHelp(Parameter) - Method in class uk.ac.starlink.task.LineEnvironment
-
Returns the help string for a given parameter.
- getPosition() - Method in class uk.ac.starlink.task.Parameter
-
Gets the position of this parameter in a parameter list;
the first parameter is 1.
- getPreferExplicit() - Method in class uk.ac.starlink.task.Parameter
-
Determine whether an explict value is generally preferred to the
default value for this parameter.
- getPrompt() - Method in class uk.ac.starlink.task.Parameter
-
Gets the prompt string for this parameter, as displayed to the
user when the value of the parameter is requested.
- getPromptAll() - Method in class uk.ac.starlink.task.LineEnvironment
-
Determines whether all parameters which haven't received explicit
values on the command line should be prompted for.
- getPurpose() - Method in interface uk.ac.starlink.task.Task
-
Returns a short (one-line) description of the purpose of this task.
- getStringDefault() - Method in class uk.ac.starlink.task.Parameter
-
Gets the default string value for this parameter.
- getTaskUsage(Task) - Static method in class uk.ac.starlink.task.TerminalInvoker
-
Returns a usage string for a given task.
- getText() - Method in class uk.ac.starlink.task.LineWord
-
Returns the full text of the original command-line argument.
- getUnused() - Method in class uk.ac.starlink.task.LineEnvironment
-
Returns a string containing any words of the input argument list
which were never queried by the application to find their
value.
- getUsage() - Method in class uk.ac.starlink.task.ChoiceParameter
-
Returns a usage message.
- getUsage() - Method in class uk.ac.starlink.task.ObjectFactoryParameter
-
- getUsage() - Method in class uk.ac.starlink.task.Parameter
-
Returns the usage string for this parameter.
- getUsage() - Method in class uk.ac.starlink.task.SingleTaskInvoker
-
Returns a usage string for this invoker.
- getValue() - Method in class uk.ac.starlink.task.LineWord
-
Returns the parameter value represented by this word.
- getValueClass() - Method in class uk.ac.starlink.task.Parameter
-
Returns the class of the typed values this parameter takes.
- getValueSeparator() - Method in interface uk.ac.starlink.task.MultiParameter
-
Returns a character which is to be used as the separator between
values found in adjacent occurrences of the parameter in the
execution environment.
- getVersionMessage() - Method in class uk.ac.starlink.task.MultiTaskInvoker
-
Returns the message to be reported if the "-version" flag is
given.
- setBooleanDefault(boolean) - Method in class uk.ac.starlink.task.BooleanParameter
-
Sets the default as a boolean value.
- setDefaultOption(T) - Method in class uk.ac.starlink.task.ChoiceParameter
-
Sets the default value for this parameter to one of the previously
added options.
- setDescription(String) - Method in class uk.ac.starlink.task.Parameter
-
Sets the textual description for this parameter.
- setDescription(String[]) - Method in class uk.ac.starlink.task.Parameter
-
Convenience method to set the description for this parameter by
the result of joining an array of lines together.
- setDoubleDefault(double) - Method in class uk.ac.starlink.task.DoubleParameter
-
Sets the default value as a floating point value.
- setErrorCode(int) - Method in exception uk.ac.starlink.task.ExecutionException
-
- setErrorStream(PrintStream) - Method in class uk.ac.starlink.task.LineEnvironment
-
Sets the destination stream for standard error.
- setEven() - Method in class uk.ac.starlink.task.IntegerParameter
-
Mandates that any value of this parameter must be even.
- setIntDefault(int) - Method in class uk.ac.starlink.task.IntegerParameter
-
Sets the default value as an integer.
- setInteractive(boolean) - Method in class uk.ac.starlink.task.LineEnvironment
-
Sets whether we are running interactively or not.
- setMaximum(double, boolean) - Method in class uk.ac.starlink.task.DoubleParameter
-
Sets the maximum acceptable value for this parameter.
- setMaximum(int) - Method in class uk.ac.starlink.task.IntegerParameter
-
Mandates a maximum value for this parameter.
- setMaximum(long) - Method in class uk.ac.starlink.task.LongParameter
-
Mandates a maximum value for this parameter.
- setMinimum(double, boolean) - Method in class uk.ac.starlink.task.DoubleParameter
-
Sets the minimum acceptable value for this parameter.
- setMinimum(int) - Method in class uk.ac.starlink.task.IntegerParameter
-
Mandates a minimum value for this parameter.
- setMinimum(long) - Method in class uk.ac.starlink.task.LongParameter
-
Mandates a minimum value for this parameter.
- setName(String) - Method in class uk.ac.starlink.task.Parameter
-
Sets the name of this parameter.
- setNullPermitted(boolean) - Method in class uk.ac.starlink.task.Parameter
-
Set whether it is legal for this parameter's value to be blank.
- setOdd() - Method in class uk.ac.starlink.task.IntegerParameter
-
Mandates that any value of this parameter must be odd.
- setOutputStream(PrintStream) - Method in class uk.ac.starlink.task.LineEnvironment
-
Sets the destination stream for standard out.
- setPosition(int) - Method in class uk.ac.starlink.task.Parameter
-
Sets the position of this parameter in a parameter list;
the first parameter is 1.
- setPreferExplicit(boolean) - Method in class uk.ac.starlink.task.Parameter
-
Set whether an explicit value is generally to be solicited from
the user rather than taking the default.
- setPrompt(String) - Method in class uk.ac.starlink.task.Parameter
-
Sets the prompt string for this parameter, as displayed to the
user when the value of the parameter is requested.
- setPromptAll(boolean) - Method in class uk.ac.starlink.task.LineEnvironment
-
Sets whether all parameters which haven't received explicit values
on the command line should be prompted for.
- setStringDefault(String) - Method in class uk.ac.starlink.task.Parameter
-
Sets the default string value for this parameter.
- setUsage(String) - Method in class uk.ac.starlink.task.ChoiceParameter
-
- setUsage(String) - Method in class uk.ac.starlink.task.Parameter
-
Sets a usage string for this parameter.
- setValue(String, T) - Method in class uk.ac.starlink.task.Parameter
-
Sets the value of this parameter without any additional validation.
- setValueFromObject(Environment, T) - Method in class uk.ac.starlink.task.Parameter
-
Sets the value of this parameter directly from a typed object.
- setValueFromString(Environment, String) - Method in class uk.ac.starlink.task.DoubleParameter
-
As a special case, setting the value of this parameter with a
null or empty string will result in a NaN value.
- setValueFromString(Environment, String) - Method in class uk.ac.starlink.task.Parameter
-
Sets the value of this parameter from a String.
- setVersionMessage(String) - Method in class uk.ac.starlink.task.MultiTaskInvoker
-
Sets the message which will be reported if the "-version" flag is
given.
- setWords(LineWord[]) - Method in class uk.ac.starlink.task.LineEnvironment
-
Sets the words supplying the parameter values for this environment.
- SingleTaskInvoker - Class in uk.ac.starlink.task
-
Invoker which only knows how to invoke a single given task.
- SingleTaskInvoker(Task, String) - Constructor for class uk.ac.starlink.task.SingleTaskInvoker
-
Constructor.
- sortParameters(Parameter[]) - Static method in class uk.ac.starlink.task.InvokeUtils
-
Sorts a list of Parameter objects.
- stringifyOption(T) - Method in class uk.ac.starlink.task.ChoiceParameter
-
Determines how an option will be represented as a string value of
this parameter if no name has explicitly been supplied.
- StringParameter - Class in uk.ac.starlink.task
-
Parameter for holding string values.
- StringParameter(String) - Constructor for class uk.ac.starlink.task.StringParameter
-
Constructor.
- stringToObject(Environment, String) - Method in class uk.ac.starlink.task.BooleanParameter
-
- stringToObject(Environment, String) - Method in class uk.ac.starlink.task.ChoiceParameter
-
- stringToObject(Environment, String) - Method in class uk.ac.starlink.task.DoubleParameter
-
- stringToObject(Environment, String) - Method in class uk.ac.starlink.task.InputStreamParameter
-
- stringToObject(Environment, String) - Method in class uk.ac.starlink.task.IntegerParameter
-
- stringToObject(Environment, String) - Method in class uk.ac.starlink.task.LongParameter
-
- stringToObject(Environment, String) - Method in class uk.ac.starlink.task.ObjectFactoryParameter
-
- stringToObject(Environment, String) - Method in class uk.ac.starlink.task.OutputStreamParameter
-
- stringToObject(Environment, String) - Method in class uk.ac.starlink.task.Parameter
-
Takes a non-blank string, as supplied by the execution environment,
and turns it into a typed value for this parameter.
- stringToObject(Environment, String) - Method in class uk.ac.starlink.task.StringParameter
-
- stringToObject(Environment, String) - Method in class uk.ac.starlink.task.URLParameter
-
- stringValue(Environment) - Method in class uk.ac.starlink.task.Parameter
-
Gets the value of this parameter as a String.
- summariseError(Throwable, PrintStream) - Static method in class uk.ac.starlink.task.InvokeUtils
-
Writes a summary of a (possibly nested) exception to a given
output stream.