public class AnnotationInfo extends Object implements Comparable<AnnotationInfo>
Modifier and Type | Class and Description |
---|---|
static class |
AnnotationInfo.AnnotationClassRef
Stores a class descriptor in an annotation as a class type string, e.g.
|
static class |
AnnotationInfo.AnnotationEnumValue
Class for wrapping an enum constant value (split into class name and constant name) referenced inside an
annotation.
|
static class |
AnnotationInfo.AnnotationParamValue
A wrapper used to pair annotation parameter names with annotation parameter values.
|
Constructor and Description |
---|
AnnotationInfo(String annotationName,
List<AnnotationInfo.AnnotationParamValue> annotationParamValues) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(AnnotationInfo o) |
boolean |
equals(Object obj) |
String |
getAnnotationName()
Get the name of the annotation.
|
List<AnnotationInfo.AnnotationParamValue> |
getAnnotationParamValues()
Get the parameter value of the annotation.
|
Class<?> |
getAnnotationType()
Get a class reference for the annotation.
|
static String[] |
getUniqueAnnotationNamesSorted(AnnotationInfo[] annotationInfo)
From an array of AnnotationInfo objects, extract the annotation names, uniquify them, and sort them.
|
static String[] |
getUniqueAnnotationNamesSorted(Collection<AnnotationInfo> annotationInfo)
From a collection of AnnotationInfo objects, extract the annotation names, uniquify them, and sort them.
|
int |
hashCode() |
String |
toString() |
public AnnotationInfo(String annotationName, List<AnnotationInfo.AnnotationParamValue> annotationParamValues)
public String getAnnotationName()
public Class<?> getAnnotationType()
public List<AnnotationInfo.AnnotationParamValue> getAnnotationParamValues()
public int compareTo(AnnotationInfo o)
compareTo
in interface Comparable<AnnotationInfo>
public static String[] getUniqueAnnotationNamesSorted(Collection<AnnotationInfo> annotationInfo)
public static String[] getUniqueAnnotationNamesSorted(AnnotationInfo[] annotationInfo)
Copyright © 2018. All rights reserved.