net.sf.parser4j.parser.entity.data
Class NonTerminalMap
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NonTerminalMap
public NonTerminalMap()
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.