public class PurityUtils extends Object
SideEffectFree, 
Deterministic, 
Pure| Constructor and Description | 
|---|
| PurityUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static EnumSet<Pure.Kind> | getPurityKinds(AnnotationProvider provider,
              Element methodElement)Returns the types of purity of the method  methodElement. | 
| static EnumSet<Pure.Kind> | getPurityKinds(AnnotationProvider provider,
              MethodTree methodTree)Returns the types of purity of the method  methodTree. | 
| static boolean | hasPurityAnnotation(AnnotationProvider provider,
                   Element methodElement)Does the method  methodElementhave any purity annotation? | 
| static boolean | hasPurityAnnotation(AnnotationProvider provider,
                   MethodTree methodTree)Does the method  methodTreehave any purity annotation? | 
| static boolean | isDeterministic(AnnotationProvider provider,
               Element methodElement)Is the method  methodElementdeterministic? | 
| static boolean | isDeterministic(AnnotationProvider provider,
               MethodTree methodTree)Is the method  methodTreedeterministic? | 
| static boolean | isSideEffectFree(AnnotationProvider provider,
                Element methodElement)Is the method  methodElementside-effect-free? | 
| static boolean | isSideEffectFree(AnnotationProvider provider,
                MethodTree methodTree)Is the method  methodTreeside-effect-free? | 
public static boolean hasPurityAnnotation(AnnotationProvider provider, MethodTree methodTree)
methodTree have any purity annotation?provider - how to get annotationsmethodTree - a method to testpublic static boolean hasPurityAnnotation(AnnotationProvider provider, Element methodElement)
methodElement have any purity annotation?provider - how to get annotationsmethodElement - a method to testpublic static boolean isDeterministic(AnnotationProvider provider, MethodTree methodTree)
methodTree deterministic?provider - how to get annotationsmethodTree - a method to testpublic static boolean isDeterministic(AnnotationProvider provider, Element methodElement)
methodElement deterministic?provider - how to get annotationsmethodElement - a method to testpublic static boolean isSideEffectFree(AnnotationProvider provider, MethodTree methodTree)
methodTree side-effect-free?provider - how to get annotationsmethodTree - a method to testpublic static boolean isSideEffectFree(AnnotationProvider provider, Element methodElement)
methodElement side-effect-free?provider - how to get annotationsmethodElement - a method to testpublic static EnumSet<Pure.Kind> getPurityKinds(AnnotationProvider provider, MethodTree methodTree)
methodTree.provider - how to get annotationsmethodTree - a method to testmethodTreepublic static EnumSet<Pure.Kind> getPurityKinds(AnnotationProvider provider, Element methodElement)
methodElement.provider - how to get annotationsmethodElement - a method to testmethodElement