danbikel.parser
Class IdentityNTMapper
java.lang.Object
danbikel.parser.IdentityNTMapper
- All Implemented Interfaces:
- NonterminalMapper
public class IdentityNTMapper
- extends Object
- implements NonterminalMapper
Provides the identity mapping function.
Method Summary |
Symbol |
map(Symbol label)
Returns the specified label unchanged (the identity mapping function). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
map
public Symbol map(Symbol label)
- Returns the specified label unchanged (the identity mapping function).
- Specified by:
map
in interface NonterminalMapper
- Parameters:
label
- the label to be mapped
- Returns:
- the specified label unchanged (the identity mapping function).
Author: Dan Bikel.