类 TypeAnnotationsAttribute

    • 构造器详细资料

      • TypeAnnotationsAttribute

        protected TypeAnnotationsAttribute()
        Creates an uninitialized TypeAnnotationsAttribute.
      • TypeAnnotationsAttribute

        protected TypeAnnotationsAttribute​(int u2attributeNameIndex,
                                           int u2annotationsCount,
                                           TypeAnnotation[] annotations)
        Creates an initialized TypeAnnotationsAttribute.
    • 方法详细资料

      • typeAnnotationsAccept

        public void typeAnnotationsAccept​(Clazz clazz,
                                          TypeAnnotationVisitor typeAnnotationVisitor)
        Applies the given visitor to all class annotations.
      • typeAnnotationsAccept

        public void typeAnnotationsAccept​(Clazz clazz,
                                          Field field,
                                          TypeAnnotationVisitor typeAnnotationVisitor)
        Applies the given visitor to all field annotations.
      • typeAnnotationsAccept

        public void typeAnnotationsAccept​(Clazz clazz,
                                          Method method,
                                          TypeAnnotationVisitor typeAnnotationVisitor)
        Applies the given visitor to all method annotations.
      • typeAnnotationsAccept

        public void typeAnnotationsAccept​(Clazz clazz,
                                          Method method,
                                          CodeAttribute codeAttribute,
                                          TypeAnnotationVisitor typeAnnotationVisitor)
        Applies the given visitor to all code attribute annotations.