org.glassfish.hk2.classmodel.reflect
Interface Types

All Known Implementing Classes:
TypesCtr

public interface Types

Represents the result of a parsing activity.

Author:
Jerome Dochez

Method Summary
 Collection<Type> getAllTypes()
          Returns a unmodifiable list of collected types obtained during the parsing activity
<T extends Type>
T
getBy(Class<T> type, String name)
          Returns a Model instance given a name
 Type getBy(String name)
          Returns a Type instance given a name
 

Method Detail

getAllTypes

Collection<Type> getAllTypes()
Returns a unmodifiable list of collected types obtained during the parsing activity

Returns:
list of types

getBy

Type getBy(String name)
Returns a Type instance given a name

Parameters:
name - the requested type name
Returns:
a type instance

getBy

<T extends Type> T getBy(Class<T> type,
                         String name)
Returns a Model instance given a name

Parameters:
type - type of the requested model (see ExtensibleType derivatives)
name - the requested type name
Returns:
the type instance or null if not found


Copyright © 2013 Oracle Corporation. All Rights Reserved.