Package gw.lang.annotation
Class Annotations.Builder.AnnotationInvocationHandler
java.lang.Object
gw.lang.annotation.Annotations.Builder.AnnotationInvocationHandler
- All Implemented Interfaces:
InvocationHandler
- Enclosing class:
- Annotations.Builder<T extends Annotation>
public static class Annotations.Builder.AnnotationInvocationHandler
extends Object
implements InvocationHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Class
private final Map<Method,
Annotations.Builder.Element> -
Constructor Summary
ConstructorsConstructorDescriptionAnnotationInvocationHandler
(Map<Method, Annotations.Builder.Element> elements, Class annotationType) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
equalsImpl
(Object obj) private Object
getElementValue
(Object annotation, Method elementMethod) private int
private int
hashElement
(Method elementMethod, Annotations.Builder.Element element) private String
-
Field Details
-
_elements
-
_annotationType
-
-
Constructor Details
-
AnnotationInvocationHandler
public AnnotationInvocationHandler(Map<Method, Annotations.Builder.Element> elements, Class annotationType)
-
-
Method Details
-
getAnnotationType
-
invoke
- Specified by:
invoke
in interfaceInvocationHandler
- Throws:
Throwable
-
toStringImpl
- See Also:
-
hashCodeImpl
private int hashCodeImpl()- See Also:
-
hashElement
-
equalsImpl
- Throws:
Throwable
- See Also:
-
getElementValue
- Throws:
Throwable
-