net.sf.parser4j.parser.entity.data
Class NonTerminalMap

java.lang.Object
  extended by net.sf.parser4j.parser.entity.data.NonTerminalMap

public class NonTerminalMap
extends java.lang.Object

mapping between name and identifier for non terminal

Author:
luc peuvrier

Constructor Summary
NonTerminalMap()
           
 
Method Summary
 int createNonTerminalIdentifier(java.lang.String optionnalNonTerminalName, java.lang.String matchClassName, boolean token, boolean stringToken, boolean intermediate)
           
 java.util.Map<java.lang.Integer,NonTerminal> getNonTerminalByIdentifierMap()
           
 int getNonTerminalIdentifier(java.lang.String nonTerminalName)
           
 boolean nameDefined(java.lang.String nonTerminalName)
           
 NonTerminal nonTerminal(int nonTerminalIdentifier)
           
 java.lang.String nonTerminalMatchClassSimpleName(int nonTerminalIdentifier)
           
 int numberOfNonterminal()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonTerminalMap

public NonTerminalMap()
Method Detail

createNonTerminalIdentifier

public int createNonTerminalIdentifier(java.lang.String optionnalNonTerminalName,
                                       java.lang.String matchClassName,
                                       boolean token,
                                       boolean stringToken,
                                       boolean intermediate)
                                throws GeneratorException
Parameters:
optionnalNonTerminalName -
matchClassName -
token -
stringToken -
intermediate -
Returns:
non terminal identifier
Throws:
GeneratorException

nameDefined

public boolean nameDefined(java.lang.String nonTerminalName)

getNonTerminalIdentifier

public int getNonTerminalIdentifier(java.lang.String nonTerminalName)

numberOfNonterminal

public int numberOfNonterminal()

nonTerminal

public NonTerminal nonTerminal(int nonTerminalIdentifier)

nonTerminalMatchClassSimpleName

public java.lang.String nonTerminalMatchClassSimpleName(int nonTerminalIdentifier)

getNonTerminalByIdentifierMap

public java.util.Map<java.lang.Integer,NonTerminal> getNonTerminalByIdentifierMap()


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