Class AtlCodeReader

All Implemented Interfaces:
Closeable, AutoCloseable, Readable

public class AtlCodeReader extends SingleCharReader
Reads from a document either forwards or backwards. May be configured to skip comments and strings.
  • Field Details

  • Constructor Details

    • AtlCodeReader

      public AtlCodeReader()
  • Method Details

    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in class Reader
      Throws:
      IOException
      See Also:
    • configureBackwardReader

      public void configureBackwardReader(org.eclipse.jface.text.IDocument document, int offset, boolean skipComments, boolean skipStrings)
    • configureForwardReader

      public void configureForwardReader(org.eclipse.jface.text.IDocument document, int offset, int length, boolean skipComments, boolean skipStrings)
    • getOffset

      public int getOffset()
      Returns the offset of the last read character. Should only be called after read has been called.
    • read

      public int read() throws IOException
      Overrides:
      read in class Reader
      Throws:
      IOException