Enum Class Parser.State

java.lang.Object
java.lang.Enum<Parser.State>
org.jfuncmachine.sexprlang.parser.Parser.State
All Implemented Interfaces:
Serializable, Comparable<Parser.State>, Constable
Enclosing class:
Parser

public static enum Parser.State extends Enum<Parser.State>
The states of the parser
  • Enum Constant Details

    • AwaitingItem

      public static final Parser.State AwaitingItem
      Indicates the parser is waiting for the next item
    • ReadingNumber

      public static final Parser.State ReadingNumber
      Indicates the parser is reading a number
    • ReadingSymbol

      public static final Parser.State ReadingSymbol
      Indicates the parser is reading a symbol
    • ReadingString

      public static final Parser.State ReadingString
      Indicates the parser is reading a String
    • AwaitingSeparator

      public static final Parser.State AwaitingSeparator
      Indicates the parser is waiting for a separator
    • SkippingLineComment

      public static final Parser.State SkippingLineComment
      Indicates the parser is skipping a line comment
    • SkippingBlockComment

      public static final Parser.State SkippingBlockComment
      Indicates the parser is skipping a block comment
    • GotMinus

      public static final Parser.State GotMinus
      Indicates the parser is has seen a minus to start an item, but doesn't know yet if it is part of a number or part of a symbol
  • Method Details

    • values

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