net.sf.parser4j.parsetreeinspector.service
Class JTreeNodeCreator

java.lang.Object
  extended by net.sf.parser4j.parsetreeinspector.service.JTreeNodeCreator
All Implemented Interfaces:
IParseNodeVisitor, IParseTreeComponentVisitor

public class JTreeNodeCreator
extends java.lang.Object
implements IParseTreeComponentVisitor

creation of JtreeNode tree visiting parse tree

Author:
luc peuvrier

Constructor Summary
JTreeNodeCreator()
           
 
Method Summary
 void beginAlternativeVisit(IParseNode node, int alternativeNumber)
           
 boolean beginVisit(IParseNode node)
          begin node visit
 void beginVisit(ParseNodeComponent component)
           
 void endAlternativeVisit(IParseNode node, int alternativeNumber)
           
 void endVisit(IParseNode node)
          end node visit, not invoke if IParseNodeVisitor.beginVisit(IParseNode) returned false
 void endVisit(ParseNodeComponent component)
           
 IJtreeNode getRootNode()
           
 boolean visitFirstAlternativeOnly()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTreeNodeCreator

public JTreeNodeCreator()
Method Detail

getRootNode

public IJtreeNode getRootNode()

beginVisit

public void beginVisit(ParseNodeComponent component)
Specified by:
beginVisit in interface IParseTreeComponentVisitor

endVisit

public void endVisit(ParseNodeComponent component)
Specified by:
endVisit in interface IParseTreeComponentVisitor

beginVisit

public boolean beginVisit(IParseNode node)
Description copied from interface: IParseNodeVisitor
begin node visit

Specified by:
beginVisit in interface IParseNodeVisitor
Returns:
true if must do the son visit

endVisit

public void endVisit(IParseNode node)
Description copied from interface: IParseNodeVisitor
end node visit, not invoke if IParseNodeVisitor.beginVisit(IParseNode) returned false

Specified by:
endVisit in interface IParseNodeVisitor

visitFirstAlternativeOnly

public boolean visitFirstAlternativeOnly()
Specified by:
visitFirstAlternativeOnly in interface IParseNodeVisitor
Returns:
true if visit first alternative only

beginAlternativeVisit

public void beginAlternativeVisit(IParseNode node,
                                  int alternativeNumber)
Specified by:
beginAlternativeVisit in interface IParseNodeVisitor

endAlternativeVisit

public void endAlternativeVisit(IParseNode node,
                                int alternativeNumber)
Specified by:
endAlternativeVisit in interface IParseNodeVisitor


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