Class AnnotationsUtil
java.lang.Object
io.github.hglabplh_tech.reflect.clojure.api.utils.AnnotationsUtil
This is a utility class for getting the Annotations belonging to a
class method field
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AnnotatedTypegetAnnotReturnType(Method meth) get the annotated return-type of a methodstatic clojure.lang.IPersistentVectorgetClassAnnots(Class<?> clazz) get all annotations belonging to a classstatic clojure.lang.IPersistentVectorgetCtorAnnots(Constructor<?> ctor) this function gets the annotations of a constructorstatic clojure.lang.IPersistentMapgetCtorParamAnnots(Constructor<?> ctor) get the annotations of the parameters of a constructorstatic clojure.lang.IPersistentVectorgetFieldAnnots(Field field) get all annotations belonging to a fieldstatic clojure.lang.IPersistentVectorgetMethodAnnots(Method meth) get all annotations belonging to a methodstatic clojure.lang.IPersistentMapgetMethParamAnnots(Method meth) get the annotations of the parameters of a method
-
Constructor Details
-
AnnotationsUtil
public AnnotationsUtil()
-
-
Method Details
-
getClassAnnots
get all annotations belonging to a class- Parameters:
clazz- the class to analyze- Returns:
- a vector of annotation classes
-
getFieldAnnots
get all annotations belonging to a field- Parameters:
field- the field to analyze- Returns:
- a vector of annotation classes
-
getMethodAnnots
get all annotations belonging to a method- Parameters:
meth- the method to analyze- Returns:
- a vector of annotation classes
-
getAnnotReturnType
get the annotated return-type of a method- Parameters:
meth- the method to analyze- Returns:
- a vector of annotation classes
-
getMethParamAnnots
get the annotations of the parameters of a method- Parameters:
meth- the method to analyze- Returns:
- a map containing annotations by parameter
-
getCtorAnnots
this function gets the annotations of a constructor- Parameters:
ctor- the constructor to analyze- Returns:
-
getCtorParamAnnots
get the annotations of the parameters of a constructor- Parameters:
ctor- the constructor to analyze- Returns:
- a map containing annotations by parameter
-