protected static class PurityChecker.PurityCheckerHelper extends TreePathScanner<Void,Void>
PurityChecker
's interface clean.Modifier and Type | Field and Description |
---|---|
protected AnnotationProvider |
annoProvider |
Constructor and Description |
---|
PurityCheckerHelper(AnnotationProvider annoProvider,
boolean assumeSideEffectFree) |
Modifier and Type | Method and Description |
---|---|
protected void |
assignmentCheck(ExpressionTree variable) |
protected boolean |
isLocalVariable(ExpressionTree variable) |
Void |
visitAssignment(AssignmentTree node,
Void ignore) |
Void |
visitCatch(CatchTree node,
Void ignore) |
Void |
visitCompoundAssignment(CompoundAssignmentTree node,
Void ignore) |
Void |
visitMethodInvocation(MethodInvocationTree node,
Void ignore) |
Void |
visitNewClass(NewClassTree node,
Void ignore) |
getCurrentPath, scan, scan
reduce, scan, visitAnnotatedType, visitAnnotation, visitArrayAccess, visitArrayType, visitAssert, visitBinary, visitBlock, visitBreak, visitCase, visitClass, visitCompilationUnit, visitConditionalExpression, visitContinue, visitDoWhileLoop, visitEmptyStatement, visitEnhancedForLoop, visitErroneous, visitExpressionStatement, visitForLoop, visitIdentifier, visitIf, visitImport, visitInstanceOf, visitIntersectionType, visitLabeledStatement, visitLambdaExpression, visitLiteral, visitMemberReference, visitMemberSelect, visitMethod, visitModifiers, visitNewArray, visitOther, visitParameterizedType, visitParenthesized, visitPrimitiveType, visitReturn, visitSwitch, visitSynchronized, visitThrow, visitTry, visitTypeCast, visitTypeParameter, visitUnary, visitUnionType, visitVariable, visitWhileLoop, visitWildcard
protected final AnnotationProvider annoProvider
public PurityCheckerHelper(AnnotationProvider annoProvider, boolean assumeSideEffectFree)
public Void visitCatch(CatchTree node, Void ignore)
visitCatch
in interface TreeVisitor<Void,Void>
visitCatch
in class TreeScanner<Void,Void>
public Void visitMethodInvocation(MethodInvocationTree node, Void ignore)
visitMethodInvocation
in interface TreeVisitor<Void,Void>
visitMethodInvocation
in class TreeScanner<Void,Void>
public Void visitNewClass(NewClassTree node, Void ignore)
visitNewClass
in interface TreeVisitor<Void,Void>
visitNewClass
in class TreeScanner<Void,Void>
public Void visitAssignment(AssignmentTree node, Void ignore)
visitAssignment
in interface TreeVisitor<Void,Void>
visitAssignment
in class TreeScanner<Void,Void>
protected void assignmentCheck(ExpressionTree variable)
protected boolean isLocalVariable(ExpressionTree variable)
public Void visitCompoundAssignment(CompoundAssignmentTree node, Void ignore)
visitCompoundAssignment
in interface TreeVisitor<Void,Void>
visitCompoundAssignment
in class TreeScanner<Void,Void>