net.sf.parser4j.generator.service
Class GrammarDefNodeToTextFile

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

public final class GrammarDefNodeToTextFile
extends java.lang.Object
implements IGrammarDefVisitor

output grammar definition tree to text file

Author:
luc peuvrier

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)
           
 void generateTextFile(IGrammarDefNode grammarDefNode, java.io.File textFile)
           
 java.lang.String generateToString(IGrammarDefNode grammarDefNode)
           
static GrammarDefNodeToTextFile getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static GrammarDefNodeToTextFile getInstance()

generateTextFile

public void generateTextFile(IGrammarDefNode grammarDefNode,
                             java.io.File textFile)
                      throws GrammarDefNodeVisitException
Throws:
GrammarDefNodeVisitException

generateToString

public java.lang.String generateToString(IGrammarDefNode grammarDefNode)
                                  throws GrammarDefNodeVisitException
Throws:
GrammarDefNodeVisitException

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.