net.sf.parser4j.kernelgenerator.service.grammarnode
Class AbstractGrammarNodeVisitor

java.lang.Object
  extended by net.sf.parser4j.kernelgenerator.service.grammarnode.AbstractGrammarNodeVisitor
All Implemented Interfaces:
IGrammarNodeVisitor
Direct Known Subclasses:
GrammarToTextFile, NonTerminalEmptyStateUpdater, ParserDataGenerator

public abstract class AbstractGrammarNodeVisitor
extends java.lang.Object
implements IGrammarNodeVisitor

since grammar is a graph, this is generic to avoid infinite loop.

Author:
luc peuvrier

Constructor Summary
AbstractGrammarNodeVisitor()
           
 
Method Summary
 boolean beginVisit(IGrammarNode grammarNode)
           
protected abstract  void beginVisitImpl(IGrammarNode grammarNode)
           
protected  void close()
           
 void endVisit(IGrammarNode grammarNode)
           
protected abstract  void endVisitImpl(IGrammarNode grammarNode)
           
protected  void initialize()
           
protected abstract  void visitImpl(IGrammarNode grammarNode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractGrammarNodeVisitor

public AbstractGrammarNodeVisitor()
Method Detail

initialize

protected void initialize()

close

protected void close()

beginVisit

public boolean beginVisit(IGrammarNode grammarNode)
                   throws GrammarNodeVisitException
Specified by:
beginVisit in interface IGrammarNodeVisitor
Throws:
GrammarNodeVisitException

endVisit

public void endVisit(IGrammarNode grammarNode)
              throws GrammarNodeVisitException
Specified by:
endVisit in interface IGrammarNodeVisitor
Throws:
GrammarNodeVisitException

beginVisitImpl

protected abstract void beginVisitImpl(IGrammarNode grammarNode)
                                throws GrammarNodeVisitException
Throws:
GrammarNodeVisitException

endVisitImpl

protected abstract void endVisitImpl(IGrammarNode grammarNode)
                              throws GrammarNodeVisitException
Throws:
GrammarNodeVisitException

visitImpl

protected abstract void visitImpl(IGrammarNode grammarNode)
                           throws GrammarNodeVisitException
Throws:
GrammarNodeVisitException


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