Class AnnotationInfo

    • Constructor Detail

      • AnnotationInfo

        public AnnotationInfo​(String annotationName,
                              List<AnnotationInfo.AnnotationParamValue> annotationParamValues)
        Parameters:
        annotationName - The name of the annotation.
        annotationParamValues - The annotation parameter values, or null if none.
    • Method Detail

      • getAnnotationName

        public String getAnnotationName()
        Get the name of the annotation.
        Returns:
        The annotation name.
      • getAnnotationType

        public Class<?> getAnnotationType()
        Get a class reference for the annotation.
        Returns:
        The annotation type, as a Class<?> reference.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toString

        public void toString​(StringBuilder buf)
        Render as a string, into a StringBuilder buffer.
        Parameters:
        buf - The buffer.
      • getUniqueAnnotationNamesSorted

        public static String[] getUniqueAnnotationNamesSorted​(Collection<AnnotationInfo> annotationInfo)
        From a collection of AnnotationInfo objects, extract the annotation names, uniquify them, and sort them.
        Parameters:
        annotationInfo - The annotation info.
        Returns:
        The sorted, uniquified annotation names.
      • getUniqueAnnotationNamesSorted

        public static String[] getUniqueAnnotationNamesSorted​(AnnotationInfo[] annotationInfo)
        From an array of AnnotationInfo objects, extract the annotation names, uniquify them, and sort them.
        Parameters:
        annotationInfo - The annotation info.
        Returns:
        The sorted, uniquified annotation names.