protected static class RebaseInstrumentationTarget.RebasedMethodSpecialMethodInvocation extends Object implements Instrumentation.SpecialMethodInvocation
Instrumentation.SpecialMethodInvocation which invokes a rebased method
as given by a MethodRebaseResolver.Instrumentation.SpecialMethodInvocation.Illegal, Instrumentation.SpecialMethodInvocation.SimpleStackManipulation.Compound, StackManipulation.LegalTrivial, StackManipulation.Size| Modifier | Constructor and Description |
|---|---|
protected |
RebasedMethodSpecialMethodInvocation(MethodRebaseResolver.Resolution resolution,
TypeDescription instrumentedType)
Creates a special method invocation for a rebased method.
|
| Modifier and Type | Method and Description |
|---|---|
StackManipulation.Size |
apply(org.objectweb.asm.MethodVisitor methodVisitor,
Instrumentation.Context instrumentationContext)
Applies the stack manipulation that is described by this instance.
|
boolean |
equals(Object other) |
MethodDescription |
getMethodDescription()
Returns the method that represents this special method invocation.
|
TypeDescription |
getTypeDescription()
Returns the target type the represented method is invoked on.
|
int |
hashCode() |
boolean |
isValid()
Determines if this stack manipulation is valid.
|
static Instrumentation.SpecialMethodInvocation |
of(MethodRebaseResolver.Resolution resolution,
TypeDescription instrumentedType)
Creates a special method invocation for a rebased method if such an invocation is possible or otherwise
returns an illegal special method invocation.
|
String |
toString() |
protected RebasedMethodSpecialMethodInvocation(MethodRebaseResolver.Resolution resolution, TypeDescription instrumentedType)
resolution - The resolution of the rebased method.instrumentedType - The instrumented type on which this method is to be invoked.public static Instrumentation.SpecialMethodInvocation of(MethodRebaseResolver.Resolution resolution, TypeDescription instrumentedType)
resolution - The resolution of the rebased method.instrumentedType - The instrumented type on which this method is to be invoked.public MethodDescription getMethodDescription()
Instrumentation.SpecialMethodInvocationInstrumentation.Target.getMethodDescription in interface Instrumentation.SpecialMethodInvocationpublic TypeDescription getTypeDescription()
Instrumentation.SpecialMethodInvocationgetTypeDescription in interface Instrumentation.SpecialMethodInvocationpublic boolean isValid()
StackManipulationisValid in interface StackManipulationfalse, this manipulation cannot be applied and should throw an exception.public StackManipulation.Size apply(org.objectweb.asm.MethodVisitor methodVisitor, Instrumentation.Context instrumentationContext)
StackManipulationapply in interface StackManipulationmethodVisitor - The method visitor used to write the method implementation to.instrumentationContext - The context of the current instrumentation.Copyright © 2014. All rights reserved.