proguard.classfile.editor
Class ParameterAnnotationsAttributeEditor

java.lang.Object
  extended by proguard.classfile.editor.ParameterAnnotationsAttributeEditor

public class ParameterAnnotationsAttributeEditor
extends java.lang.Object

This class can add annotations to a given parameter annotations attribute. Annotations to be added must have been filled out beforehand.


Constructor Summary
ParameterAnnotationsAttributeEditor(ParameterAnnotationsAttribute targetParameterAnnotationsAttribute)
          Creates a new ParameterAnnotationsAttributeEditor that will edit annotations in the given parameter annotations attribute.
 
Method Summary
 void addAnnotation(int parameterIndex, Annotation annotation)
          Adds a given annotation to the annotations attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterAnnotationsAttributeEditor

public ParameterAnnotationsAttributeEditor(ParameterAnnotationsAttribute targetParameterAnnotationsAttribute)
Creates a new ParameterAnnotationsAttributeEditor that will edit annotations in the given parameter annotations attribute.

Method Detail

addAnnotation

public void addAnnotation(int parameterIndex,
                          Annotation annotation)
Adds a given annotation to the annotations attribute.