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

public final Enum MethodInvocation

extends Enum<MethodInvocation>
Class Inheritance
Imports
net.bytebuddy.ClassFileVersion, net.bytebuddy.build.HashCodeAndEqualsPlugin, net.bytebuddy.description.method.MethodDescription, net.bytebuddy.description.type.TypeDescription, .TypeList, net.bytebuddy.implementation.Implementation, net.bytebuddy.implementation.bytecode.StackManipulation, .StackSize, net.bytebuddy.implementation.bytecode.assign.TypeCasting, net.bytebuddy.implementation.bytecode.constant.JavaConstantValue, net.bytebuddy.utility.JavaConstant, .JavaType, net.bytebuddy.jar.asm.Handle, .MethodVisitor, .Opcodes, java.util.List

A builder for a method invocation.

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected class
MethodInvocation.DynamicInvocation

Performs a dynamic method invocation of the given method.

protected static class
MethodInvocation.HandleInvocation

Performs a method invocation on a method handle with a polymorphic type signature.

public static enum
MethodInvocation.HandleType

The type of method handle invocation.

protected static enum
MethodInvocation.IllegalInvocation

An illegal implicit method invocation.

protected class
MethodInvocation.Invocation

An implementation of a method invoking stack manipulation.

protected static class
MethodInvocation.OfGenericMethod

A method invocation of a generically resolved method.

public static interface
MethodInvocation.WithImplicitInvocationTargetType

Represents a method invocation where the invocation type (static, virtual, special, interface) is derived from the given method's description.

Field Summary

Modifier and TypeField and Description
private final int
handle

The handle being used for a dynamic method invocation.

public static final MethodInvocation
INTERFACE

An interface-typed virtual method invocation.

public static final MethodInvocation
INTERFACE_PRIVATE

A private method call that is potentially virtual on an interface type.

private final int
legacyHandle

The handle being used for a dynamic method invocation before Java 11.

private final int
legacyOpcode

The opcode for invoking a method before Java 11.

private final int
opcode

The opcode for invoking a method.

public static final MethodInvocation
SPECIAL

A specialized pseudo-virtual method invocation for a non-constructor.

public static final MethodInvocation
SPECIAL_CONSTRUCTOR

A specialized pseudo-virtual method invocation for a constructor.

public static final MethodInvocation
STATIC

A static method invocation.

public static final MethodInvocation
VIRTUAL

A virtual method invocation.

public static final MethodInvocation
VIRTUAL_PRIVATE

A private method call that is potentially virtual.

Constructor Summary

AccessConstructor and Description
private
MethodInvocation(int
The opcode for invoking a method.
opcode
,
int
The handle being used for a dynamic method invocation.
handle
,
int
The opcode for invoking a method before Java 11.
legacyOpcode
,
int
The handle being used for a dynamic method invocation before Java 11.
legacyHandle
)

Creates a new type of method invocation.

Method Summary

Modifier and TypeMethod and Description
public static MethodInvocation.WithImplicitInvocationTargetType

Returns:

A stack manipulation with implicitly determined invocation type.
invoke
(MethodDescription.InDefinedShape
The method to be invoked.
methodDescription
)

Creates a method invocation with an implicitly determined invocation type.

public static MethodInvocation.WithImplicitInvocationTargetType

Returns:

A stack manipulation with implicitly determined invocation type.
invoke
(MethodDescription
The method to be invoked.
methodDescription
)

Creates a method invocation with an implicitly determined invocation type.

public static StackManipulation

Returns:

A method invocation for resolving the current lookup.
lookup
()

Returns a method invocation of java.lang.invoke.MethodHandles#lookup().

public static MethodInvocation
public static MethodInvocation[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf