Package ru.ispras.castle.ast.basis
Interface SyntaxNodeVisitor<TagT extends java.lang.Enum<TagT>>
-
public interface SyntaxNodeVisitor<TagT extends java.lang.Enum<TagT>>
SyntaxNodeVisitor
is a base interface of aSyntaxNode
visitor.- See Also:
SyntaxNode
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
SyntaxNodeVisitor.Result
SyntaxNodeVisitor.Result
contains possible visitor results.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SyntaxNodeVisitor.Result
onBegin(SyntaxNode<TagT> node)
Called before traversing the child nodes.SyntaxNodeVisitor.Result
onEnd(SyntaxNode<TagT> node)
Called when the child nodes have been traversed.
-
-
-
Method Detail
-
onBegin
SyntaxNodeVisitor.Result onBegin(SyntaxNode<TagT> node)
Called before traversing the child nodes.- Parameters:
node
- the visited node.- Returns:
- the visiting result.
-
onEnd
SyntaxNodeVisitor.Result onEnd(SyntaxNode<TagT> node)
Called when the child nodes have been traversed.- Parameters:
node
- the visited node.- Returns:
- the visiting result.
-
-