Class TexAnalyser

java.lang.Object
org.ctan.analysers.TexAnalyser

public class TexAnalyser extends Object
The class TexAnalyser contains an analyser for TeX code.
  • Field Details

  • Constructor Details

    • TexAnalyser

      public TexAnalyser()
  • Method Details

    • analyse

      public Analysis analyse(Reader in, String source) throws IOException
      The method analyse provides means to analyse a single file.
      Parameters:
      in - the reader to get lines from
      source - the source file name
      Returns:
      the analysis result
      Throws:
      IOException - in case of an I/O error
    • findPattern

      protected void findPattern(String line, int lineNo, Analysis analysis)
      The method findPattern provides means to analyse a line with the help of some regular expressions.
      Parameters:
      line - the input line
      lineNo - the input line number
      analysis - the analysis result container