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
methodElement have any purity annotation? |
static boolean |
hasPurityAnnotation(AnnotationProvider provider,
MethodTree tree)
Does the method
tree have any purity annotation? |
static boolean |
isDeterministic(AnnotationProvider provider,
Element methodElement)
Is the method
methodElement deterministic? |
static boolean |
isDeterministic(AnnotationProvider provider,
MethodTree tree)
Is the method
tree deterministic? |
static boolean |
isSideEffectFree(AnnotationProvider provider,
Element methodElement)
Is the method
methodElement side-effect-free? |
static boolean |
isSideEffectFree(AnnotationProvider provider,
MethodTree tree)
Is the method
tree side-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?