net.sf.parser4j.generator.service
Class StatementDefTokenSonUpdater

java.lang.Object
  extended by net.sf.parser4j.generator.service.StatementDefTokenSonUpdater
All Implemented Interfaces:
IGrammarDefVisitor

public class StatementDefTokenSonUpdater
extends java.lang.Object
implements IGrammarDefVisitor

Update statement definition token son state using StatementDef.setTokenSon(boolean)
Also create set of not referenced non terminal definition

Author:
luc peuvrier

Constructor Summary
StatementDefTokenSonUpdater()
           
 
Method Summary
 void beginVisit(GrammarDef def)
           
 void beginVisit(RuleDef def)
           
 void beginVisit(RulesDef def)
           
 void beginVisit(RulesGroupListDef def)
           
 boolean beginVisit(StatementDef def)
           
 void endVisit(GrammarDef def)
           
 void endVisit(RuleDef def)
           
 void endVisit(RulesDef def)
           
 void endVisit(RulesGroupListDef def)
           
 void endVisit(StatementDef def)
           
 java.util.Set<java.lang.String> getNotReferenced()
           
 void update(IGrammarDefNode rootData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatementDefTokenSonUpdater

public StatementDefTokenSonUpdater()
Method Detail

update

public void update(IGrammarDefNode rootData)
            throws GeneratorException
Throws:
GeneratorException

getNotReferenced

public java.util.Set<java.lang.String> getNotReferenced()
Returns:
the notReferenced

beginVisit

public void beginVisit(GrammarDef def)
                throws GrammarDefNodeVisitException
Specified by:
beginVisit in interface IGrammarDefVisitor
Throws:
GrammarDefNodeVisitException

endVisit

public void endVisit(GrammarDef def)
              throws GrammarDefNodeVisitException
Specified by:
endVisit in interface IGrammarDefVisitor
Throws:
GrammarDefNodeVisitException

beginVisit

public void beginVisit(RulesGroupListDef def)
                throws GrammarDefNodeVisitException
Specified by:
beginVisit in interface IGrammarDefVisitor
Throws:
GrammarDefNodeVisitException

endVisit

public void endVisit(RulesGroupListDef def)
              throws GrammarDefNodeVisitException
Specified by:
endVisit in interface IGrammarDefVisitor
Throws:
GrammarDefNodeVisitException

beginVisit

public void beginVisit(RulesDef def)
                throws GrammarDefNodeVisitException
Specified by:
beginVisit in interface IGrammarDefVisitor
Throws:
GrammarDefNodeVisitException

endVisit

public void endVisit(RulesDef def)
              throws GrammarDefNodeVisitException
Specified by:
endVisit in interface IGrammarDefVisitor
Throws:
GrammarDefNodeVisitException

beginVisit

public void beginVisit(RuleDef def)
                throws GrammarDefNodeVisitException
Specified by:
beginVisit in interface IGrammarDefVisitor
Throws:
GrammarDefNodeVisitException

endVisit

public void endVisit(RuleDef def)
              throws GrammarDefNodeVisitException
Specified by:
endVisit in interface IGrammarDefVisitor
Throws:
GrammarDefNodeVisitException

beginVisit

public boolean beginVisit(StatementDef def)
                   throws GrammarDefNodeVisitException
Specified by:
beginVisit in interface IGrammarDefVisitor
Throws:
GrammarDefNodeVisitException

endVisit

public void endVisit(StatementDef def)
              throws GrammarDefNodeVisitException
Specified by:
endVisit in interface IGrammarDefVisitor
Throws:
GrammarDefNodeVisitException


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