protected static class PurityChecker.PurityCheckerHelper extends TreePathScanner<java.lang.Void,java.lang.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) |
java.lang.Void |
visitAssignment(AssignmentTree node,
java.lang.Void ignore) |
java.lang.Void |
visitCatch(CatchTree node,
java.lang.Void ignore) |
java.lang.Void |
visitCompoundAssignment(CompoundAssignmentTree node,
java.lang.Void ignore) |
java.lang.Void |
visitMethodInvocation(MethodInvocationTree node,
java.lang.Void ignore) |
java.lang.Void |
visitNewClass(NewClassTree node,
java.lang.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 java.lang.Void visitCatch(CatchTree node, java.lang.Void ignore)
visitCatch
in interface TreeVisitor<java.lang.Void,java.lang.Void>
visitCatch
in class TreeScanner<java.lang.Void,java.lang.Void>
public java.lang.Void visitMethodInvocation(MethodInvocationTree node, java.lang.Void ignore)
visitMethodInvocation
in interface TreeVisitor<java.lang.Void,java.lang.Void>
visitMethodInvocation
in class TreeScanner<java.lang.Void,java.lang.Void>
public java.lang.Void visitNewClass(NewClassTree node, java.lang.Void ignore)
visitNewClass
in interface TreeVisitor<java.lang.Void,java.lang.Void>
visitNewClass
in class TreeScanner<java.lang.Void,java.lang.Void>
public java.lang.Void visitAssignment(AssignmentTree node, java.lang.Void ignore)
visitAssignment
in interface TreeVisitor<java.lang.Void,java.lang.Void>
visitAssignment
in class TreeScanner<java.lang.Void,java.lang.Void>
protected void assignmentCheck(ExpressionTree variable)
protected boolean isLocalVariable(ExpressionTree variable)
public java.lang.Void visitCompoundAssignment(CompoundAssignmentTree node, java.lang.Void ignore)
visitCompoundAssignment
in interface TreeVisitor<java.lang.Void,java.lang.Void>
visitCompoundAssignment
in class TreeScanner<java.lang.Void,java.lang.Void>