fr.umlv.tatoo.cc.lexer.regex.pattern
Class PatternRuleCompilerImpl

java.lang.Object
  extended by fr.umlv.tatoo.cc.lexer.regex.pattern.PatternRuleCompilerImpl
All Implemented Interfaces:
PatternRuleCompiler

public class PatternRuleCompilerImpl
extends Object
implements PatternRuleCompiler


Constructor Summary
PatternRuleCompilerImpl(Map<String,Regex> macroes, Encoding charset)
           
 
Method Summary
 Regex createMacro(String pattern)
           
 RuleDecl createRule(RuleFactory lexerFactory, String id, String pattern)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternRuleCompilerImpl

public PatternRuleCompilerImpl(Map<String,Regex> macroes,
                               Encoding charset)
Method Detail

createMacro

public Regex createMacro(String pattern)
Specified by:
createMacro in interface PatternRuleCompiler

createRule

public RuleDecl createRule(RuleFactory lexerFactory,
                           String id,
                           String pattern)
Specified by:
createRule in interface PatternRuleCompiler