Interface TypePool

All Known Implementing Classes:
TypePool.AbstractBase, TypePool.AbstractBase.Hierarchical, TypePool.ClassLoading, TypePool.Default, TypePool.Default.WithLazyResolution, TypePool.Empty, TypePool.Explicit, TypePool.LazyFacade

public interface TypePool
A type pool allows the retrieval of TypeDescription by its name.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    A base implementation of a TypePool that is managing a cache provider and that handles the description of array and primitive types.
    static interface 
    A cache provider for a TypePool.
    static class 
    A type pool that attempts to load a class.
    static class 
    A default implementation of a TypePool that models binary data in the Java byte code format into a TypeDescription.
    static enum 
    An empty type pool that cannot describe any type.
    static class 
    A type pool that supplies explicitly known type descriptions.
    static class 
    A lazy facade of a type pool that delegates any lookups to another type pool only if another value than the type's name is looked up.
    static interface 
    A resolution of a TypePool which was queried for a description.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clears this type pool's cache.
    Locates and describes the given type by its name.
  • Method Details

    • describe

      TypePool.Resolution describe(String name)
      Locates and describes the given type by its name.
      Parameters:
      name - The name of the type to describe. The name is to be written as when calling Object.toString() on a loaded Class.
      Returns:
      A resolution of the type to describe. If the type to be described was found, the returned TypePool.Resolution represents this type. Otherwise, an illegal resolution is returned.
    • clear

      void clear()
      Clears this type pool's cache.