Interface Analyzer


public interface Analyzer
An analyzer is an object which performs some kind of analysis on an AST, typically leaving behind the information in the AST.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    analyze(AST ast)
    Performs the analysis on the given AST.
    void
    clear(AST ast)
    Removes all analysis artifacts added to the AST by the analyze(AST) method.
  • Method Details

    • analyze

      void analyze(AST ast) throws SyntaxException
      Performs the analysis on the given AST.
      Parameters:
      ast - the AST
      Throws:
      SyntaxException - if some kind of defect is found in the AST
    • clear

      void clear(AST ast)
      Removes all analysis artifacts added to the AST by the analyze(AST) method.
      Parameters:
      ast - the AST