Top Description Inners Methods
org.checkerframework.dataflow.qual

public @Interface Pure

extends Annotation
Annotations
@Documented
@Retention:RUNTIME
@Target:METHOD, CONSTRUCTOR
Imports
java.lang.annotation.Documented, .ElementType, .Retention, .RetentionPolicy, .Target

Pure is a method annotation that means both SideEffectFree and Deterministic. The more important of these, when performing pluggable type-checking, is usually SideEffectFree.

For a discussion of the meaning of Pure on a constructor, see the documentation of Deterministic.

This annotation is inherited by subtypes, just as if it were meta-annotated with @InheritedAnnotation.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
Pure.Kind

The type of purity.

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString
org.checkerframework.dataflow.qual back to summary

public final Enum Pure.Kind

extends Enum<Pure.Kind>
Class Inheritance

The type of purity.

Field Summary

Modifier and TypeField and Description
public static final Pure.Kind
DETERMINISTIC

The method returns exactly the same value when called in the same environment.

public static final Pure.Kind
SIDE_EFFECT_FREE

The method has no visible side effects.

Constructor Summary

AccessConstructor and Description
private
Kind()

Method Summary

Modifier and TypeMethod and Description
public static Pure.Kind
public static Pure.Kind[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

DETERMINISTICback to summary
public static final Pure.Kind DETERMINISTIC

The method returns exactly the same value when called in the same environment.

SIDE_EFFECT_FREEback to summary
public static final Pure.Kind SIDE_EFFECT_FREE

The method has no visible side effects.

Constructor Detail

Kindback to summary
private Kind()

Method Detail

valueOfback to summary
public static Pure.Kind valueOf(String name)
valuesback to summary
public static Pure.Kind[] values()