@Documented @Retention(value=CLASS) @Target(value={METHOD,FIELD,PARAMETER,LOCAL_VARIABLE,ANNOTATION_TYPE}) public @interface Language
This annotation also could be used as a meta-annotation, to define derived annotations for convenience. E.g. the following annotation could be defined to annotate the strings that represent Java methods:
@Language(value = "JAVA", prefix = "class X{", suffix = "}") @interface JavaMethod {}
Note that using the derived annotation as meta-annotation is not supported. Meta-annotation works only one level deep.
@NonNls public abstract @NonNls String value
Pattern
@NonNls public abstract @NonNls String prefix
void methodProcessor(@Language(value="JAVA", prefix="class X {", suffix="}")
.Copyright © 2024. All rights reserved.