Enum Constant Summary
Enum Constants
Try a real "final" parse.
Parse to find completions (typically after a Tab).
Called when we need to update the secondary prompts.
Parsed words will have all characters present in input line
including quotes and escape chars.
Method Summary
All Methods Static Methods Concrete Methods
Returns the enum constant of this class with the specified name.
Returns an array containing the constants of this enum class, in
the order they are declared.
Methods inherited from class java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
Enum Constant Details
ACCEPT_LINE
Try a real "final" parse.
May throw EOFError in which case we have incomplete input.
SPLIT_LINE
Parsed words will have all characters present in input line
including quotes and escape chars.
We should tolerate and ignore errors.
COMPLETE
Parse to find completions (typically after a Tab).
We should tolerate and ignore errors.
SECONDARY_PROMPT
Called when we need to update the secondary prompts.
Specifically, when we need the 'missing' field from EOFError,
which is used by a "%M" in a prompt pattern.
Method Details
values
Returns an array containing the constants of this enum class, in
the order they are declared.
Returns:
an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this class. (Extraneous whitespace characters are
not permitted.)
Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum class has no constant with the specified name
NullPointerException - if the argument is null