public class DexAnnotation extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DALVIK_ANNOTATION_DEFAULT |
static String |
DALVIK_ANNOTATION_ENCLOSINGCLASS |
static String |
DALVIK_ANNOTATION_ENCLOSINGMETHOD |
static String |
DALVIK_ANNOTATION_INNERCLASS |
static String |
DALVIK_ANNOTATION_MEMBERCLASSES |
static String |
DALVIK_ANNOTATION_SIGNATURE |
static String |
DALVIK_ANNOTATION_THROWS |
static String |
JAVA_DEPRECATED |
| Constructor and Description |
|---|
DexAnnotation(SootClass clazz,
IInitialResolver.Dependencies deps) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAnnotation(String classType,
List<Tag> tags,
VisibilityAnnotationTag[] vatg,
org.jf.dexlib2.iface.Annotation a) |
protected void |
addNormalAnnotation(VisibilityAnnotationTag[] vatg,
org.jf.dexlib2.iface.Annotation a,
int v)
Processes a normal annotation and adds it to the proper visibility annotation tag in the given array
|
protected static int |
getVisibility(int visibility)
Converts Dexlib visibility to Jimple visibility.
|
void |
handleClassAnnotation(org.jf.dexlib2.iface.ClassDef classDef)
Converts Class annotations from Dexlib to Jimple.
|
void |
handleFieldAnnotation(Host h,
org.jf.dexlib2.iface.Field f)
Converts field annotations from Dexlib to Jimple
|
void |
handleMethodAnnotation(Host h,
org.jf.dexlib2.iface.Method method)
Converts method and method parameters annotations from Dexlib to Jimple
|
public static final String JAVA_DEPRECATED
public static final String DALVIK_ANNOTATION_THROWS
public static final String DALVIK_ANNOTATION_SIGNATURE
public static final String DALVIK_ANNOTATION_MEMBERCLASSES
public static final String DALVIK_ANNOTATION_INNERCLASS
public static final String DALVIK_ANNOTATION_ENCLOSINGMETHOD
public static final String DALVIK_ANNOTATION_ENCLOSINGCLASS
public static final String DALVIK_ANNOTATION_DEFAULT
public DexAnnotation(SootClass clazz, IInitialResolver.Dependencies deps)
public void handleClassAnnotation(org.jf.dexlib2.iface.ClassDef classDef)
h - classDef - public void handleFieldAnnotation(Host h, org.jf.dexlib2.iface.Field f)
h - f - public void handleMethodAnnotation(Host h, org.jf.dexlib2.iface.Method method)
h - method - protected void addAnnotation(String classType, List<Tag> tags, VisibilityAnnotationTag[] vatg, org.jf.dexlib2.iface.Annotation a)
protected void addNormalAnnotation(VisibilityAnnotationTag[] vatg, org.jf.dexlib2.iface.Annotation a, int v)
vatg - the visibility annotation tags for different visibility levelsa - the annotationv - the visibilityprotected static int getVisibility(int visibility)
visibility - Dexlib visibilityCopyright © 2020 Soot OSS. All rights reserved.