com.sonar.sslr.impl
Class Lexer2.LexerBuilder
java.lang.Object
com.sonar.sslr.impl.Lexer2.LexerBuilder
- Enclosing class:
- Lexer2
public static final class Lexer2.LexerBuilder
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.