Class FileLexerSource

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

public class FileLexerSource extends LexerSource
A Source which lexes a file. The input is buffered.
See Also:
  • Constructor Details

  • Method Details

    • getFile

      public File getFile()
    • getPath

      public String getPath()
      This is not necessarily the same as getFile().getPath() in case we are in a chroot.
      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