|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dx.dex.file.AnnotationUtils
public final class AnnotationUtils
Utility class for dealing with annotations.
| Method Summary | |
|---|---|
static Annotation |
makeAnnotationDefault(Annotation defaults)
Constructs a standard AnnotationDefault annotation. |
static Annotation |
makeEnclosingClass(CstType clazz)
Constructs a standard EnclosingClass annotation. |
static Annotation |
makeEnclosingMethod(CstMethodRef method)
Constructs a standard EnclosingMethod annotation. |
static Annotation |
makeInnerClass(CstString name,
int accessFlags)
Constructs a standard InnerClass annotation. |
static Annotation |
makeMemberClasses(TypeList types)
Constructs a standard MemberClasses annotation. |
static Annotation |
makeSignature(CstString signature)
Constructs a standard Signature annotation. |
static Annotation |
makeThrows(TypeList types)
Constructs a standard Throws annotation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Annotation makeAnnotationDefault(Annotation defaults)
AnnotationDefault annotation.
defaults - non-null; the defaults, itself as an annotation
non-null; the constructed annotationpublic static Annotation makeEnclosingClass(CstType clazz)
EnclosingClass annotation.
clazz - non-null; the enclosing class
non-null; the annotationpublic static Annotation makeEnclosingMethod(CstMethodRef method)
EnclosingMethod annotation.
method - non-null; the enclosing method
non-null; the annotation
public static Annotation makeInnerClass(CstString name,
int accessFlags)
InnerClass annotation.
name - null-ok; the original name of the class, or
null to represent an anonymous classaccessFlags - the original access flags
non-null; the annotationpublic static Annotation makeMemberClasses(TypeList types)
MemberClasses annotation.
types - non-null; the list of (the types of) the member classes
non-null; the annotationpublic static Annotation makeSignature(CstString signature)
Signature annotation.
signature - non-null; the signature string
non-null; the annotationpublic static Annotation makeThrows(TypeList types)
Throws annotation.
types - non-null; the list of thrown types
non-null; the annotation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||