public class PurityUtils extends Object
SideEffectFree, 
Deterministic, 
Pure| Constructor and Description | 
|---|
| PurityUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static List<Pure.Kind> | getPurityKinds(AnnotationProvider provider,
              Element methodElement) | 
| static List<Pure.Kind> | getPurityKinds(AnnotationProvider provider,
              MethodTree tree) | 
| static boolean | hasPurityAnnotation(AnnotationProvider provider,
                   Element methodElement)Does the method  methodElementhave any purity annotation? | 
| static boolean | hasPurityAnnotation(AnnotationProvider provider,
                   MethodTree tree)Does the method  treehave any purity annotation? | 
| static boolean | isDeterministic(AnnotationProvider provider,
               Element methodElement)Is the method  methodElementdeterministic? | 
| static boolean | isDeterministic(AnnotationProvider provider,
               MethodTree tree)Is the method  treedeterministic? | 
| static boolean | isSideEffectFree(AnnotationProvider provider,
                Element methodElement)Is the method  methodElementside-effect-free? | 
| static boolean | isSideEffectFree(AnnotationProvider provider,
                MethodTree tree)Is the method  treeside-effect-free? | 
public static boolean hasPurityAnnotation(AnnotationProvider provider, MethodTree tree)
tree have any purity annotation?public static boolean hasPurityAnnotation(AnnotationProvider provider, Element methodElement)
methodElement have any purity annotation?public static boolean isDeterministic(AnnotationProvider provider, MethodTree tree)
tree deterministic?public static boolean isDeterministic(AnnotationProvider provider, Element methodElement)
methodElement deterministic?public static boolean isSideEffectFree(AnnotationProvider provider, MethodTree tree)
tree side-effect-free?public static boolean isSideEffectFree(AnnotationProvider provider, Element methodElement)
methodElement side-effect-free?public static List<Pure.Kind> getPurityKinds(AnnotationProvider provider, MethodTree tree)
tree.public static List<Pure.Kind> getPurityKinds(AnnotationProvider provider, Element methodElement)
methodElement. TODO: should the return type
     be an EnumSet?