Package com.sonar.sslr.impl
Class Lexer2.LexerBuilder
- java.lang.Object
-
- com.sonar.sslr.impl.Lexer2.LexerBuilder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Lexer2build()Lexer2.LexerBuilderwithChannel(org.sonar.channel.Channel<LexerOutput> channel)Lexer2.LexerBuilderwithCharset(Charset charset)Define the charset to be used in order to read the source code.Lexer2.LexerBuilderwithCodeReaderConfiguration(org.sonar.channel.CodeReaderConfiguration conf)Lexer2.LexerBuilderwithFailIfNoChannelToConsumeOneCharacter(boolean failIfNoChannelToConsumeOneCharacter)Lexer2.LexerBuilderwithPreprocessor(Preprocessor2 preprocessor)
-
-
-
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)
-
-