|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.task.LineEnder
public class LineEnder
Defines how line endings are handled when formatting stilts commands.
Field Summary | |
---|---|
static LineEnder |
BACKSLASH
Backslash followed by carriage return (Un*x shells). |
static LineEnder |
BACKTICK
Backtick followed by carriage return (Windows PowerShell). |
static LineEnder |
CARET
Caret followed by carriage return (DOS CMD). |
static LineEnder |
ONELINE
No line breaks, just one long line. |
static LineEnder[] |
OPTIONS
All options. |
static LineEnder |
PLAIN
Just a carriage return. |
Constructor Summary | |
---|---|
LineEnder(String name,
String eol)
Constructor. |
Method Summary | |
---|---|
String |
getEndOfLine()
Returns the end of line text. |
boolean |
includesNewline()
Indicates whether a newline forms part of the EOL string. |
String |
toString()
Returns name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final LineEnder PLAIN
public static final LineEnder BACKSLASH
public static final LineEnder CARET
public static final LineEnder BACKTICK
public static final LineEnder ONELINE
public static final LineEnder[] OPTIONS
Constructor Detail |
---|
public LineEnder(String name, String eol)
name
- instance name, suitable for presentation to userseol
- end of line textMethod Detail |
---|
public String getEndOfLine()
public boolean includesNewline()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |