public enum MethodKind extends Enum<MethodKind>
Enum Constant and Description |
---|
FUTURE
A method has a future kind when it has at least one parameter and its last parameter
is a parameterized handler type having a async_result parameterized type argument.
|
HANDLER
A method has an handler kind when it has at least one parameter and its last parameter
is a parameterized handler type having a legal type argument that is not an async_result class
kind.
|
OTHER |
Modifier and Type | Method and Description |
---|---|
static MethodKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MethodKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static Map<String,MethodKind> |
vars()
Useful for testing the method kind, allows to do method.kind == METHOD_HANDLER instead of method.kind.name() == "HANDLER"
|
public static final MethodKind HANDLER
public static final MethodKind FUTURE
public static final MethodKind OTHER
public static MethodKind[] values()
for (MethodKind c : MethodKind.values()) System.out.println(c);
public static MethodKind 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 Map<String,MethodKind> vars()
Copyright © 2021 Eclipse. All rights reserved.