Class MemberSubstitution.TypePoolResolver.ForExplicitPool

    • Field Detail

      • typePool

        private final TypePool typePool
        The type pool to return.
    • Constructor Detail

      • ForExplicitPool

        public ForExplicitPool​(TypePool typePool)
        Creates a resolver for an explicit type pool.
        Parameters:
        typePool - The type pool to return.
    • Method Detail

      • resolve

        public TypePool resolve​(TypeDescription instrumentedType,
                                MethodDescription instrumentedMethod,
                                TypePool typePool)
        Resolves a type pool to use for locating substituted members.
        Specified by:
        resolve in interface MemberSubstitution.TypePoolResolver
        Parameters:
        instrumentedType - The instrumented type.
        instrumentedMethod - The instrumented method.
        typePool - The type pool implicit to the instrumentation.
        Returns:
        The type pool to use.