net.sf.parser4j.parsetreeinspector.service
Class JTreeNodeCreator
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JTreeNodeCreator
public JTreeNodeCreator()
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.