com.googlecode.sarasvati.visitor
Interface TokenVisitor

All Known Implementing Classes:
BacktrackTokenVisitor, FindNodeNamedVisitor, TokenVisitorAdaptor

public interface TokenVisitor


Method Summary
 boolean follow(ArcToken child)
          Returns true if the arc token should be followed.
 void visit(ArcToken token)
          Visits the given ArcToken.
 void visit(NodeToken token)
          Visits the given NodeToken.
 

Method Detail

visit

void visit(NodeToken token)
Visits the given NodeToken.

Parameters:
token - The NodeToken being visited.

visit

void visit(ArcToken token)
Visits the given ArcToken.

Parameters:
token - The ArcToken being visited.

follow

boolean follow(ArcToken child)
Returns true if the arc token should be followed.

Parameters:
child - The child arc token in question
Returns:
True if the arc token should be followed, false otherwise