danbikel.parser
Class NTMapper
java.lang.Object
danbikel.parser.NTMapper
public class NTMapper
- extends Object
A class that provides a static method for mapping nonterminals, map(Symbol). This class uses an internal NonterminalMapper
instance, the actual type of which is determined by the value of Settings.prevModMapperClass. If Settings.prevModMapperClass was not
set (which should never happen, since that setting is part of the default
settings provided with this package), then an instance of IdentityNTMapper is used.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
map
public static Symbol map(Symbol nonterminal)
- Maps the specified nonterminal to another symbol, via an internal instance
of
NonterminalMapper whose concrete type is determined by
the value of the Settings.prevModMapperClass setting.
- Parameters:
nonterminal - the nonterminal to be mapped
- Returns:
- a mapping of the specified nonterminal
Author: Dan Bikel.