|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectproguard.classfile.util.SimplifiedVisitor
proguard.classfile.editor.AnnotationAdder
public class AnnotationAdder
This AnnotationVisitor adds all annotations that it visits to the given target annotation element value, target annotation attribute, or target parameter annotation attribute.
| Constructor Summary | |
|---|---|
AnnotationAdder(ProgramClass targetClass,
AnnotationElementValue targetAnnotationElementValue)
Creates a new AnnotationAdder that will copy annotations into the given target annotation element value. |
|
AnnotationAdder(ProgramClass targetClass,
AnnotationsAttribute targetAnnotationsAttribute)
Creates a new AnnotationAdder that will copy annotations into the given target annotations attribute. |
|
AnnotationAdder(ProgramClass targetClass,
ParameterAnnotationsAttribute targetParameterAnnotationsAttribute)
Creates a new AnnotationAdder that will copy annotations into the given target parameter annotations attribute. |
|
| Method Summary | |
|---|---|
void |
visitAnnotation(Clazz clazz,
Annotation annotation)
|
void |
visitAnnotation(Clazz clazz,
Method method,
int parameterIndex,
Annotation annotation)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface proguard.classfile.attribute.annotation.visitor.AnnotationVisitor |
|---|
visitAnnotation, visitAnnotation |
| Constructor Detail |
|---|
public AnnotationAdder(ProgramClass targetClass,
AnnotationElementValue targetAnnotationElementValue)
public AnnotationAdder(ProgramClass targetClass,
AnnotationsAttribute targetAnnotationsAttribute)
public AnnotationAdder(ProgramClass targetClass,
ParameterAnnotationsAttribute targetParameterAnnotationsAttribute)
| Method Detail |
|---|
public void visitAnnotation(Clazz clazz,
Annotation annotation)
visitAnnotation in interface AnnotationVisitorvisitAnnotation in class SimplifiedVisitor
public void visitAnnotation(Clazz clazz,
Method method,
int parameterIndex,
Annotation annotation)
visitAnnotation in interface AnnotationVisitorvisitAnnotation in class SimplifiedVisitor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||