Class TypePool.Explicit

All Implemented Interfaces:
TypePool
Enclosing interface:
TypePool

@Enhance public static class TypePool.Explicit extends TypePool.AbstractBase.Hierarchical
A type pool that supplies explicitly known type descriptions.
  • Field Details

  • Constructor Details

    • Explicit

      public Explicit(Map<String,TypeDescription> types)
      Creates a new explicit type pool without a parent.
      Parameters:
      types - A mapping from type names to type descriptions of that name.
    • Explicit

      public Explicit(TypePool parent, Map<String,TypeDescription> types)
      Creates a new explicit type pool.
      Parameters:
      parent - The parent type pool.
      types - A mapping from type names to type descriptions of that name.
  • Method Details

    • wrap

      public static TypePool wrap(TypeDescription instrumentedType, List<? extends DynamicType> auxiliaryTypes, TypePool typePool)
      Wraps another type pool for an instrumented type and its auxiliary types.
      Parameters:
      instrumentedType - The instrumented type.
      auxiliaryTypes - The auxiliary types.
      typePool - The type pool to wrap.
      Returns:
      A type pool that also represents the instrumented type and its auxiliary types.
    • doDescribe

      protected TypePool.Resolution doDescribe(String name)
      Description copied from class: TypePool.AbstractBase
      Determines a resolution to a non-primitive, non-array type.
      Specified by:
      doDescribe in class TypePool.AbstractBase
      Parameters:
      name - The name of the type to describe.
      Returns:
      A resolution to the type to describe.