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