public class AnnotationBuilder<A extends Annotation> extends Object
| Modifier and Type | Method and Description |
|---|---|
A |
build() |
static <U extends Annotation> |
from(Class<U> annotationClass)
Start creating an annotation from the specified class.
|
static <U extends Annotation> |
of(Class<U> annotationClass)
Create an annotation with default values or no values from the specified class.
|
static <U extends Annotation> |
of(Class<U> annotationClass,
Object value)
Create an annotation with a value from the specified class.
|
AnnotationBuilder<A> |
value(Object value) |
AnnotationBuilder<A> |
value(String name,
Object value) |
public static <U extends Annotation> U of(Class<U> annotationClass)
public static <U extends Annotation> U of(Class<U> annotationClass, Object value)
public static <U extends Annotation> AnnotationBuilder<U> from(Class<U> annotationClass)
public AnnotationBuilder<A> value(String name, Object value)
public AnnotationBuilder<A> value(Object value)
public A build()
Copyright © 2016. All rights reserved.