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.IllegalInvocation
An illegal implicit method invocation.
|
protected class |
MethodInvocation.Invocation
An implementation of a method invoking stack manipulation.
|
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.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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 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 methodDescription)
methodDescription - The method to be invoked.Copyright © 2014–2015. All rights reserved.