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 Summary
Modifier and TypeMethodDescriptionvisit(RegexNode.ConcatNode node) Visits a ConcatNode. * @param node The ConcatNode to visit.visit(RegexNode.LiteralNode node) Visits a LiteralNode. * @param node The LiteralNode to visit.visit(RegexNode.StarNode node) Visits a StarNode. * @param node The StarNode to visit.visit(RegexNode.UnionNode node) Visits a UnionNode. * @param node The UnionNode to visit.
-
Method Details
-
visit
Visits a LiteralNode. * @param node The LiteralNode to visit.- Returns:
- The result of the visitor's operation.
-
visit
Visits a ConcatNode. * @param node The ConcatNode to visit.- Returns:
- The result of the visitor's operation.
-
visit
Visits a UnionNode. * @param node The UnionNode to visit.- Returns:
- The result of the visitor's operation.
-
visit
Visits a StarNode. * @param node The StarNode to visit.- Returns:
- The result of the visitor's operation.
-