Class ASTRecord
java.lang.Object
org.checkerframework.afu.scenelib.io.ASTRecord
- All Implemented Interfaces:
Comparable<ASTRecord>
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal CompilationUnitTreeThe AST to which thisASTRecordpertains.final ASTPathPath through AST, from specified declaration to descendant node.final StringName of the enclosing class declaration.final StringName of the enclosing method declaration, or null if there is none.final StringName of the enclosing variable declaration, or null if there is none. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanbooleanextend(ASTPath.ASTEntry entry) inthashCode()booleanReturns true if this record identifies the givenTreePath.newArrayLevel(int depth) replacePath(ASTPath newPath) toString()
-
Field Details
-
ast
The AST to which thisASTRecordpertains. -
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 thisASTRecordpertainsclassName- 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:
compareToin interfaceComparable<ASTRecord>
-
hashCode
public int hashCode() -
matches
Returns true if this record identifies the givenTreePath. -
toString
-
extend
-
extend
-
extend
-