public enum MethodInvocation extends Enum<MethodInvocation>
Modifier and Type | Class and Description |
---|---|
static interface |
MethodInvocation.WithImplicitInvocationTargetType
Represents a method invocation where the invocation type (static, virtual, special, interface) is derived
from the
|
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 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. All rights reserved.