Class ASTRecord

java.lang.Object
org.checkerframework.afu.scenelib.io.ASTRecord
All Implemented Interfaces:
Comparable<ASTRecord>

public class ASTRecord extends Object implements Comparable<ASTRecord>
Structure bundling an ASTPath with information about its starting point. Necessary because the ASTPath structure does not include the declaration from which it originates.
  • Field Details

    • ast

      public final CompilationUnitTree ast
      The AST to which this ASTRecord pertains.
    • className

      public final String className
      Name of the enclosing class declaration.
    • methodName

      public final String methodName
      Name of the enclosing method declaration, or null if there is none.
    • varName

      public final String varName
      Name of the enclosing variable declaration, or null if there is none.
    • astPath

      public final ASTPath astPath
      Path through AST, from specified declaration to descendant node.
  • Constructor Details

    • ASTRecord

      public ASTRecord(CompilationUnitTree ast, String className, String methodName, String varName, ASTPath astPath)
      Creates a new ASTRecord.
      Parameters:
      ast - the AST to which this ASTRecord pertains
      className - name of the enclosing class declaration
      methodName - name of the enclosing method declaration, or null if there is none
      varName - name of the enclosing variable declaration, or null if there is none
      astPath - path through AST, from specified declaration to descendant node
  • Method Details