public enum PropertyMethodEnum extends Enum<PropertyMethodEnum>
Enum
type.Modifier and Type | Method and Description |
---|---|
Class<?>[] |
getParameterTypes()
Method to get the prototype parameter types (
Class es) for
this method type. |
static String |
getPropertyName(Method method)
Static method to get a property name from a
Method name. |
String |
getPropertyName(String method)
Method to get the property name from the argument method name.
|
Class<?> |
getReturnType()
Method to get the prototype return type
Class for this method
type. |
static PropertyMethodEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PropertyMethodEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PropertyMethodEnum GET
public static final PropertyMethodEnum IS
public static final PropertyMethodEnum SET
public static PropertyMethodEnum[] values()
for (PropertyMethodEnum c : PropertyMethodEnum.values()) System.out.println(c);
public static PropertyMethodEnum 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 Class<?> getReturnType()
Class
for this method
type.Class
.public Class<?>[] getParameterTypes()
Class
es) for
this method type.Class
es).public String getPropertyName(String method)
method
- The candidate getter/setter method name.null
if the argument is null
or doesn't
match.public static String getPropertyName(Method method)
Method
name.
(This method does not check return type or parameter types.)method
- The Method
.null
if the argument is null
or the name
doesn't match.Copyright © 2015–2020 Allen D. Ball. All rights reserved.