fr.umlv.tatoo.runtime.lexer
Class LexerTable<R>
java.lang.Object
fr.umlv.tatoo.runtime.lexer.LexerTable<R>
- Type Parameters:
R
- type of rules.
public class LexerTable<R>
- extends Object
Table that associates rule data to lexer rule.
This table is filled by data generated by Tatoo lexer.
- Author:
- Remi
Constructor Summary |
LexerTable(Map<R,RuleData> ruleDatas)
Creates a lexer table from a map of rules with their lexer data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LexerTable
public LexerTable(Map<R,RuleData> ruleDatas)
- Creates a lexer table from a map of rules with their lexer data.
- Parameters:
ruleDatas
- the map of lexer data.
getRuleDataMap
public Map<R,RuleData> getRuleDataMap()
- Returns an unmodifiable map that associates a rule data
for each rule.
- Returns:
- an unmodifiable map of rule data.