public final class AnnotationUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
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 |
makeSourceDebugExtension(CstString smapString)
Constructs a standard
SourceDebugExtension annotation. |
static Annotation |
makeThrows(TypeList types)
Constructs a standard
Throws annotation. |
public static Annotation makeAnnotationDefault(Annotation defaults)
AnnotationDefault annotation.defaults - non-null; the defaults, itself as an annotationnon-null; the constructed annotationpublic static Annotation makeEnclosingClass(CstType clazz)
EnclosingClass annotation.clazz - non-null; the enclosing classnon-null; the annotationpublic static Annotation makeEnclosingMethod(CstMethodRef method)
EnclosingMethod annotation.method - non-null; the enclosing methodnon-null; the annotationpublic 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 flagsnon-null; the annotationpublic static Annotation makeMemberClasses(TypeList types)
MemberClasses annotation.types - non-null; the list of (the types of) the member classesnon-null; the annotationpublic static Annotation makeSignature(CstString signature)
Signature annotation.signature - non-null; the signature stringnon-null; the annotationpublic static Annotation makeSourceDebugExtension(CstString smapString)
SourceDebugExtension annotation.smapString - non-null; the SMAP string associated withnon-null; the annotationpublic static Annotation makeThrows(TypeList types)
Throws annotation.types - non-null; the list of thrown typesnon-null; the annotationCopyright © 2020. All Rights Reserved.