Annotation Type Pure
-
@Documented @Retention(RUNTIME) @Target({METHOD,CONSTRUCTOR}) public @interface Pure
Pure
is a method annotation that means bothSideEffectFree
andDeterministic
. The more important of these, when performing pluggable type-checking, is usuallySideEffectFree
.For a discussion of the meaning of
Pure
on a constructor, see the documentation ofDeterministic
.This annotation is inherited by subtypes, just as if it were meta-annotated with
@InheritedAnnotation
.- See the Checker Framework Manual:
- Side effects, determinism, purity, and
flow-sensitive analysis