Package gnu.bytecode

Class AnnotationEntry

  • All Implemented Interfaces:
    java.lang.annotation.Annotation, java.lang.reflect.InvocationHandler

    public class AnnotationEntry
    extends java.lang.Object
    implements java.lang.reflect.InvocationHandler, java.lang.annotation.Annotation
    An annotation value mirror.
    • Constructor Detail

      • AnnotationEntry

        public AnnotationEntry()
      • AnnotationEntry

        public AnnotationEntry​(ClassType annotationType)
    • Method Detail

      • getRetention

        public java.lang.annotation.RetentionPolicy getRetention()
      • hasTarget

        public boolean hasTarget​(java.lang.annotation.ElementType etype)
        Is there is a @Target meta-annotation that includes the parameter? If the annotationType has no @Target meta-annotation, return true, since in that case the annotation type is allowed in all contexts. If etype==null, return false iff there is a @Target meta-annotation.
      • getAnnotationType

        public ClassType getAnnotationType()
      • addMember

        public void addMember​(java.lang.String name,
                              java.lang.Object value,
                              Type type)
      • annotationType

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

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface java.lang.annotation.Annotation
        Overrides:
        equals in class java.lang.Object
      • 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
      • invoke

        public java.lang.Object invoke​(java.lang.Object proxy,
                                       java.lang.reflect.Method method,
                                       java.lang.Object[] args)
        Specified by:
        invoke in interface java.lang.reflect.InvocationHandler