public interface Annotations
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Annotations.Builder<T extends Annotation>
Builds new
Annotation instances |
| Modifier and Type | Field and Description |
|---|---|
static Annotations |
INSTANCE
Global Annotations Service instance, for use by code that runs outside of the dependency injection runtime
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Annotation> |
create(Class<T> type)
Create an
Annotation literal Annotations.Builder. |
boolean |
equals(Annotation[] expected, Annotation[] actual)
Determines if one array of annotations is exactly equivalent to another
|
<T extends Annotation> |
literal(Class<T> type)
Create an
Annotation literal value that has no properties. |
<T extends Annotation> |
literal(Class<T> type, Object value)
Create an
Annotation literal value for the specified Annotation type, using the specified #value() property. |
boolean |
matches(Annotation[] expected, Annotation[] actual)
Determines if one array of annotations is a subset of another
|
<T extends Annotation> |
modify(T annotation)
Create an
Annotation literal Annotations.Builder initialized with the values of an existing annotation. |
static final Annotations INSTANCE
<T extends Annotation> Annotations.Builder<T> create(Class<T> type)
Annotation literal Annotations.Builder.T - An instance of an Annotation sub-typetype - The type of annotation to buildAnnotations.Builder instance.Annotations.Builderboolean equals(Annotation[] expected, Annotation[] actual)
expected - The annotations that must be presentactual - The annotations that are present<T extends Annotation> T literal(Class<T> type)
Annotation literal value that has no properties.T - An instance of an Annotation sub-typetype - The type of annotation to instantiate<T extends Annotation> T literal(Class<T> type, Object value)
Annotation literal value for the specified Annotation type, using the specified #value() property.T - An instance of an Annotation sub-typetype - The type of annotation to instantiatevalue - The value to assign to the #value() propertyboolean matches(Annotation[] expected, Annotation[] actual)
expected - The annotations that must be presentactual - The annotations that are present<T extends Annotation> Annotations.Builder<T> modify(T annotation)
Annotation literal Annotations.Builder initialized with the values of an existing annotation.T - An instance of an Annotation sub-typeannotation - The existing annotation instanceAnnotations.Builder instance