public enum MethodFilter extends Enum<MethodFilter>
| Enum Constant and Description |
|---|
ONLY_GETTERS
Rejects any method that returns
void or has a parameter list. |
ONLY_SETTERS
Rejects any method that doesn't accept a single parameter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
reject(Method method)
Tests whether a method is not a getter or setter and should be rejected.
|
MethodDescriptor |
toDescriptor(String prefix,
Method method)
Creates a descriptor for a getter or setter method
|
static MethodFilter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MethodFilter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MethodFilter ONLY_GETTERS
void or has a parameter list.public static final MethodFilter ONLY_SETTERS
public static MethodFilter[] values()
for (MethodFilter c : MethodFilter.values()) System.out.println(c);
public static MethodFilter 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 boolean reject(Method method)
method - the method to be testedtrue if the given method should be rejected, false otherwisepublic MethodDescriptor toDescriptor(String prefix, Method method)
prefix - a dot separated string denoting a path of nested object namesmethod - a actual class method to be associated with this prefixCopyright © 2019 Univocity Software Pty Ltd. All rights reserved.