public class AnnotationTools extends Object
Constructor and Description |
---|
AnnotationTools() |
Modifier and Type | Method and Description |
---|---|
static Edit<?> |
addAnnotation(Annotated<?> annotated,
AnnotationBeanSPI a,
Edits edits) |
List<Class<?>> |
getAnnotatingClasses(List<AnnotationBeanSPI> annotations,
Annotated<?> annotated) |
static AnnotationBeanSPI |
getAnnotation(Annotated<?> annotated,
Class<?> annotationClass) |
<T> List<Class<? extends T>> |
getAnnotationBeanClasses(List<AnnotationBeanSPI> annotations,
Class<T> superClass) |
static String |
getAnnotationString(Annotated<?> annotated,
Class<?> annotationClass,
String missingValue) |
static void |
pruneAnnotations(Annotated<?> annotated,
Edits edits)
Remove out of date annotations unless many of that class are allowed, or
it is explicitly not pruned
|
static Edit<?> |
setAnnotationString(Annotated<?> annotated,
Class<?> c,
String value,
Edits edits) |
public static Edit<?> addAnnotation(Annotated<?> annotated, AnnotationBeanSPI a, Edits edits)
public static AnnotationBeanSPI getAnnotation(Annotated<?> annotated, Class<?> annotationClass)
public <T> List<Class<? extends T>> getAnnotationBeanClasses(List<AnnotationBeanSPI> annotations, Class<T> superClass)
public List<Class<?>> getAnnotatingClasses(List<AnnotationBeanSPI> annotations, Annotated<?> annotated)
public static Edit<?> setAnnotationString(Annotated<?> annotated, Class<?> c, String value, Edits edits)
public static String getAnnotationString(Annotated<?> annotated, Class<?> annotationClass, String missingValue)
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.