Package oracle.dbtools.plugin.api.types
Class TypeReflection<T>
java.lang.Object
oracle.dbtools.plugin.api.types.TypeReflection<T>
- Type Parameters:
T- The Type being reflected
- All Implemented Interfaces:
Comparable<TypeReflection<?>>
Provides higher level abstraction about the type metadata of a
Class,
providing information about it's dependencies and what services it provides- Since:
- 19.3.0
- Author:
- cdivilly
-
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(TypeReflection<?> o) List<oracle.dbtools.plugin.api.types.TypeConstantField<?>>Enumerate the static constant fields in this type if anyProvides the dependencies of this typeboolean<A extends Annotation>
AgetAnnotation(Class<A> annotationClass) Returns this element's annotation for the specified type if such an annotation is present, else null.inthashCode()Retrieve theTypeInstantiatorfor this typebooleanIndicates if this type can be instantiatedSet<TypeQualifier<?>>provides()Identifies the services that this type providesscope()toString()type()Provides the underlying typeusing(InstanceLocator locator) Generates aTypeProviderfor this type, using the specifiedInstanceLocatorto resolve dependencies of the type
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<T>
-
constantFields
Enumerate the static constant fields in this type if any- Returns:
ListofTypeConstantFieldinstances
-
dependencies
Provides the dependencies of this type- Returns:
TypeDependenciesinstance
-
equals
-
getAnnotation
Returns this element's annotation for the specified type if such an annotation is present, else null.- Type Parameters:
A- the type of the annotation to query for and return if present- Parameters:
annotationClass- the Class object corresponding to the annotation type- Returns:
- this element's annotation for the specified annotation type if present on this element, else null
- Throws:
NullPointerException- if the given annotation class is null
-
hashCode
public int hashCode() -
instantiator
Retrieve theTypeInstantiatorfor this type- Returns:
TypeInstantiatorinstance
-
isConcrete
public boolean isConcrete()Indicates if this type can be instantiated- Returns:
- true if the type can be instantiated, false otherwise
-
provides
Identifies the services that this type provides- Returns:
SetofTypeQualifierinstances identifying the services this type provides
-
scope
-
toString
-
type
Provides the underlying type- Returns:
Classinstance
-
using
Generates aTypeProviderfor this type, using the specifiedInstanceLocatorto resolve dependencies of the type- Parameters:
locator- Provides the dependencies of this type- Returns:
TypeProviderinstance
-