|
Scala example source code file (NestedAnnotations.java)
The Scala NestedAnnotations.java source codepackage test; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Retention; import java.lang.annotation.Target; public class NestedAnnotations { @OuterAnno(inner=@InnerAnno(name="inner")) String field; @Target({FIELD}) @Retention(RUNTIME) public static @interface InnerAnno { String name(); } @Target({FIELD}) @Retention(RUNTIME) public static @interface OuterAnno { InnerAnno inner(); } } Other Scala examples (source code examples)Here is a short list of links related to this Scala NestedAnnotations.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.