Package uk.ac.starlink.ttools.task
Class LineEnder
java.lang.Object
uk.ac.starlink.ttools.task.LineEnder
Defines how line endings are handled when formatting stilts commands.
- Since:
- 19 Sep 2017
- Author:
- Mark Taylor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LineEnder
Backslash followed by carriage return (Un*x shells).static final LineEnder
Backtick followed by carriage return (Windows PowerShell).static final LineEnder
Caret followed by carriage return (DOS CMD).static final LineEnder
No line breaks, just one long line.static final LineEnder[]
All options.static final LineEnder
Just a carriage return. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the end of line text.boolean
Indicates whether a newline forms part of the EOL string.toString()
Returns name.
-
Field Details
-
PLAIN
Just a carriage return. -
BACKSLASH
Backslash followed by carriage return (Un*x shells). -
CARET
Caret followed by carriage return (DOS CMD). -
BACKTICK
Backtick followed by carriage return (Windows PowerShell). -
ONELINE
No line breaks, just one long line. -
OPTIONS
All options.
-
-
Constructor Details
-
LineEnder
Constructor.- Parameters:
name
- instance name, suitable for presentation to userseol
- end of line text
-
-
Method Details
-
getEndOfLine
Returns the end of line text.- Returns:
- text separating two lines
-
includesNewline
public boolean includesNewline()Indicates whether a newline forms part of the EOL string.- Returns:
- true iff end of line includes a newline character
-
toString
Returns name.
-