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
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIdentifier token representing an AU or literal value.Left parenthesis token.Logical operator token (AND, OR, NOT).Right parenthesis token. -
Method Summary
Modifier and TypeMethodDescriptionstatic AiccPrerequisiteTokenTypeReturns the enum constant of this class with the specified name.static AiccPrerequisiteTokenType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IDENTIFIER
Identifier token representing an AU or literal value. -
OPERATOR
Logical operator token (AND, OR, NOT). -
LEFT_PAREN
Left parenthesis token. -
RIGHT_PAREN
Right parenthesis token.
-
-
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
-