public static interface MethodInvocation.WithImplicitInvocationTargetType extends StackManipulation
StackManipulation.Compound, StackManipulation.Illegal, StackManipulation.Size, StackManipulation.Trivial
Modifier and Type | Method and Description |
---|---|
StackManipulation |
dynamic(String methodName,
TypeDescription returnType,
List<? extends TypeDescription> methodType,
List<? extends JavaConstant> arguments)
Invokes the method as a bootstrap method to bind a call site with the given properties.
|
StackManipulation |
onHandle(MethodInvocation.HandleType type)
Invokes the method via a
MethodHandle . |
StackManipulation |
special(TypeDescription invocationTarget)
Transforms this method invocation into a special invocation on the given type.
|
StackManipulation |
virtual(TypeDescription invocationTarget)
Transforms this method invocation into a virtual (or interface) method invocation on the given type.
|
apply, isValid
StackManipulation virtual(TypeDescription invocationTarget)
invocationTarget
- The type on which the method is to be invoked virtually on.StackManipulation special(TypeDescription invocationTarget)
invocationTarget
- The type on which the method is to be invoked specially on.StackManipulation dynamic(String methodName, TypeDescription returnType, List<? extends TypeDescription> methodType, List<? extends JavaConstant> arguments)
methodName
- The name of the method to be bound.returnType
- The return type of the method to be bound.methodType
- The parameter types of the method to be bound.arguments
- The arguments to be passed to the bootstrap method.StackManipulation onHandle(MethodInvocation.HandleType type)
MethodHandle
.type
- The type of invocation.Copyright © 2014–2021. All rights reserved.