net.sf.parser4j.kernelgenerator.service.grammarnode
Class GrammarNodeFactory
java.lang.Object
net.sf.parser4j.kernelgenerator.service.grammarnode.GrammarNodeFactory
public final class GrammarNodeFactory
- extends java.lang.Object
- Author:
- luc peuvrier
Method Summary |
static GrammarNodeFactory |
getInstance()
|
IGrammarNode |
newGrammarNodeAlternative(NonTerminalMap nonTerminalMap,
java.lang.String nonTerminalName,
java.lang.String simpleMatchClassName,
java.util.List<OperandGrammarNode> operandList,
boolean intermediate)
|
IGrammarNode |
newGrammarNodeConcat(NonTerminalMap nonTerminalMap,
java.lang.String nonTerminalName,
java.lang.String simpleMatchClassName,
java.util.List<OperandGrammarNode> operandList,
boolean intermediate)
|
IGrammarNode |
newGrammarNodeEmpty(NonTerminalMap nonTerminalMap,
java.lang.String nonTerminalName,
java.lang.String simpleMatchClassName,
boolean intermediate)
|
IGrammarNode |
newGrammarNodeString(NonTerminalMap nonTerminalMap,
java.lang.String nonTerminalName,
java.lang.String simpleMatchClassName,
java.lang.String stringValue,
boolean intermediate)
|
OperandGrammarNode |
newGrammarNodeTerminalChar(NonTerminalMap nonTerminalMap,
java.lang.String nonTerminalName,
java.lang.String simpleMatchClassName,
int terminalValue,
boolean intermediate)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static GrammarNodeFactory getInstance()
newGrammarNodeAlternative
public IGrammarNode newGrammarNodeAlternative(NonTerminalMap nonTerminalMap,
java.lang.String nonTerminalName,
java.lang.String simpleMatchClassName,
java.util.List<OperandGrammarNode> operandList,
boolean intermediate)
throws GeneratorException
- Parameters:
nonTerminalMap
- nonTerminalName
- non terminal name, null if not definedsimpleMatchClassName
- operandList
- intermediate
-
- Returns:
-
- Throws:
GeneratorException
newGrammarNodeConcat
public IGrammarNode newGrammarNodeConcat(NonTerminalMap nonTerminalMap,
java.lang.String nonTerminalName,
java.lang.String simpleMatchClassName,
java.util.List<OperandGrammarNode> operandList,
boolean intermediate)
throws GeneratorException
- Parameters:
nonTerminalMap
- nonTerminalName
- non terminal name, null if not definedsimpleMatchClassName
- operandList
- intermediate
-
- Returns:
-
- Throws:
GeneratorException
newGrammarNodeTerminalChar
public OperandGrammarNode newGrammarNodeTerminalChar(NonTerminalMap nonTerminalMap,
java.lang.String nonTerminalName,
java.lang.String simpleMatchClassName,
int terminalValue,
boolean intermediate)
throws GeneratorException
- Parameters:
nonTerminalMap
- nonTerminalName
- non terminal name, null if not definedsimpleMatchClassName
- terminalValue
- intermediate
-
- Returns:
-
- Throws:
GeneratorException
newGrammarNodeEmpty
public IGrammarNode newGrammarNodeEmpty(NonTerminalMap nonTerminalMap,
java.lang.String nonTerminalName,
java.lang.String simpleMatchClassName,
boolean intermediate)
throws GeneratorException
- Parameters:
nonTerminalMap
- nonTerminalName
- non terminal name, null if not definedsimpleMatchClassName
- intermediate
-
- Returns:
-
- Throws:
GeneratorException
newGrammarNodeString
public IGrammarNode newGrammarNodeString(NonTerminalMap nonTerminalMap,
java.lang.String nonTerminalName,
java.lang.String simpleMatchClassName,
java.lang.String stringValue,
boolean intermediate)
throws GeneratorException
- Parameters:
nonTerminalMap
- nonTerminalName
- non terminal name, null if not definedsimpleMatchClassName
- stringValue
- intermediate
-
- Returns:
-
- Throws:
GeneratorException
Copyright © 2008-2009 Luc Peuvrier. All Rights Reserved.