fr.umlv.tatoo.runtime.tools.builder
Class Builder.LexerBufferBuilder<R,B extends LexerBuffer>

java.lang.Object
  extended by fr.umlv.tatoo.runtime.tools.builder.Builder.LexerBufferBuilder<R,B>
Type Parameters:
R - type of rules.
B - type of buffer.
Enclosing class:
Builder

public static class Builder.LexerBufferBuilder<R,B extends LexerBuffer>
extends Object

A lexer builder that configure the listener of the lexer.


Method Summary
 Builder.LexerBuilder<R,B> debugListener()
          Returns a lexer builder configured with a special implementation of a lexer listener that will print the events sent by the lexer.
 Builder.LexerBuilder<R,B> listener(LexerListener<? super R,? super B> listener)
          Returns a lexer builder configured with the lexer listener taken as parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

listener

public Builder.LexerBuilder<R,B> listener(LexerListener<? super R,? super B> listener)
Returns a lexer builder configured with the lexer listener taken as parameter.

Parameters:
listener - a lexer listener
Returns:
a lexer builder configured with the lexer listener taken as parameter.
Throws:
IllegalArgumentException - if the lexer listener is null
See Also:
debugListener()

debugListener

public Builder.LexerBuilder<R,B> debugListener()
Returns a lexer builder configured with a special implementation of a lexer listener that will print the events sent by the lexer.

Returns:
a lexer builder configured with a debugging lexer listener.
See Also:
listener(LexerListener)