dk.brics.grammar.ast
Interface NodeVisitor


public interface NodeVisitor

AST node visitor.


Method Summary
 void visitBranchNode(BranchNode n)
          Method to be invoked by AST.traverse(dk.brics.grammar.ast.NodeVisitor) and Node.visitBy(NodeVisitor) on BranchNodes.
 void visitLeafNode(LeafNode s)
          Method to be invoked by AST.traverse(dk.brics.grammar.ast.NodeVisitor) and Node.visitBy(NodeVisitor) on LeafNodes.
 

Method Detail

visitBranchNode

void visitBranchNode(BranchNode n)
Method to be invoked by AST.traverse(dk.brics.grammar.ast.NodeVisitor) and Node.visitBy(NodeVisitor) on BranchNodes.

Parameters:
n - current node

visitLeafNode

void visitLeafNode(LeafNode s)
Method to be invoked by AST.traverse(dk.brics.grammar.ast.NodeVisitor) and Node.visitBy(NodeVisitor) on LeafNodes.

Parameters:
s - current node


Copyright © 2005-2008 Anders Møller.