Parsing Engine

danbikel.parser
Class NTMapper

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


Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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

Parsing Engine

Author: Dan Bikel.