Class 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 Detail

      • _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:
        invoke in interface java.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()
      • 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