Interface Implementation.SpecialMethodInvocation

All Superinterfaces:
StackManipulation
All Known Implementing Classes:
Implementation.SpecialMethodInvocation.AbstractBase, Implementation.SpecialMethodInvocation.Illegal, Implementation.SpecialMethodInvocation.Simple, RebaseImplementationTarget.RebasedMethodInvocation
Enclosing interface:
Implementation

public static interface Implementation.SpecialMethodInvocation extends StackManipulation
Represents an type-specific method invocation on the current instrumented type which is not legal from outside the type such as a super method or default method invocation. Legal instances of special method invocations must be equal to one another if they represent the same invocation target.
  • Method Details

    • getMethodDescription

      MethodDescription getMethodDescription()
      Returns the method that represents this special method invocation. This method can be different even for equal special method invocations, dependant on the method that was used to request such an invocation by the means of a Implementation.Target.
      Returns:
      The method description that describes this instances invocation target.
    • getTypeDescription

      TypeDescription getTypeDescription()
      Returns the target type the represented method is invoked on.
      Returns:
      The type the represented method is invoked on.
    • withCheckedCompatibilityTo

      Checks that this special method invocation is compatible with the supplied type representation.
      Parameters:
      token - The type token to check against.
      Returns:
      This special method invocation or an illegal invocation if the method invocation is not applicable.