Class InputLexerSource

All Implemented Interfaces:
Closeable, AutoCloseable, Iterable<Token>

public class InputLexerSource extends LexerSource
A Source which lexes an InputStream. The input is buffered.
See Also:
  • Constructor Details

    • InputLexerSource

      public InputLexerSource(@NonNull InputStream input, Charset charset)
      Creates a new Source for lexing the given Reader. Preprocessor directives are honoured within the file.
    • InputLexerSource

      public InputLexerSource(@NonNull Reader input, boolean ppvalid)
    • InputLexerSource

      public InputLexerSource(@NonNull Reader input)
  • Method Details

    • getPath

      public String getPath()
      Description copied from class: Source
      Returns the File currently being lexed.
      Overrides:
      getPath in class Source
    • getName

      public String getName()
      Description copied from class: Source
      Returns the human-readable name of the current Source.
      Overrides:
      getName in class Source
    • toString

      public String toString()
      Overrides:
      toString in class Object