Interface RegexNode.Visitor<T>

Type Parameters:
T - The return type of the visitor operations.
Enclosing interface:
RegexNode

public static interface RegexNode.Visitor<T>
The Visitor interface for the AST nodes.
  • Method Details

    • visit

      T visit(RegexNode.LiteralNode node)
      Visits a LiteralNode.
      Parameters:
      node - The LiteralNode to visit.
      Returns:
      The result of the visitor's operation.
    • visit

      T visit(RegexNode.ConcatNode node)
      Visits a ConcatNode.
      Parameters:
      node - The ConcatNode to visit.
      Returns:
      The result of the visitor's operation.
    • visit

      T visit(RegexNode.UnionNode node)
      Visits a UnionNode.
      Parameters:
      node - The UnionNode to visit.
      Returns:
      The result of the visitor's operation.
    • visit

      T visit(RegexNode.StarNode node)
      Visits a StarNode.
      Parameters:
      node - The StarNode to visit.
      Returns:
      The result of the visitor's operation.