Class AnnotationLiteral<T extends java.lang.annotation.Annotation>

  • Type Parameters:
    T - wrapped annotation class
    All Implemented Interfaces:
    java.io.Serializable, java.lang.annotation.Annotation

    public abstract class AnnotationLiteral<T extends java.lang.annotation.Annotation>
    extends java.lang.Object
    implements java.lang.annotation.Annotation, java.io.Serializable
    Annotation literal utility.
    Version:
    $Rev$ $Date$
    See Also:
    Serialized Form
    • Field Detail

      • annotationType

        private java.lang.Class<T extends java.lang.annotation.Annotation> annotationType
      • EMPTY_OBJECT_ARRAY

        private static final java.lang.Object[] EMPTY_OBJECT_ARRAY
    • Constructor Detail

      • AnnotationLiteral

        protected AnnotationLiteral()
    • Method Detail

      • annotationType

        public java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
        Specified by:
        annotationType in interface java.lang.annotation.Annotation
      • getAnnotationType

        private java.lang.Class<T> getAnnotationType​(java.lang.Class<?> definedClazz)
      • equals

        public boolean equals​(java.lang.Object other)
        Specified by:
        equals in interface java.lang.annotation.Annotation
        Overrides:
        equals in class java.lang.Object
      • callMethod

        private java.lang.Object callMethod​(java.lang.Object instance,
                                            java.lang.reflect.Method method)
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.lang.annotation.Annotation
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface java.lang.annotation.Annotation
        Overrides:
        toString in class java.lang.Object