Package org.jline.reader
Enum Class Parser.ParseContext
- All Implemented Interfaces:
Serializable
,Comparable<Parser.ParseContext>
,Constable
- Enclosing interface:
- Parser
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionTry 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
Modifier and TypeMethodDescriptionstatic Parser.ParseContext
Returns the enum constant of this class with the specified name.static Parser.ParseContext[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSPECIFIED
-
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 nameNullPointerException
- if the argument is null
-