Class Lexer2.LexerBuilder

  • Enclosing class:
    Lexer2

    public static final class Lexer2.LexerBuilder
    extends Object
    • 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
      • withCodeReaderConfiguration

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

        public Lexer2.LexerBuilder withFailIfNoChannelToConsumeOneCharacter​(boolean failIfNoChannelToConsumeOneCharacter)