public enum MethodInvocation extends Enum<MethodInvocation>
Modifier and Type | Class 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.
|
static class |
MethodInvocation.HandleType
The type of method handle invocation.
|
protected static class |
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.
|
static interface |
MethodInvocation.WithImplicitInvocationTargetType
Represents a method invocation where the invocation type (static, virtual, special, interface) is derived
from the given method's description.
|
Enum Constant and Description |
---|
INTERFACE
An interface-typed virtual method invocation.
|
INTERFACE_PRIVATE
A private method call that is potentially virtual on an interface type.
|
SPECIAL
A specialized pseudo-virtual method invocation for a non-constructor.
|
SPECIAL_CONSTRUCTOR
A specialized pseudo-virtual method invocation for a constructor.
|
STATIC
A static method invocation.
|
VIRTUAL
A virtual method invocation.
|
VIRTUAL_PRIVATE
A private method call that is potentially virtual.
|
Modifier and Type | Method and Description |
---|---|
static MethodInvocation.WithImplicitInvocationTargetType |
invoke(MethodDescription.InDefinedShape methodDescription)
Creates a method invocation with an implicitly determined invocation type.
|
static MethodInvocation.WithImplicitInvocationTargetType |
invoke(MethodDescription methodDescription)
Creates a method invocation with an implicitly determined invocation type.
|
static MethodInvocation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MethodInvocation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MethodInvocation VIRTUAL
public static final MethodInvocation INTERFACE
public static final MethodInvocation STATIC
public static final MethodInvocation SPECIAL
public static final MethodInvocation SPECIAL_CONSTRUCTOR
public static final MethodInvocation VIRTUAL_PRIVATE
public static final MethodInvocation INTERFACE_PRIVATE
public static MethodInvocation[] values()
for (MethodInvocation c : MethodInvocation.values()) System.out.println(c);
public static MethodInvocation valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static MethodInvocation.WithImplicitInvocationTargetType invoke(MethodDescription.InDefinedShape methodDescription)
methodDescription
- The method to be invoked.public static MethodInvocation.WithImplicitInvocationTargetType invoke(MethodDescription methodDescription)
methodDescription
- The method to be invoked.Copyright © 2014–2018. All rights reserved.