Package gw.lang.annotation
Class Annotations.Builder<T extends java.lang.annotation.Annotation>
- java.lang.Object
-
- gw.lang.annotation.Annotations.Builder<T>
-
- Enclosing class:
- Annotations
public static class Annotations.Builder<T extends java.lang.annotation.Annotation> extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnnotations.Builder.AnnotationInvocationHandlerprivate static classAnnotations.Builder.Element
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class<T>_annotationTypeprivate java.util.Map<java.lang.reflect.Method,Annotations.Builder.Element>_configuredElements
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.util.Map<java.lang.reflect.Method,Annotations.Builder.Element>buildElements()private booleancanLoadAnnotation(java.lang.ClassLoader cl)Tcreate()private java.lang.ClassLoaderdetermineClassLoader()private booleanhasNullElements(java.lang.Object[] array)Annotations.Builder<T>withElement(java.lang.String name, java.lang.Object value)Annotations.Builder<T>withValue(java.lang.Object value)
-
-
-
Field Detail
-
_annotationType
private final java.lang.Class<T extends java.lang.annotation.Annotation> _annotationType
-
_configuredElements
private final java.util.Map<java.lang.reflect.Method,Annotations.Builder.Element> _configuredElements
-
-
Constructor Detail
-
Builder
private Builder(java.lang.Class<T> annotationType)
-
-
Method Detail
-
withElement
public Annotations.Builder<T> withElement(java.lang.String name, java.lang.Object value)
-
withValue
public Annotations.Builder<T> withValue(java.lang.Object value)
-
create
public T create()
-
determineClassLoader
private java.lang.ClassLoader determineClassLoader()
-
canLoadAnnotation
private boolean canLoadAnnotation(java.lang.ClassLoader cl)
-
hasNullElements
private boolean hasNullElements(java.lang.Object[] array)
-
buildElements
private java.util.Map<java.lang.reflect.Method,Annotations.Builder.Element> buildElements()
-
-