net.sf.parser4j.generator.entity.grammardefnode
Class RulesDef
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RulesDef
public RulesDef(RuleDef ruleDef)
throws GeneratorException
- Throws:
GeneratorException
RulesDef
public RulesDef(RulesDef rulesDef,
RuleDef ruleDef)
throws GeneratorException
- Throws:
GeneratorException
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.