Class BytecodeAnnotation

    • Constructor Detail

      • BytecodeAnnotation

        public BytecodeAnnotation​(String descriptor,
                                  boolean visible)
        Constructor.
        Parameters:
        descriptor - Descriptor.
        visible - Visible.
      • BytecodeAnnotation

        public BytecodeAnnotation​(String descriptor,
                                  boolean visible,
                                  List<BytecodeAnnotationValue> vals)
        Constructor.
        Parameters:
        descriptor - Descriptor.
        visible - Visible.
        vals - Properties.
    • Method Detail

      • write

        public BytecodeAnnotation write​(org.objectweb.asm.ClassVisitor visitor)
        Write class annotation.
        Parameters:
        visitor - Visitor.
        Returns:
        This.
      • write

        public BytecodeAnnotation write​(org.objectweb.asm.MethodVisitor visitor)
        Write method annotation.
        Parameters:
        visitor - Visitor.
        Returns:
        This.
      • write

        public BytecodeAnnotation write​(int index,
                                        org.objectweb.asm.MethodVisitor visitor)
        Write parameter annotation.
        Parameters:
        index - Index of a parameter.
        visitor - Method visitor.
        Returns:
        This.
      • write

        public BytecodeAnnotation write​(org.objectweb.asm.FieldVisitor visitor)
        Write field annotation.
        Parameters:
        visitor - Visitor.
        Returns:
        This.
      • writeTo

        public void writeTo​(org.objectweb.asm.AnnotationVisitor visitor)
        Description copied from interface: BytecodeAnnotationValue
        Write the value to the given visitor.
        Specified by:
        writeTo in interface BytecodeAnnotationValue
        Parameters:
        visitor - Visitor.