Class MemberSubstitution.Replacement.Binding.Resolved

    • Constructor Detail

      • Resolved

        protected Resolved​(TypeDescription instrumentedType,
                           MethodDescription instrumentedMethod,
                           TypeDescription targetType,
                           ByteCodeElement target,
                           MemberSubstitution.Substitution substitution)
        Creates a new resolved binding.
        Parameters:
        instrumentedType - The instrumented type.
        instrumentedMethod - The instrumented method.
        targetType - The type on which a field or method was accessed.
        target - The field or method that was accessed.
        substitution - The substitution to apply.
    • Method Detail

      • make

        public StackManipulation make​(TypeList.Generic parameters,
                                      TypeDescription.Generic result,
                                      int freeOffset)
        Creates a stack manipulation that represents the substitution. This method can only be called for actually bound bindings.
        Specified by:
        make in interface MemberSubstitution.Replacement.Binding
        Parameters:
        parameters - The parameters that are accessible to the substitution target.
        result - The result that is expected from the substitution target or void if none is expected.
        freeOffset - The first offset that can be used for storing local variables.
        Returns:
        A stack manipulation that represents the replacement.