Package uk.ac.starlink.task
Class LineWord
- java.lang.Object
-
- uk.ac.starlink.task.LineWord
-
public class LineWord extends java.lang.Object
Represents a single word on the command line used as by LineEnvironment.- Since:
- 27 Nov 2006
- Author:
- Mark Taylor
-
-
Constructor Summary
Constructors Constructor Description LineWord(java.lang.String text)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Returns the parameter name represented by this word.java.lang.String
getText()
Returns the full text of the original command-line argument.java.lang.String
getValue()
Returns the parameter value represented by this word.java.lang.String
toString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the parameter name represented by this word. May be null if none was specified.- Returns:
- parameter name
-
getValue
public java.lang.String getValue()
Returns the parameter value represented by this word.- Returns:
- parameter value
-
getText
public java.lang.String getText()
Returns the full text of the original command-line argument.- Returns:
- command-line argument
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-