java.lang.Object
org.glassfish.hk2.classmodel.reflect.impl.TypesCtr
All Implemented Interfaces:
Types

public class TypesCtr extends Object implements Types
contains all the parsed types references.
  • Field Details

  • Constructor Details

    • TypesCtr

      public TypesCtr()
  • Method Details

    • getBy

      public Type getBy(String name)
      Description copied from interface: Types
      Returns a Type instance given a name
      Specified by:
      getBy in interface Types
      Parameters:
      name - the requested type name
      Returns:
      a type instance
    • getBy

      public <T extends Type> T getBy(Class<T> type, String name)
      Description copied from interface: Types
      Returns a Model instance given a name
      Specified by:
      getBy in interface Types
      Parameters:
      type - type of the requested model (see ExtensibleType derivatives)
      name - the requested type name
      Returns:
      the type instance or null if not found
    • getHolder

      public TypeProxy<Type> getHolder(String name)
    • getHolder

      public <T extends Type> TypeProxy<Type> getHolder(String name, Class<T> type)
    • onNotVisitedEntries

      public void onNotVisitedEntries(TypesCtr.ProxyTask proxyTask)
      Runs a task on each non visited types parsing discovered.
      Parameters:
      proxyTask - the task to run on each non visited type.
    • clearNonVisitedEntries

      public void clearNonVisitedEntries()
    • getAllTypes

      public Collection<Type> getAllTypes()
      Description copied from interface: Types
      Returns a unmodifiable list of collected types obtained during the parsing activity
      Specified by:
      getAllTypes in interface Types
      Returns:
      list of types