JavaScript is disabled on your browser.
Skip navigation links
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.
    • Nested Class Summary

      Nested Classes
      Modifier and Type Class and Description
      static class AnnotationEntry.Value
    • Method Summary

      All Methods
      Modifier and Type Method and Description
      void addMember (java.lang.String name, AnnotationEntry.Value value)
      void addMember (java.lang.String name, java.lang.Object value, Type type)
      java.lang.Class<? extends java.lang.annotation.Annotation> annotationType ()
      static AnnotationEntry.Value asAnnotationValue (java.lang.Object val, Type type)
      boolean equals (java.lang.Object obj)
      ClassType getAnnotationType ()
      java.lang.annotation.RetentionPolicy getRetention ()
      int hashCode ()
      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.
      java.lang.Object invoke (java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
      void print (int indentation, ClassTypeWriter dst)
      java.lang.String toString ()
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /