Interface PrerequisiteExpression.Visitor<T>
- Type Parameters:
T- the return type of the visitor methods
- Enclosing interface:
- PrerequisiteExpression
public static interface PrerequisiteExpression.Visitor<T>
Visitor pattern for processing prerequisite expressions.
-
Method Summary
Modifier and TypeMethodDescriptionvisitAnd(AndExpression and) Visits an AND expression and processes it using the logic defined by the visitor.visitItemReference(ItemReference itemRef) Processes anItemReferencein the context of the visitor pattern.visitNot(NotExpression not) Visits a NOT expression and processes it using the logic defined by the visitor.visitOr(OrExpression or) Visits an OR expression and processes it using the logic defined by the visitor.visitParseError(ParseError error) Visits aParseErrorand processes it using the logic defined by the visitor.
-
Method Details
-
visitAnd
Visits an AND expression and processes it using the logic defined by the visitor.- Parameters:
and- the AND expression to be visited- Returns:
- the result of applying the visitor's logic to the given AND expression
-
visitOr
Visits an OR expression and processes it using the logic defined by the visitor.- Parameters:
or- the OR expression to be visited- Returns:
- the result of applying the visitor's logic to the given OR expression
-
visitNot
Visits a NOT expression and processes it using the logic defined by the visitor.- Parameters:
not- the NOT expression to be visited- Returns:
- the result of applying the visitor's logic to the given NOT expression
-
visitItemReference
Processes anItemReferencein the context of the visitor pattern.- Parameters:
itemRef- theItemReferenceto be visited, representing a reference to a specific item in a SCORM prerequisite script.- Returns:
- the result of applying the visitor's logic to the given
ItemReference.
-
visitParseError
Visits aParseErrorand processes it using the logic defined by the visitor.- Parameters:
error- theParseErrorinstance representing a parsing error in a prerequisite expression- Returns:
- the result of applying the visitor's logic to the given
ParseError
-