Class TypePool.Explicit

    • Field Detail

      • types

        private final java.util.Map<java.lang.String,​TypeDescription> types
        A mapping from type names to type descriptions of that name.
    • Constructor Detail

      • Explicit

        public Explicit​(java.util.Map<java.lang.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,
                        java.util.Map<java.lang.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 Detail

      • wrap

        public static TypePool wrap​(TypeDescription instrumentedType,
                                    java.util.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.