Enum Class Parser.ParseContext

java.lang.Object
java.lang.Enum<Parser.ParseContext>
org.jline.reader.Parser.ParseContext
All Implemented Interfaces:
Serializable, Comparable<Parser.ParseContext>, Constable
Enclosing interface:
Parser

public static enum Parser.ParseContext extends Enum<Parser.ParseContext>
  • Enum Constant Details

    • UNSPECIFIED

      public static final Parser.ParseContext UNSPECIFIED
    • ACCEPT_LINE

      public static final Parser.ParseContext ACCEPT_LINE
      Try a real "final" parse. May throw EOFError in which case we have incomplete input.
    • SPLIT_LINE

      public static final Parser.ParseContext SPLIT_LINE
      Parsed words will have all characters present in input line including quotes and escape chars. We should tolerate and ignore errors.
    • COMPLETE

      public static final Parser.ParseContext COMPLETE
      Parse to find completions (typically after a Tab). We should tolerate and ignore errors.
    • SECONDARY_PROMPT

      public static final Parser.ParseContext 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

      public static Parser.ParseContext[] 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

      public static Parser.ParseContext valueOf(String name)
      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