Module org.glassfish.hk2.classmodel
Class ExtensibleTypeImpl<T extends ExtensibleType>
java.lang.Object
org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
org.glassfish.hk2.classmodel.reflect.impl.TypeImpl
org.glassfish.hk2.classmodel.reflect.impl.ExtensibleTypeImpl<T>
- All Implemented Interfaces:
AnnotatedElement,ExtensibleType<T>,Type
- Direct Known Subclasses:
ClassModelImpl,EnumTypeImpl,InterfaceModelImpl
public abstract class ExtensibleTypeImpl<T extends ExtensibleType>
extends TypeImpl
implements ExtensibleType<T>
Implementation of an extensible type (Class or Interface)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns all the children subtypes (including grand children) of this type.Represents the raw generic type and bounded parameterized type.Returns an unmodifiable list of interfaces implemented or extended by this type.Return the parent type instance.Returns the unqualified name of the underlying type.Returns an unmodifiable list of static fields defined by this typebooleanisInstanceOf(String name) Whether the type is an instance of the specified parent type or not.protected voidprint(StringBuffer sb) prints a meaningful stringvoidsetFormalTypeParameters(Map<String, ParameterizedInterfaceModel> typeParameters) TypeProxy<?>subTypes()Returns the child subtypes of this type.Methods inherited from class org.glassfish.hk2.classmodel.reflect.impl.TypeImpl
getDefiningURIs, getMethods, getReferences, wasDefinedInMethods inherited from class org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
getAnnotation, getAnnotations, getName, isApplicationClass, setApplicationClass, shortDesc, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.glassfish.hk2.classmodel.reflect.AnnotatedElement
getAnnotation, getAnnotations, getName, shortDescMethods inherited from interface org.glassfish.hk2.classmodel.reflect.Type
getDefiningURIs, getMethods, getReferences, wasDefinedIn
-
Field Details
-
parent
-
-
Constructor Details
-
ExtensibleTypeImpl
-
-
Method Details
-
getFormalTypeParameters
Description copied from interface:ExtensibleTypeRepresents the raw generic type and bounded parameterized type.- Specified by:
getFormalTypeParametersin interfaceExtensibleType<T extends ExtensibleType>- Returns:
- the list of generic type parameter declared on the class.
-
setFormalTypeParameters
-
getParent
Description copied from interface:ExtensibleTypeReturn the parent type instance. If there are more than one parent with the same FQCN within the various URI we parsed, we return the one defined within the same URI (if it exists). If there is more than one parsed metadata with the same FQCN and none of them are defined within the same URI as this type, then null is returned.- Specified by:
getParentin interfaceExtensibleType<T extends ExtensibleType>- Returns:
- the parent type instance or null
-
isInstanceOf
Description copied from interface:ExtensibleTypeWhether the type is an instance of the specified parent type or not.- Specified by:
isInstanceOfin interfaceExtensibleType<T extends ExtensibleType>- Returns:
- true if the type is an instance of the given parent type.
-
getSimpleName
Description copied from interface:ExtensibleTypeReturns the unqualified name of the underlying type.- Specified by:
getSimpleNamein interfaceExtensibleType<T extends ExtensibleType>- Returns:
- the simple name of class
-
setParent
-
getInterfaces
Description copied from interface:ExtensibleTypeReturns an unmodifiable list of interfaces implemented or extended by this type.- Specified by:
getInterfacesin interfaceExtensibleType<T extends ExtensibleType>- Returns:
- collection of implemented or extended interfaces
-
getParameterizedInterfaces
- Specified by:
getParameterizedInterfacesin interfaceExtensibleType<T extends ExtensibleType>- Returns:
- the list of parameterized type of superclass and implemented interface.
-
getParameterizedInterface
- Specified by:
getParameterizedInterfacein interfaceExtensibleType<T extends ExtensibleType>- Parameters:
type- the extensible type- Returns:
- the parameterized type of the respective extensible type
-
subTypes
Description copied from interface:ExtensibleTypeReturns the child subtypes of this type. A child subtype is a type which parent is this type.- Specified by:
subTypesin interfaceExtensibleType<T extends ExtensibleType>- Returns:
- the immediate subtypes
-
allSubTypes
Description copied from interface:ExtensibleTypeReturns all the children subtypes (including grand children) of this type.- Specified by:
allSubTypesin interfaceExtensibleType<T extends ExtensibleType>- Returns:
- all the children
-
getStaticFields
Description copied from interface:ExtensibleTypeReturns an unmodifiable list of static fields defined by this type- Specified by:
getStaticFieldsin interfaceExtensibleType<T extends ExtensibleType>
-
print
prints a meaningful string
-