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. * @param node The LiteralNode to visit.
      Returns:
      The result of the visitor's operation.
    • visit

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

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

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