public class PurityChecker
extends java.lang.Object
SideEffectFree
, Deterministic
, and Pure
) of a statement or expression. The entry point is method
checkPurity(com.sun.source.util.TreePath, org.checkerframework.javacutil.AnnotationProvider, boolean)
.SideEffectFree
,
Deterministic
,
Pure
Modifier and Type | Class and Description |
---|---|
protected static class |
PurityChecker.PurityCheckerHelper
Helper class to keep
PurityChecker 's interface clean. |
static class |
PurityChecker.PurityResult
Result of the
PurityChecker . |
Constructor and Description |
---|
PurityChecker() |
Modifier and Type | Method and Description |
---|---|
static PurityChecker.PurityResult |
checkPurity(TreePath statement,
AnnotationProvider annoProvider,
boolean assumeSideEffectFree)
Compute whether the given statement is side-effect-free, deterministic, or both.
|
public static PurityChecker.PurityResult checkPurity(TreePath statement, AnnotationProvider annoProvider, boolean assumeSideEffectFree)