Package oracle.dbtools.plugin.api.di
Class AnnotationsProvider
- java.lang.Object
-
- oracle.dbtools.plugin.api.di.AnnotationsProvider
-
- All Implemented Interfaces:
Annotations
public class AnnotationsProvider extends java.lang.Object implements Annotations
Provides methods for working with annotations.- Author:
- cdivilly
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface oracle.dbtools.plugin.api.di.Annotations
Annotations.Builder<T extends java.lang.annotation.Annotation>
-
-
Field Summary
-
Fields inherited from interface oracle.dbtools.plugin.api.di.Annotations
INSTANCE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends java.lang.annotation.Annotation>
Annotations.Builder<T>create(java.lang.Class<T> type)Create anAnnotationliteralAnnotations.Builder.booleanequals(java.lang.annotation.Annotation[] expected, java.lang.annotation.Annotation[] actual)Determines if one array of annotations is exactly equivalent to another<T extends java.lang.annotation.Annotation>
Tliteral(java.lang.Class<T> type)Create anAnnotationliteral value that has no properties.<T extends java.lang.annotation.Annotation>
Tliteral(java.lang.Class<T> type, java.lang.Object value)Create anAnnotationliteral value for the specifiedAnnotationtype, using the specified #value() property.booleanmatches(java.lang.Iterable<? extends java.lang.annotation.Annotation> expected, java.lang.Iterable<? extends java.lang.annotation.Annotation> actual)Determines if one array of annotations is a subset of another<T extends java.lang.annotation.Annotation>
Annotations.Builder<T>modify(T annotation)Create anAnnotationliteralAnnotations.Builderinitialized with the values of an existing annotation.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface oracle.dbtools.plugin.api.di.Annotations
matches
-
-
-
-
Method Detail
-
create
public <T extends java.lang.annotation.Annotation> Annotations.Builder<T> create(java.lang.Class<T> type)
Description copied from interface:AnnotationsCreate anAnnotationliteralAnnotations.Builder.- Specified by:
createin interfaceAnnotations- Type Parameters:
T- An instance of anAnnotationsub-type- Parameters:
type- The type of annotation to build- Returns:
- a
Annotations.Builderinstance. - See Also:
Annotations.Builder
-
equals
public boolean equals(java.lang.annotation.Annotation[] expected, java.lang.annotation.Annotation[] actual)Description copied from interface:AnnotationsDetermines if one array of annotations is exactly equivalent to another- Specified by:
equalsin interfaceAnnotations- 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
public <T extends java.lang.annotation.Annotation> T literal(java.lang.Class<T> type)
Description copied from interface:AnnotationsCreate anAnnotationliteral value that has no properties.- Specified by:
literalin interfaceAnnotations- Type Parameters:
T- An instance of anAnnotationsub-type- Parameters:
type- The type of annotation to instantiate- Returns:
- Annotation instance
-
literal
public <T extends java.lang.annotation.Annotation> T literal(java.lang.Class<T> type, java.lang.Object value)Description copied from interface:AnnotationsCreate anAnnotationliteral value for the specifiedAnnotationtype, using the specified #value() property.- Specified by:
literalin interfaceAnnotations- 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
public boolean matches(java.lang.Iterable<? extends java.lang.annotation.Annotation> expected, java.lang.Iterable<? extends java.lang.annotation.Annotation> actual)Description copied from interface:AnnotationsDetermines if one array of annotations is a subset of another- Specified by:
matchesin interfaceAnnotations- 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
-
modify
public <T extends java.lang.annotation.Annotation> Annotations.Builder<T> modify(T annotation)
Description copied from interface:AnnotationsCreate anAnnotationliteralAnnotations.Builderinitialized with the values of an existing annotation.- Specified by:
modifyin interfaceAnnotations- Type Parameters:
T- An instance of anAnnotationsub-type- Parameters:
annotation- The existing annotation instance- Returns:
Annotations.Builderinstance
-
-