Package proguard.classfile.editor
Class ParameterAnnotationsAttributeEditor
java.lang.Object
proguard.classfile.editor.ParameterAnnotationsAttributeEditor
This class can add annotations to a given parameter annotations attribute. Annotations to be
added must have been filled out beforehand.
-
Constructor Summary
ConstructorsConstructorDescriptionParameterAnnotationsAttributeEditor(ParameterAnnotationsAttribute targetParameterAnnotationsAttribute) Creates a new ParameterAnnotationsAttributeEditor that will edit annotations in the given parameter annotations attribute. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAnnotation(int parameterIndex, Annotation annotation) Adds a given annotation to the annotations attribute.voiddeleteAnnotation(int parameterIndex, int annotationIndex) Deletes the annotation at the given index from the annotations attribute.voiddeleteAnnotation(int parameterIndex, Annotation annotation) Deletes a given annotation from the annotations attribute.
-
Constructor Details
-
ParameterAnnotationsAttributeEditor
public ParameterAnnotationsAttributeEditor(ParameterAnnotationsAttribute targetParameterAnnotationsAttribute) Creates a new ParameterAnnotationsAttributeEditor that will edit annotations in the given parameter annotations attribute.
-
-
Method Details
-
addAnnotation
Adds a given annotation to the annotations attribute. -
deleteAnnotation
Deletes a given annotation from the annotations attribute. -
deleteAnnotation
public void deleteAnnotation(int parameterIndex, int annotationIndex) Deletes the annotation at the given index from the annotations attribute.
-