T
- The Type being reflectedpublic class TypeReflection<T> extends Object implements Comparable<TypeReflection<?>>
Class
,
providing information about it's dependencies and what services it providesModifier and Type | Method and Description |
---|---|
int |
compareTo(TypeReflection<?> o) |
List<oracle.dbtools.plugin.api.types.TypeConstantField<?>> |
constantFields()
Enumerate the static constant fields in this type if any
|
TypeDependencies<T> |
dependencies()
Provides the dependencies of this type
|
boolean |
equals(Object obj) |
<A extends Annotation> |
getAnnotation(Class<A> annotationClass)
Returns this element's annotation for the specified type if such an
annotation is present, else null.
|
int |
hashCode() |
TypeInstantiator<T> |
instantiator()
Retrieve the
TypeInstantiator for this type |
boolean |
isConcrete()
Indicates if this type can be instantiated
|
Set<TypeQualifier<?>> |
provides()
Identifies the services that this type provides
|
Annotation |
scope() |
String |
toString() |
Class<T> |
type()
Provides the underlying type
|
TypeProvider<T> |
using(InstanceLocator locator)
Generates a
TypeProvider for this type, using the specified
InstanceLocator to resolve dependencies of the type |
public int compareTo(TypeReflection<?> o)
compareTo
in interface Comparable<TypeReflection<?>>
public List<oracle.dbtools.plugin.api.types.TypeConstantField<?>> constantFields()
List
of TypeConstantField
instancespublic TypeDependencies<T> dependencies()
TypeDependencies
instancepublic <A extends Annotation> A getAnnotation(Class<A> annotationClass)
A
- the type of the annotation to query for and return if presentannotationClass
- the Class object corresponding to the annotation typeNullPointerException
- if the given annotation class is nullpublic TypeInstantiator<T> instantiator()
TypeInstantiator
for this typeTypeInstantiator
instancepublic boolean isConcrete()
public Set<TypeQualifier<?>> provides()
Set
of TypeQualifier
instances identifying the
services this type providespublic Annotation scope()
public TypeProvider<T> using(InstanceLocator locator)
TypeProvider
for this type, using the specified
InstanceLocator
to resolve dependencies of the typelocator
- Provides the dependencies of this typeTypeProvider
instance