/** * Constructs a standard {@code SourceDebugExtension} annotation. * * @param smapString {@code non-null;} the SMAP string associated with * @return {@code non-null;} the annotation */ public static Annotation makeSourceDebugExtension(CstString smapString) { Annotation result = new Annotation(SOURCE_DEBUG_EXTENSION_TYPE, SYSTEM); result.put(new NameValuePair(VALUE_STRING, smapString)); result.setImmutable(); return result; }
/** * Constructs a standard {@code EnclosingMethod} annotation. * * @param method {@code non-null;} the enclosing method * @return {@code non-null;} the annotation */ public static Annotation makeEnclosingMethod(CstMethodRef method) { Annotation result = new Annotation(ENCLOSING_METHOD_TYPE, SYSTEM); result.put(new NameValuePair(VALUE_UTF, method)); result.setImmutable(); return result; }
/** * Constructs a standard {@code EnclosingMethod} annotation. * * @param method {@code non-null;} the enclosing method * @return {@code non-null;} the annotation */ public static Annotation makeEnclosingMethod(CstMethodRef method) { Annotation result = new Annotation(ENCLOSING_METHOD_TYPE, SYSTEM); result.put(new NameValuePair(VALUE_STRING, method)); result.setImmutable(); return result; }
/** * Constructs a standard {@code EnclosingClass} annotation. * * @param clazz {@code non-null;} the enclosing class * @return {@code non-null;} the annotation */ public static Annotation makeEnclosingClass(CstType clazz) { Annotation result = new Annotation(ENCLOSING_CLASS_TYPE, SYSTEM); result.put(new NameValuePair(VALUE_STRING, clazz)); result.setImmutable(); return result; }
/** * Constructs a standard {@code EnclosingClass} annotation. * * @param clazz {@code non-null;} the enclosing class * @return {@code non-null;} the annotation */ public static Annotation makeEnclosingClass(CstType clazz) { Annotation result = new Annotation(ENCLOSING_CLASS_TYPE, SYSTEM); result.put(new NameValuePair(VALUE_STRING, clazz)); result.setImmutable(); return result; }
/** * Constructs a standard {@code EnclosingMethod} annotation. * * @param method {@code non-null;} the enclosing method * @return {@code non-null;} the annotation */ public static Annotation makeEnclosingMethod(CstMethodRef method) { Annotation result = new Annotation(ENCLOSING_METHOD_TYPE, SYSTEM); result.put(new NameValuePair(VALUE_STRING, method)); result.setImmutable(); return result; }
/** * Constructs a standard {@code SourceDebugExtension} annotation. * * @param smapString {@code non-null;} the SMAP string associated with * @return {@code non-null;} the annotation */ public static Annotation makeSourceDebugExtension(CstString smapString) { Annotation result = new Annotation(SOURCE_DEBUG_EXTENSION_TYPE, SYSTEM); result.put(new NameValuePair(VALUE_STRING, smapString)); result.setImmutable(); return result; }
/** * Constructs a standard {@code EnclosingMethod} annotation. * * @param method {@code non-null;} the enclosing method * @return {@code non-null;} the annotation */ public static Annotation makeEnclosingMethod(CstMethodRef method) { Annotation result = new Annotation(ENCLOSING_METHOD_TYPE, SYSTEM); result.put(new NameValuePair(VALUE_STRING, method)); result.setImmutable(); return result; }
/** * Constructs a standard {@code EnclosingClass} annotation. * * @param clazz {@code non-null;} the enclosing class * @return {@code non-null;} the annotation */ public static Annotation makeEnclosingClass(CstType clazz) { Annotation result = new Annotation(ENCLOSING_CLASS_TYPE, SYSTEM); result.put(new NameValuePair(VALUE_STRING, clazz)); result.setImmutable(); return result; }
/** * Constructs a standard {@code EnclosingClass} annotation. * * @param clazz {@code non-null;} the enclosing class * @return {@code non-null;} the annotation */ public static Annotation makeEnclosingClass(CstType clazz) { Annotation result = new Annotation(ENCLOSING_CLASS_TYPE, SYSTEM); result.put(new NameValuePair(VALUE_STRING, clazz)); result.setImmutable(); return result; }
/** * Constructs a standard {@code EnclosingMethod} annotation. * * @param method {@code non-null;} the enclosing method * @return {@code non-null;} the annotation */ public static Annotation makeEnclosingMethod(CstMethodRef method) { Annotation result = new Annotation(ENCLOSING_METHOD_TYPE, SYSTEM); result.put(new NameValuePair(VALUE_STRING, method)); result.setImmutable(); return result; }
/** * Constructs a standard {@code EnclosingClass} annotation. * * @param clazz {@code non-null;} the enclosing class * @return {@code non-null;} the annotation */ public static Annotation makeEnclosingClass(CstType clazz) { Annotation result = new Annotation(ENCLOSING_CLASS_TYPE, SYSTEM); result.put(new NameValuePair(VALUE_UTF, clazz)); result.setImmutable(); return result; }
/** * Constructs a standard {@code Throws} annotation. * * @param types {@code non-null;} the list of thrown types * @return {@code non-null;} the annotation */ public static Annotation makeThrows(TypeList types) { CstArray array = makeCstArray(types); Annotation result = new Annotation(THROWS_TYPE, SYSTEM); result.put(new NameValuePair(VALUE_STRING, array)); result.setImmutable(); return result; }
/** * Constructs a standard {@code MemberClasses} annotation. * * @param types {@code non-null;} the list of (the types of) the member classes * @return {@code non-null;} the annotation */ public static Annotation makeMemberClasses(TypeList types) { CstArray array = makeCstArray(types); Annotation result = new Annotation(MEMBER_CLASSES_TYPE, SYSTEM); result.put(new NameValuePair(VALUE_UTF, array)); result.setImmutable(); return result; }
/** * Constructs a standard {@code AnnotationDefault} annotation. * * @param defaults {@code non-null;} the defaults, itself as an annotation * @return {@code non-null;} the constructed annotation */ public static Annotation makeAnnotationDefault(Annotation defaults) { Annotation result = new Annotation(ANNOTATION_DEFAULT_TYPE, SYSTEM); result.put(new NameValuePair(VALUE_STRING, new CstAnnotation(defaults))); result.setImmutable(); return result; }
/** * Constructs a standard {@code AnnotationDefault} annotation. * * @param defaults {@code non-null;} the defaults, itself as an annotation * @return {@code non-null;} the constructed annotation */ public static Annotation makeAnnotationDefault(Annotation defaults) { Annotation result = new Annotation(ANNOTATION_DEFAULT_TYPE, SYSTEM); result.put(new NameValuePair(VALUE_STRING, new CstAnnotation(defaults))); result.setImmutable(); return result; }
/** * Constructs a standard {@code AnnotationDefault} annotation. * * @param defaults {@code non-null;} the defaults, itself as an annotation * @return {@code non-null;} the constructed annotation */ public static Annotation makeAnnotationDefault(Annotation defaults) { Annotation result = new Annotation(ANNOTATION_DEFAULT_TYPE, SYSTEM); result.put(new NameValuePair(VALUE_STRING, new CstAnnotation(defaults))); result.setImmutable(); return result; }
/** * Constructs a standard {@code AnnotationDefault} annotation. * * @param defaults {@code non-null;} the defaults, itself as an annotation * @return {@code non-null;} the constructed annotation */ public static Annotation makeAnnotationDefault(Annotation defaults) { Annotation result = new Annotation(ANNOTATION_DEFAULT_TYPE, SYSTEM); result.put(new NameValuePair(VALUE_STRING, new CstAnnotation(defaults))); result.setImmutable(); return result; }
/** * Constructs a standard {@code AnnotationDefault} annotation. * * @param defaults {@code non-null;} the defaults, itself as an annotation * @return {@code non-null;} the constructed annotation */ public static Annotation makeAnnotationDefault(Annotation defaults) { Annotation result = new Annotation(ANNOTATION_DEFAULT_TYPE, SYSTEM); result.put(new NameValuePair(VALUE_STRING, new CstAnnotation(defaults))); result.setImmutable(); return result; }
/** * Constructs a standard {@code AnnotationDefault} annotation. * * @param defaults {@code non-null;} the defaults, itself as an annotation * @return {@code non-null;} the constructed annotation */ public static Annotation makeAnnotationDefault(Annotation defaults) { Annotation result = new Annotation(ANNOTATION_DEFAULT_TYPE, SYSTEM); result.put(new NameValuePair(VALUE_UTF, new CstAnnotation(defaults))); result.setImmutable(); return result; }