protected static class RebaseImplementationTarget.RebasedMethodInvocation extends Implementation.SpecialMethodInvocation.AbstractBase
Implementation.SpecialMethodInvocation
which invokes a rebased method
as given by a MethodRebaseResolver
.Implementation.SpecialMethodInvocation.AbstractBase, Implementation.SpecialMethodInvocation.Illegal, Implementation.SpecialMethodInvocation.Simple
StackManipulation.Compound, StackManipulation.Size, StackManipulation.Trivial
Modifier | Constructor and Description |
---|---|
protected |
RebasedMethodInvocation(MethodDescription methodDescription,
TypeDescription instrumentedType,
StackManipulation stackManipulation,
TypeList prependedParameters)
Creates a new rebased method invocation.
|
Modifier and Type | Method and Description |
---|---|
StackManipulation.Size |
apply(MethodVisitor methodVisitor,
Implementation.Context implementationContext)
Applies the stack manipulation that is described by this instance.
|
MethodDescription |
getMethodDescription()
Returns the method that represents this special method invocation.
|
TypeDescription |
getTypeDescription()
Returns the target type the represented method is invoked on.
|
protected static Implementation.SpecialMethodInvocation |
of(MethodDescription resolvedMethod,
TypeDescription instrumentedType,
TypeList prependedParameters)
Creates a special method invocation for the given method.
|
Implementation.SpecialMethodInvocation |
withCheckedCompatibilityTo(MethodDescription.TypeToken token)
Checks that this special method invocation is compatible with the supplied type representation.
|
equals, hashCode
isValid
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isValid
protected RebasedMethodInvocation(MethodDescription methodDescription, TypeDescription instrumentedType, StackManipulation stackManipulation, TypeList prependedParameters)
methodDescription
- The method to invoke via a special method invocation.instrumentedType
- The instrumented type on which the method should be invoked on.stackManipulation
- The stack manipulation to execute in order to invoke the rebased method.prependedParameters
- Any additional arguments that are to be provided to the rebased method.protected static Implementation.SpecialMethodInvocation of(MethodDescription resolvedMethod, TypeDescription instrumentedType, TypeList prependedParameters)
resolvedMethod
- The rebased method to be invoked.instrumentedType
- The instrumented type on which the method is to be invoked if it is non-static.prependedParameters
- Any additional arguments that are to be provided to the rebased method.public MethodDescription getMethodDescription()
Implementation.Target
.public TypeDescription getTypeDescription()
public StackManipulation.Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext)
methodVisitor
- The method visitor used to write the method implementation to.implementationContext
- The context of the current implementation.public Implementation.SpecialMethodInvocation withCheckedCompatibilityTo(MethodDescription.TypeToken token)
token
- The type token to check against.Copyright © 2014–2023. All rights reserved.