Class ASTRecord
java.lang.Object
org.checkerframework.afu.scenelib.io.ASTRecord
- All Implemented Interfaces:
Comparable<ASTRecord>
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal CompilationUnitTree
The AST to which thisASTRecord
pertains.final ASTPath
Path through AST, from specified declaration to descendant node.final String
Name of the enclosing class declaration.final String
Name of the enclosing method declaration, or null if there is none.final String
Name of the enclosing variable declaration, or null if there is none. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
boolean
extend
(ASTPath.ASTEntry entry) int
hashCode()
boolean
Returns true if this record identifies the givenTreePath
.newArrayLevel
(int depth) replacePath
(ASTPath newPath) toString()
-
Field Details
-
ast
The AST to which thisASTRecord
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.
-
-
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 thisASTRecord
pertainsclassName
- name of the enclosing class declarationmethodName
- name of the enclosing method declaration, or null if there is nonevarName
- name of the enclosing variable declaration, or null if there is noneastPath
- path through AST, from specified declaration to descendant node
-
-
Method Details
-
newArrayLevel
-
replacePath
-
equals
-
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ASTRecord>
-
hashCode
public int hashCode() -
matches
Returns true if this record identifies the givenTreePath
. -
toString
-
extend
-
extend
-
extend
-