public final class GetMethodFromGetterNameCandidates extends Object implements PrivilegedAction<Method>
null
if it does not exist. This action will
iterate through getter name candidates and return the first found method.
GetMethodFromPropertyName#lookForMethodsInHierarchy
parameter controls if we need to check for methods on
superclasses/implemented interfaces or not, if equals to false
it will use
Class.getDeclaredMethod(String, Class[])
, and Class.getMethod(String, Class[])
otherwise.
Modifier and Type | Method and Description |
---|---|
static GetMethodFromGetterNameCandidates |
action(Class<?> clazz,
Set<String> getterNameCandidates) |
static GetMethodFromGetterNameCandidates |
action(Class<?> clazz,
Set<String> possibleMethodNames,
boolean lookForMethodsInHierarchy) |
Method |
run() |
public static GetMethodFromGetterNameCandidates action(Class<?> clazz, Set<String> getterNameCandidates)
public static GetMethodFromGetterNameCandidates action(Class<?> clazz, Set<String> possibleMethodNames, boolean lookForMethodsInHierarchy)
public Method run()
run
in interface PrivilegedAction<Method>
Copyright © 2007-2021 Red Hat, Inc. All Rights Reserved