I would like to search all occurrences of a certain annotation to select analysis regions.
Take nullck analysis for example; I would want to find all @NotNull
annotations and start running the nullck analysis from methods containing a variable declared @NotNull
.
Is it possible to do this with soot? It appears that Jimple does not preserve annotation information.
Alternatively, would it be a good idea to write an annotation preprocessor that generates special markers around local variables annotated with @NotNull
and match these markers when Soot is running?