Package oracle.dbtools.plugin.api.di
Interface Annotations
- All Known Implementing Classes:
AnnotationsProvider
public interface Annotations
Provides methods for working with annotations.
- Author:
- cdivilly
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAnnotations.Builder<T extends Annotation>Builds newAnnotationinstances -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AnnotationsGlobal Annotations Service instance, for use by code that runs outside of the dependency injection runtime -
Method Summary
Modifier and TypeMethodDescription<T extends Annotation>
Annotations.Builder<T>Create anAnnotationliteralAnnotations.Builder.booleanequals(Annotation[] expected, Annotation[] actual) Determines if one array of annotations is exactly equivalent to anotherstatic Annotationsinstance()Retrieve the global instance ofAnnotations<T extends Annotation>
TCreate anAnnotationliteral value that has no properties.<T extends Annotation>
TCreate anAnnotationliteral value for the specifiedAnnotationtype, using the specified #value() property.default booleanmatches(Annotation[] expected, Annotation[] actual) Determines if one array of annotations is a subset of anotherbooleanmatches(Iterable<? extends Annotation> expected, Iterable<? extends Annotation> actual) Determines if one array of annotations is a subset of another<T extends Annotation>
Annotations.Builder<T>modify(T annotation) Create anAnnotationliteralAnnotations.Builderinitialized with the values of an existing annotation.
-
Field Details
-
INSTANCE
Global Annotations Service instance, for use by code that runs outside of the dependency injection runtime
-
-
Method Details
-
create
Create anAnnotationliteralAnnotations.Builder.- Type Parameters:
T- An instance of anAnnotationsub-type- Parameters:
type- The type of annotation to build- Returns:
- a
Annotations.Builderinstance. - See Also:
-
equals
Determines if one array of annotations is exactly equivalent to another- Parameters:
expected- The annotations that must be presentactual- The annotations that are present- Returns:
- true if the actual set of annotations is identical to the expected set of annotations
-
literal
Create anAnnotationliteral value that has no properties.- Type Parameters:
T- An instance of anAnnotationsub-type- Parameters:
type- The type of annotation to instantiate- Returns:
- Annotation instance
-
literal
Create anAnnotationliteral value for the specifiedAnnotationtype, using the specified #value() property.- Type Parameters:
T- An instance of anAnnotationsub-type- Parameters:
type- The type of annotation to instantiatevalue- The value to assign to the#value()property- Returns:
- Annotation instance
-
matches
Determines if one array of annotations is a subset of another- Parameters:
expected- The annotations that must be presentactual- The annotations that are present- Returns:
- true if the actual set of annotations contains every annotation in the expected set, false otherwise
-
matches
Determines if one array of annotations is a subset of another- Parameters:
expected- The annotations that must be presentactual- The annotations that are present- Returns:
- true if the actual set of annotations contains every annotation in the expected set, false otherwise
- Since:
- 19.3.0
-
modify
Create anAnnotationliteralAnnotations.Builderinitialized with the values of an existing annotation.- Type Parameters:
T- An instance of anAnnotationsub-type- Parameters:
annotation- The existing annotation instance- Returns:
Annotations.Builderinstance
-
instance
Retrieve the global instance ofAnnotations- Returns:
Annotationssingleton instance- Since:
- 19.3.0
-