Package soot.util.annotations
Class AnnotationInstanceCreator
- java.lang.Object
-
- soot.util.annotations.AnnotationInstanceCreator
-
public class AnnotationInstanceCreator extends Object
A simple helper class with the ability to create an instance ofProxyimplementing the annotation interface represented by the givenAnnotationTag.- Author:
- Florian Kuebler
-
-
Constructor Summary
Constructors Constructor Description AnnotationInstanceCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectcreate(AnnotationTag tag)Creates an instance of the Annotation represented bytag.
-
-
-
Method Detail
-
create
public Object create(AnnotationTag tag)
Creates an instance of the Annotation represented bytag.- Parameters:
tag- the soot internal representation of the annotation to be created.- Returns:
- an Object extending
Proxyand implementing the type oftag - Throws:
RuntimeException- if- the class defined in
AnnotationTag.getType()oftagcould not be loaded. tagdoes not define all required methods of the annotation loaded.- a class defined within a
AnnotationElemcould not be loaded. - the enum defined in
AnnotationEnumElemis no instance ofEnum.
- the class defined in
-
-