Top Description Methods
org.glassfish.hk2.classmodel.reflect

public Interface ExtensibleType<T extends ExtensibleType>

extends Type
Known Direct Subinterfaces
org.glassfish.hk2.classmodel.reflect.InterfaceModel, org.glassfish.hk2.classmodel.reflect.ClassModel, org.glassfish.hk2.classmodel.reflect.EnumType
Known Direct Implementers
org.glassfish.hk2.classmodel.reflect.impl.ExtensibleTypeImpl
Type Parameters
<T>
parent type which is always the same as the child type (classes extends classes, interfaces extends interfaces...)
Imports
java.util.Collection, .Map

An extensible type is a type that can be subclassed like an interface or a class.
Author
Jerome Dochez

Method Summary

Modifier and TypeMethod and Description
public Collection<T>

Returns:

all the children
allSubTypes
()

Returns all the children subtypes (including grand children) of this type.

public Map<String, ParameterizedInterfaceModel>

Returns:

the list of generic type parameter declared on the class.
getFormalTypeParameters
()

Represents the raw generic type and bounded parameterized type.

public Collection<InterfaceModel>

Returns:

collection of implemented or extended interfaces
getInterfaces
()

Returns an unmodifiable list of interfaces implemented or extended by this type.

public ParameterizedInterfaceModel
getParameterizedInterface(ExtensibleType<T extends ExtensibleType>
the extensible type
type
)

Returns: the parameterized type of the respective extensible type

public Collection<ParameterizedInterfaceModel>
getParameterizedInterfaces()

Returns: the list of parameterized type of superclass and implemented interface.

public T

Returns:

the parent type instance or null
getParent
()

Return the parent type instance.

public String

Returns:

the simple name of class
getSimpleName
()

Returns the unqualified name of the underlying type.

public Collection<FieldModel>

Returns:

collection of defined static fields
getStaticFields
()

Returns an unmodifiable list of static fields defined by this type

public boolean

Returns:

true if the type is an instance of the given parent type.
isInstanceOf
(String className)

Whether the type is an instance of the specified parent type or not.

public Collection<T>

Returns:

the immediate subtypes
subTypes
()

Returns the child subtypes of this type.

Inherited from org.glassfish.hk2.classmodel.reflect.Type:
getDefiningURIsgetMethodsgetReferenceswasDefinedIn

Method Detail

allSubTypesback to summary
public Collection<T> allSubTypes()

Returns all the children subtypes (including grand children) of this type.

Returns:Collection<T>

all the children

getFormalTypeParametersback to summary
public Map<String, ParameterizedInterfaceModel> getFormalTypeParameters()

Represents the raw generic type and bounded parameterized type.

Returns:Map<String, ParameterizedInterfaceModel>

the list of generic type parameter declared on the class.

getInterfacesback to summary
public Collection<InterfaceModel> getInterfaces()

Returns an unmodifiable list of interfaces implemented or extended by this type.

Returns:Collection<InterfaceModel>

collection of implemented or extended interfaces

getParameterizedInterfaceback to summary
public ParameterizedInterfaceModel getParameterizedInterface(ExtensibleType<T extends ExtensibleType> type)
Parameters
type:ExtensibleType<T extends ExtensibleType>

the extensible type

Returns:ParameterizedInterfaceModel

the parameterized type of the respective extensible type

getParameterizedInterfacesback to summary
public Collection<ParameterizedInterfaceModel> getParameterizedInterfaces()
Returns:Collection<ParameterizedInterfaceModel>

the list of parameterized type of superclass and implemented interface.

getParentback to summary
public T getParent()

Return 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.

Returns:T

the parent type instance or null

getSimpleNameback to summary
public String getSimpleName()

Returns the unqualified name of the underlying type.

Returns:String

the simple name of class

getStaticFieldsback to summary
public Collection<FieldModel> getStaticFields()

Returns an unmodifiable list of static fields defined by this type

Returns:Collection<FieldModel>

collection of defined static fields

isInstanceOfback to summary
public boolean isInstanceOf(String className)

Whether the type is an instance of the specified parent type or not.

Returns:boolean

true if the type is an instance of the given parent type.

subTypesback to summary
public Collection<T> subTypes()

Returns the child subtypes of this type. A child subtype is a type which parent is this type.

Returns:Collection<T>

the immediate subtypes