net.sf.parser4j.generator.entity.grammardefnode
Class RulesDef

java.lang.Object
  extended by net.sf.parser4j.generator.entity.grammardefnode.RulesDef
All Implemented Interfaces:
IGrammarDefNode, IGrammarDefVisitor, IParseNodeData

public class RulesDef
extends java.lang.Object
implements IGrammarDefNode, IGrammarDefVisitor

Author:
luc peuvrier

Constructor Summary
RulesDef(RuleDef ruleDef)
           
RulesDef(RulesDef rulesDef, RuleDef ruleDef)
           
 
Method Summary
 void accept(IGrammarDefVisitor visitor)
           
 void addAll(RulesDef toAdd)
           
 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.List<RuleDef> getList()
           
 java.util.Map<java.lang.String,StatementDef> getStatementDefByNonTerminalNameMap()
           
 java.lang.String getWhiteSpaceNonTerminalName()
           
 void setWhiteSpaceNonTerminalName(java.lang.String whiteSpaceNonTerminalName)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RulesDef

public RulesDef(RuleDef ruleDef)
         throws GeneratorException
Throws:
GeneratorException

RulesDef

public RulesDef(RulesDef rulesDef,
                RuleDef ruleDef)
         throws GeneratorException
Throws:
GeneratorException
Method Detail

setWhiteSpaceNonTerminalName

public void setWhiteSpaceNonTerminalName(java.lang.String whiteSpaceNonTerminalName)
                                  throws GeneratorException
Throws:
GeneratorException

getWhiteSpaceNonTerminalName

public java.lang.String getWhiteSpaceNonTerminalName()

addAll

public void addAll(RulesDef toAdd)

getList

public java.util.List<RuleDef> getList()

getStatementDefByNonTerminalNameMap

public java.util.Map<java.lang.String,StatementDef> getStatementDefByNonTerminalNameMap()
Returns:
the statementDefByNonTerminalNameMap

accept

public void accept(IGrammarDefVisitor visitor)
            throws GrammarDefNodeVisitException
Specified by:
accept in interface IGrammarDefNode
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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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