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

public Interface Types

Known Direct Implementers
org.glassfish.hk2.classmodel.reflect.impl.TypesCtr
Imports
org.glassfish.hk2.classmodel.reflect.Type, java.util.Collection

Represents the result of a parsing activity.
Author
Jerome Dochez

Method Summary

Modifier and TypeMethod and Description
public Collection<Type>

Returns:

list of types
getAllTypes
()

Returns a unmodifiable list of collected types obtained during the parsing activity

public Type

Returns:

a type instance
getBy
(String
the requested type name
name
)

Returns a Type instance given a name

public <T extends Type> T

Returns:

the type instance or null if not found
getBy
(Class<T>
type of the requested model (see ExtensibleType derivatives)
type
,
String
the requested type name
name
)

Returns a Model instance given a name

Method Detail

getAllTypesback to summary
public Collection<Type> getAllTypes()

Returns a unmodifiable list of collected types obtained during the parsing activity

Returns:Collection<Type>

list of types

getByback to summary
public Type getBy(String name)

Returns a Type instance given a name

Parameters
name:String

the requested type name

Returns:Type

a type instance

getByback to summary
public <T extends Type> T getBy(Class<T> type, String name)

Returns a Model instance given a name

Parameters
type:Class<T>

type of the requested model (see ExtensibleType derivatives)

name:String

the requested type name

Returns:T

the type instance or null if not found