net.sf.parser4j.parser.service.parsenode
Interface IParseNodeVisitor

All Known Subinterfaces:
IParseTreeComponentVisitor
All Known Implementing Classes:
JTreeNodeCreator, MatchMgrInvoker, ParsingToStringUtil

public interface IParseNodeVisitor

Author:
luc peuvrier

Method Summary
 void beginAlternativeVisit(IParseNode node, int alternativeNumber)
           
 boolean beginVisit(IParseNode node)
          begin node visit
 void endAlternativeVisit(IParseNode node, int alternativeNumber)
           
 void endVisit(IParseNode node)
          end node visit, not invoke if beginVisit(IParseNode) returned false
 boolean visitFirstAlternativeOnly()
           
 

Method Detail

beginVisit

boolean beginVisit(IParseNode node)
                   throws ParserException
begin node visit

Parameters:
node -
Returns:
true if must do the son visit
Throws:
ParserException

endVisit

void endVisit(IParseNode node)
              throws ParserException
end node visit, not invoke if beginVisit(IParseNode) returned false

Parameters:
node -
Throws:
ParserException

visitFirstAlternativeOnly

boolean visitFirstAlternativeOnly()
Returns:
true if visit first alternative only

beginAlternativeVisit

void beginAlternativeVisit(IParseNode node,
                           int alternativeNumber)

endAlternativeVisit

void endAlternativeVisit(IParseNode node,
                         int alternativeNumber)


Copyright © 2008-2009 Luc Peuvrier. All Rights Reserved.