Package proguard.classfile.editor
Class AnnotationsAttributeEditor
- java.lang.Object
-
- proguard.classfile.editor.AnnotationsAttributeEditor
-
public class AnnotationsAttributeEditor extends java.lang.Object
This class can add annotations to a given annotations attribute. Annotations to be added must have been filled out beforehand.
-
-
Constructor Summary
Constructors Constructor Description AnnotationsAttributeEditor(AnnotationsAttribute targetAnnotationsAttribute)
Creates a new AnnotationsAttributeEditor that will edit annotations in the given annotations attribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAnnotation(Annotation annotation)
Adds a given annotation to the annotations attribute.void
deleteAnnotation(int index)
Deletes the annotation at the given idnex from the annotations attribute.void
deleteAnnotation(Annotation annotation)
Deletes a given annotation from the annotations attribute.
-
-
-
Constructor Detail
-
AnnotationsAttributeEditor
public AnnotationsAttributeEditor(AnnotationsAttribute targetAnnotationsAttribute)
Creates a new AnnotationsAttributeEditor that will edit annotations in the given annotations attribute.
-
-
Method Detail
-
addAnnotation
public void addAnnotation(Annotation annotation)
Adds a given annotation to the annotations attribute.
-
deleteAnnotation
public void deleteAnnotation(Annotation annotation)
Deletes a given annotation from the annotations attribute.
-
deleteAnnotation
public void deleteAnnotation(int index)
Deletes the annotation at the given idnex from the annotations attribute.
-
-