fr.umlv.tatoo.runtime.lexer
Class LexerTable<R>

java.lang.Object
  extended by 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.
 
Method Summary
 Map<R,RuleData> getRuleDataMap()
          Returns an unmodifiable map that associates a rule data for each rule.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.