Interface MemberSubstitution.Substitution

All Known Implementing Classes:
MemberSubstitution.Substitution.Chain, MemberSubstitution.Substitution.ForFieldAccess, MemberSubstitution.Substitution.ForMethodInvocation, MemberSubstitution.Substitution.Stubbing
Enclosing class:
MemberSubstitution

public static interface MemberSubstitution.Substitution
A substitution replaces or enhances an interaction with a field or method within an instrumented method.
  • Method Details

    • resolve

      StackManipulation resolve(TypeDescription targetType, ByteCodeElement target, TypeList.Generic parameters, TypeDescription.Generic result, int freeOffset)
      Resolves this substitution into a stack manipulation.
      Parameters:
      targetType - The target type on which a member is accessed.
      target - The target field, method or constructor that is substituted,
      parameters - All parameters that serve as input to this access.
      result - The result that is expected from the interaction or void if no result is expected.
      freeOffset - The first free offset of the local variable array that can be used for storing values.
      Returns:
      A stack manipulation that represents the access.