com.sonar.sslr.impl
Class Lexer2.LexerBuilder

java.lang.Object
  extended by com.sonar.sslr.impl.Lexer2.LexerBuilder
Enclosing class:
Lexer2

public static final class Lexer2.LexerBuilder
extends Object


Method Summary
 Lexer2 build()
           
 Lexer2.LexerBuilder withChannel(org.sonar.channel.Channel<LexerOutput> channel)
           
 Lexer2.LexerBuilder withCharset(Charset charset)
          Define the charset to be used in order to read the source code.
 Lexer2.LexerBuilder withCodeReaderConfiguration(org.sonar.channel.CodeReaderConfiguration conf)
           
 Lexer2.LexerBuilder withFailIfNoChannelToConsumeOneCharacter(boolean failIfNoChannelToConsumeOneCharacter)
           
 Lexer2.LexerBuilder withPreprocessor(Preprocessor2 preprocessor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

build

public Lexer2 build()

withCharset

public Lexer2.LexerBuilder withCharset(Charset charset)
Define the charset to be used in order to read the source code.

Parameters:
charset -
Returns:
this LexerBuilder

withPreprocessor

public Lexer2.LexerBuilder withPreprocessor(Preprocessor2 preprocessor)

withCodeReaderConfiguration

public Lexer2.LexerBuilder withCodeReaderConfiguration(org.sonar.channel.CodeReaderConfiguration conf)

withChannel

public Lexer2.LexerBuilder withChannel(org.sonar.channel.Channel<LexerOutput> channel)

withFailIfNoChannelToConsumeOneCharacter

public Lexer2.LexerBuilder withFailIfNoChannelToConsumeOneCharacter(boolean failIfNoChannelToConsumeOneCharacter)


Copyright © 2009-2014 SonarSource. All Rights Reserved.