Interface MemberSubstitution.Substitution.Resolver

    • Method Detail

      • isResolved

        boolean isResolved()
        Checks if this resolver was actually resolved, i.e. if a member should be substituted at all.
        Returns:
        true if a found member should be substituted.
      • apply

        StackManipulation apply​(TypeDescription instrumentedType,
                                ByteCodeElement target,
                                TypeList.Generic arguments,
                                TypeDescription.Generic result)
        Applies this resolver. This is only legal for resolved resolvers.
        Parameters:
        instrumentedType - The instrumented type.
        target - The substituted byte code element.
        arguments - The factual arguments to the byte code element.
        result - The expected result type or void if no result is expected.
        Returns:
        A stack manipulation that applies the resolved byte code representing the substitution.