Package gw.lang.annotation
Class Annotations.Builder.AnnotationInvocationHandler
- java.lang.Object
-
- gw.lang.annotation.Annotations.Builder.AnnotationInvocationHandler
-
- All Implemented Interfaces:
java.lang.reflect.InvocationHandler
- Enclosing class:
- Annotations.Builder<T extends java.lang.annotation.Annotation>
public static class Annotations.Builder.AnnotationInvocationHandler extends java.lang.Object implements java.lang.reflect.InvocationHandler
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class_annotationTypeprivate java.util.Map<java.lang.reflect.Method,Annotations.Builder.Element>_elements
-
Constructor Summary
Constructors Constructor Description AnnotationInvocationHandler(java.util.Map<java.lang.reflect.Method,Annotations.Builder.Element> elements, java.lang.Class annotationType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleanequalsImpl(java.lang.Object obj)java.lang.ClassgetAnnotationType()private java.lang.ObjectgetElementValue(java.lang.Object annotation, java.lang.reflect.Method elementMethod)private inthashCodeImpl()private inthashElement(java.lang.reflect.Method elementMethod, Annotations.Builder.Element element)java.lang.Objectinvoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)private java.lang.StringtoStringImpl()
-
-
-
Field Detail
-
_elements
private final java.util.Map<java.lang.reflect.Method,Annotations.Builder.Element> _elements
-
_annotationType
private final java.lang.Class _annotationType
-
-
Constructor Detail
-
AnnotationInvocationHandler
public AnnotationInvocationHandler(java.util.Map<java.lang.reflect.Method,Annotations.Builder.Element> elements, java.lang.Class annotationType)
-
-
Method Detail
-
getAnnotationType
public java.lang.Class getAnnotationType()
-
invoke
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable- Specified by:
invokein interfacejava.lang.reflect.InvocationHandler- Throws:
java.lang.Throwable
-
toStringImpl
private java.lang.String toStringImpl()
- See Also:
Annotation.toString()
-
hashCodeImpl
private int hashCodeImpl()
- See Also:
Annotation.hashCode()
-
hashElement
private int hashElement(java.lang.reflect.Method elementMethod, Annotations.Builder.Element element)
-
equalsImpl
private boolean equalsImpl(java.lang.Object obj) throws java.lang.Throwable- Throws:
java.lang.Throwable- See Also:
Annotation.equals(Object)
-
getElementValue
private java.lang.Object getElementValue(java.lang.Object annotation, java.lang.reflect.Method elementMethod) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
-