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 Details

    • visitAnd

      T visitAnd(AndExpression and)
      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

      T visitOr(OrExpression or)
      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

      T visitNot(NotExpression not)
      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

      T visitItemReference(ItemReference itemRef)
      Processes an ItemReference in the context of the visitor pattern.
      Parameters:
      itemRef - the ItemReference to 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

      T visitParseError(ParseError error)
      Visits a ParseError and processes it using the logic defined by the visitor.
      Parameters:
      error - the ParseError instance representing a parsing error in a prerequisite expression
      Returns:
      the result of applying the visitor's logic to the given ParseError