Class AnnotationImpl

    • Method Detail

      • getTypeName

        public String getTypeName()
        Obtains the name of the annotation type.
        Returns:
        the type name
      • getAnnotation

        public Annotation getAnnotation()
        Obtains the internal data structure representing the annotation.
        Returns:
        the annotation
      • invoke

        public Object invoke​(Object proxy,
                             Method method,
                             Object[] args)
                      throws Throwable
        Executes a method invocation on a proxy instance. The implementations of toString(), equals(), and hashCode() are directly supplied by the AnnotationImpl. The annotationType() method is also available on the proxy instance.
        Specified by:
        invoke in interface InvocationHandler
        Throws:
        Throwable
      • hashCode

        public int hashCode()
        Returns a hash code value for this object.
        Overrides:
        hashCode in class Object