Package uk.ac.starlink.task
Class LineWord
java.lang.Object
uk.ac.starlink.task.LineWord
Represents a single word on the command line used as by LineEnvironment.
- Since:
- 27 Nov 2006
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LineWord
Constructor. The supplied text should be either of the formname=value
or, for positionally-determined parameters, justvalue
.- Parameters:
text
- command-line argument
-
-
Method Details
-
getName
Returns the parameter name represented by this word. May be null if none was specified.- Returns:
- parameter name
-
getValue
Returns the parameter value represented by this word.- Returns:
- parameter value
-
getText
Returns the full text of the original command-line argument.- Returns:
- command-line argument
-
toString
-