Class AnnotationTool<T extends Annotation>

java.lang.Object
io.github.hglabplh_tech.reflect.clojure.api.annotations.AnnotationTool<T>
Type Parameters:
T - T is the type of the class and this type extends the annotation class

public class AnnotationTool<T extends Annotation> extends Object
This class is a utility class for analyzing the content and the attributes of a given annotation.
  • Constructor Details

    • AnnotationTool

      public AnnotationTool(Class<T> annot)
      Here the Utility is constructed with an annotation to be analyzed if the input class is not an annotation an Illegal Argument Exception is thrown
      Parameters:
      annot - a annotation to analyze
  • Method Details

    • getAnnotationAttributes

      public clojure.lang.IPersistentMap getAnnotationAttributes()
      With this the attributes of a annotation are retrieved (Target, Retention)
      Returns:
      the map of the annotation attributes
    • retrieveAnnotationValues

      public static clojure.lang.IPersistentMap retrieveAnnotationValues(Annotation annot)