public enum JBeanMethod extends Enum<JBeanMethod>
JMethod
and against bean-style
accessor semantics.BeanMethod
Enum Constant and Description |
---|
CALL |
GET |
SET |
SET_BUILDER |
Modifier and Type | Method and Description |
---|---|
String |
inferName(com.google.gwt.core.ext.typeinfo.JMethod method)
Infer the name of a property from the method.
|
abstract boolean |
matches(com.google.gwt.core.ext.typeinfo.JMethod method)
Returns
true if the BeanLikeMethod matches the method. |
static JBeanMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JBeanMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static JBeanMethod |
which(com.google.gwt.core.ext.typeinfo.JMethod method)
Determine which Action a method maps to.
|
public static final JBeanMethod GET
public static final JBeanMethod SET
public static final JBeanMethod SET_BUILDER
public static final JBeanMethod CALL
public static JBeanMethod[] values()
for (JBeanMethod c : JBeanMethod.values()) System.out.println(c);
public static JBeanMethod 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 JBeanMethod which(com.google.gwt.core.ext.typeinfo.JMethod method)
public String inferName(com.google.gwt.core.ext.typeinfo.JMethod method)
public abstract boolean matches(com.google.gwt.core.ext.typeinfo.JMethod method)
true
if the BeanLikeMethod matches the method.Copyright © 2016. All rights reserved.