fr.umlv.tatoo.runtime.tools
Class AbstractLexerListener<R extends Rule,B extends TokenBuffer>

java.lang.Object
  extended by fr.umlv.tatoo.runtime.tools.AbstractLexerListener<R,B>
All Implemented Interfaces:
LexerListener<R,B>

public abstract class AbstractLexerListener<R extends Rule,B extends TokenBuffer>
extends Object
implements LexerListener<R,B>


Nested Class Summary
static class AbstractLexerListener.BufferOperation
           
 
Constructor Summary
AbstractLexerListener()
           
 
Method Summary
abstract  AbstractLexerListener.BufferOperation ruleVerified(R rule, CharSequence seq)
           
 void ruleVerified(R rule, int lastTokenLength, B buffer)
          This method is called each time a token is recognized by the lexer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLexerListener

public AbstractLexerListener()
Method Detail

ruleVerified

public void ruleVerified(R rule,
                         int lastTokenLength,
                         B buffer)
Description copied from interface: LexerListener
This method is called each time a token is recognized by the lexer.

Specified by:
ruleVerified in interface LexerListener<R extends Rule,B extends TokenBuffer>
Parameters:
rule - the rule verified
lastTokenLength - the length of the token recognized by the rule
buffer - the buffer containing the token to extract

ruleVerified

public abstract AbstractLexerListener.BufferOperation ruleVerified(R rule,
                                                                   CharSequence seq)