net.sf.parser4j.kernelgenerator.service.grammarnode
Class GrammarNodeFactory

java.lang.Object
  extended by 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
 

Method Detail

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 defined
simpleMatchClassName -
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 defined
simpleMatchClassName -
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 defined
simpleMatchClassName -
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 defined
simpleMatchClassName -
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 defined
simpleMatchClassName -
stringValue -
intermediate -
Returns:
Throws:
GeneratorException


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