Package com.sonar.sslr.impl
Class Lexer2.LexerBuilder
java.lang.Object
com.sonar.sslr.impl.Lexer2.LexerBuilder
- Enclosing class:
Lexer2
-
Method Summary
Modifier and TypeMethodDescriptionbuild()withChannel(Channel<LexerOutput> channel) withCharset(Charset charset) Define the charset to be used in order to read the source code.withFailIfNoChannelToConsumeOneCharacter(boolean failIfNoChannelToConsumeOneCharacter) withPreprocessor(Preprocessor2 preprocessor)
-
Method Details
-
build
-
withCharset
Define the charset to be used in order to read the source code.- Parameters:
charset-- Returns:
- this LexerBuilder
-
withPreprocessor
-
withCodeReaderConfiguration
-
withChannel
-
withFailIfNoChannelToConsumeOneCharacter
public Lexer2.LexerBuilder withFailIfNoChannelToConsumeOneCharacter(boolean failIfNoChannelToConsumeOneCharacter)
-