Package gw.lang.annotation
Class Annotations
- java.lang.Object
-
- gw.lang.annotation.Annotations
-
public class Annotations extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Annotations.Builder<T extends Annotation>
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends Annotation>
Annotations.Builder<T>builder(Class<T> annotationType)
Returns a builder that can be used to construct an annotation instance.static <T extends Annotation>
Tcreate(Class<T> annotationType)
Convenience method that constructs an annotation instance with no elements.static <T extends Annotation>
Tcreate(Class<T> annotationType, Object value)
Convenience method that constructs an annotation instance with a single "value" element.
-
-
-
Method Detail
-
builder
public static <T extends Annotation> Annotations.Builder<T> builder(Class<T> annotationType)
Returns a builder that can be used to construct an annotation instance.
-
create
public static <T extends Annotation> T create(Class<T> annotationType, Object value)
Convenience method that constructs an annotation instance with a single "value" element.
-
create
public static <T extends Annotation> T create(Class<T> annotationType)
Convenience method that constructs an annotation instance with no elements.
-
-