public class AnnotationGenerator extends Object
| Constructor and Description |
|---|
AnnotationGenerator(Singletons.Global g) |
| Modifier and Type | Method and Description |
|---|---|
void |
annotate(Host h,
Class<? extends Annotation> klass,
AnnotationElem... elems)
Applies a Java 1.5-style annotation to a given Host.
|
void |
annotate(Host h,
Class<? extends Annotation> klass,
List<AnnotationElem> elems)
Applies a Java 1.5-style annotation to a given Host.
|
void |
annotate(Host h,
String annotationName,
int visibility,
List<AnnotationElem> elems)
Applies a Java 1.5-style annotation to a given Host.
|
static AnnotationGenerator |
v()
Returns the unique instance of AnnotationGenerator.
|
public AnnotationGenerator(Singletons.Global g)
public static AnnotationGenerator v()
public void annotate(Host h, Class<? extends Annotation> klass, AnnotationElem... elems)
SootClass, SootMethod or
SootField.h - a method, field, or classklass - the class of the annotation to apply to helems - a (possibly empty) sequence of AnnotationElem objects corresponding to the elements that should be contained in
this annotationpublic void annotate(Host h, Class<? extends Annotation> klass, List<AnnotationElem> elems)
SootClass, SootMethod or
SootField.h - a method, field, or classklass - the class of the annotation to apply to helems - a (possibly empty) sequence of AnnotationElem objects corresponding to the elements that should be contained in
this annotationpublic void annotate(Host h, String annotationName, int visibility, List<AnnotationElem> elems)
SootClass, SootMethod or
SootField.h - a method, field, or classannotationName - the qualified name of the annotation classvisibility - any of the constants in AnnotationConstantselems - a (possibly empty) sequence of AnnotationElem objects corresponding to the elements that should be contained in
this annotationCopyright © 2020 Soot OSS. All rights reserved.