Enum Class Parser.Instance

java.lang.Object
java.lang.Enum<Parser.Instance>
me.kzheart.klib.script.kether.core.Parser.Instance
All Implemented Interfaces:
Serializable, Comparable<Parser.Instance>, Constable
Enclosing class:
Parser<T>

public static enum Parser.Instance extends Enum<Parser.Instance>
作为 Parser.create 所用入口而保留的小型门面。
  • Enum Constant Details

  • Method Details

    • values

      public static Parser.Instance[] 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.Instance 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
    • point

      public <T> Parser<T> point(T value)
    • of

      public <T> Parser<T> of(Function<QuestReader,T> parser)
    • frame

      public <T> Parser<T> frame(Function<QuestReader,Parser.Action<T>> parser)