public static final class Lexer2.LexerBuilder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
Lexer2 |
build() |
Lexer2.LexerBuilder |
withChannel( |
Lexer2.LexerBuilder |
withCharset(java.nio.charset.Charset charset)
Define the charset to be used in order to read the source code.
|
Lexer2.LexerBuilder |
withCodeReaderConfiguration(CodeReaderConfiguration conf) |
Lexer2.LexerBuilder |
withFailIfNoChannelToConsumeOneCharacter(boolean failIfNoChannelToConsumeOneCharacter) |
Lexer2.LexerBuilder |
withPreprocessor(Preprocessor2 preprocessor) |
public Lexer2 build()
public Lexer2.LexerBuilder withCharset(java.nio.charset.Charset charset)
charset
- public Lexer2.LexerBuilder withPreprocessor(Preprocessor2 preprocessor)
public Lexer2.LexerBuilder withCodeReaderConfiguration(CodeReaderConfiguration conf)
public Lexer2.LexerBuilder withChannel(channel)
public Lexer2.LexerBuilder withFailIfNoChannelToConsumeOneCharacter(boolean failIfNoChannelToConsumeOneCharacter)
Copyright © 2012 SonarSource. All Rights Reserved.