Top Description Fields Constructors Methods
net.bytebuddy.implementation.bytecode.member

public Class HandleInvocation

extends AbstractBase
Class Inheritance
Annotations
@Enhance
Imports
net.bytebuddy.build.HashCodeAndEqualsPlugin, net.bytebuddy.implementation.Implementation, net.bytebuddy.implementation.bytecode.StackManipulation, net.bytebuddy.utility.JavaConstant, net.bytebuddy.jar.asm.MethodVisitor, .Opcodes

An exact invocation of a method handle with a polymorphic signature.

Field Summary

Modifier and TypeField and Description
private static final String
INVOKE_EXACT

The name of the invokeExact method.

private static final String
METHOD_HANDLE_NAME

The name of the java.lang.invoke.MethodHandle type.

private final JavaConstant.MethodType
methodType

The method type of the invoked handle.

Constructor Summary

AccessConstructor and Description
public
HandleInvocation(JavaConstant.MethodType
The method type of the invoked handle.
methodType
)

Creates a public invocation of a method handle.

Method Summary

Modifier and TypeMethod and Description
public StackManipulation.Size
apply(MethodVisitor
The method visitor used to write the method implementation to.
methodVisitor
,
Implementation.Context
The context of the current implementation.
implementationContext
)

Implements net.bytebuddy.implementation.bytecode.StackManipulation.apply.

Applies the stack manipulation that is described by this instance.
Inherited from net.bytebuddy.implementation.bytecode.StackManipulation.AbstractBase:
isValid

Field Detail

INVOKE_EXACTback to summary
private static final String INVOKE_EXACT

The name of the invokeExact method.

METHOD_HANDLE_NAMEback to summary
private static final String METHOD_HANDLE_NAME

The name of the java.lang.invoke.MethodHandle type.

methodTypeback to summary
private final JavaConstant.MethodType methodType

The method type of the invoked handle.

Constructor Detail

HandleInvocationback to summary
public HandleInvocation(JavaConstant.MethodType methodType)

Creates a public invocation of a method handle.

Parameters
methodType:JavaConstant.MethodType

The method type of the invoked handle.

Method Detail

applyback to summary
public StackManipulation.Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext)

Implements net.bytebuddy.implementation.bytecode.StackManipulation.apply.

Doc from net.bytebuddy.implementation.bytecode.StackManipulation.apply.

Applies the stack manipulation that is described by this instance.

Parameters
methodVisitor:MethodVisitor

The method visitor used to write the method implementation to.

implementationContext:Implementation.Context

The context of the current implementation.

Returns:StackManipulation.Size

The changes to the size of the operand stack that are implied by this stack manipulation.