protected static class PurityChecker.PurityCheckerHelper
extends com.sun.source.util.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(com.sun.source.tree.ExpressionTree variable) |
protected boolean |
isLocalVariable(com.sun.source.tree.ExpressionTree variable) |
java.lang.Void |
visitAssignment(com.sun.source.tree.AssignmentTree node,
java.lang.Void ignore) |
java.lang.Void |
visitCatch(com.sun.source.tree.CatchTree node,
java.lang.Void ignore) |
java.lang.Void |
visitCompoundAssignment(com.sun.source.tree.CompoundAssignmentTree node,
java.lang.Void ignore) |
java.lang.Void |
visitMethodInvocation(com.sun.source.tree.MethodInvocationTree node,
java.lang.Void ignore) |
java.lang.Void |
visitNewClass(com.sun.source.tree.NewClassTree node,
java.lang.Void ignore) |
reduce, scan, visitAnnotatedType, visitAnnotation, visitArrayAccess, visitArrayType, visitAssert, visitBinary, visitBlock, visitBreak, visitCase, visitClass, visitCompilationUnit, visitConditionalExpression, visitContinue, visitDoWhileLoop, visitEmptyStatement, visitEnhancedForLoop, visitErroneous, visitExports, visitExpressionStatement, visitForLoop, visitIdentifier, visitIf, visitImport, visitInstanceOf, visitIntersectionType, visitLabeledStatement, visitLambdaExpression, visitLiteral, visitMemberReference, visitMemberSelect, visitMethod, visitModifiers, visitModule, visitNewArray, visitOpens, visitOther, visitPackage, visitParameterizedType, visitParenthesized, visitPrimitiveType, visitProvides, visitRequires, visitReturn, visitSwitch, visitSynchronized, visitThrow, visitTry, visitTypeCast, visitTypeParameter, visitUnary, visitUnionType, visitUses, visitVariable, visitWhileLoop, visitWildcard
protected final AnnotationProvider annoProvider
public PurityCheckerHelper(AnnotationProvider annoProvider, boolean assumeSideEffectFree)
public java.lang.Void visitCatch(com.sun.source.tree.CatchTree node, java.lang.Void ignore)
visitCatch
in interface com.sun.source.tree.TreeVisitor<java.lang.Void,java.lang.Void>
visitCatch
in class com.sun.source.util.TreeScanner<java.lang.Void,java.lang.Void>
public java.lang.Void visitMethodInvocation(com.sun.source.tree.MethodInvocationTree node, java.lang.Void ignore)
visitMethodInvocation
in interface com.sun.source.tree.TreeVisitor<java.lang.Void,java.lang.Void>
visitMethodInvocation
in class com.sun.source.util.TreeScanner<java.lang.Void,java.lang.Void>
public java.lang.Void visitNewClass(com.sun.source.tree.NewClassTree node, java.lang.Void ignore)
visitNewClass
in interface com.sun.source.tree.TreeVisitor<java.lang.Void,java.lang.Void>
visitNewClass
in class com.sun.source.util.TreeScanner<java.lang.Void,java.lang.Void>
public java.lang.Void visitAssignment(com.sun.source.tree.AssignmentTree node, java.lang.Void ignore)
visitAssignment
in interface com.sun.source.tree.TreeVisitor<java.lang.Void,java.lang.Void>
visitAssignment
in class com.sun.source.util.TreeScanner<java.lang.Void,java.lang.Void>
protected void assignmentCheck(com.sun.source.tree.ExpressionTree variable)
protected boolean isLocalVariable(com.sun.source.tree.ExpressionTree variable)
public java.lang.Void visitCompoundAssignment(com.sun.source.tree.CompoundAssignmentTree node, java.lang.Void ignore)
visitCompoundAssignment
in interface com.sun.source.tree.TreeVisitor<java.lang.Void,java.lang.Void>
visitCompoundAssignment
in class com.sun.source.util.TreeScanner<java.lang.Void,java.lang.Void>