Enum Class AiccPrerequisiteTokenType

java.lang.Object
java.lang.Enum<AiccPrerequisiteTokenType>
dev.jcputney.elearning.parser.input.aicc.prereq.AiccPrerequisiteTokenType
All Implemented Interfaces:
Serializable, Comparable<AiccPrerequisiteTokenType>, Constable

public enum AiccPrerequisiteTokenType extends Enum<AiccPrerequisiteTokenType>
Represents the types of tokens that can be encountered when parsing an AICC prerequisite expression. Each token type defines the role the token plays within the expression.

The following token types are supported: - IDENTIFIER: Represents a learning object or a literal value. - OPERATOR: Represents logical operators (e.g., AND, OR, NOT). - LEFT_PAREN: Represents the opening parenthesis in an expression. - RIGHT_PAREN: Represents the closing parenthesis in an expression.

  • Enum Constant Details

  • Method Details

    • values

      public static AiccPrerequisiteTokenType[] 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 AiccPrerequisiteTokenType 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