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 | Field and Description |
|---|---|
| private final Class | |
| private final List | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| private | GetMethodFromGetterNameCandidates(Class<?> clazz, List<String> getterNameCandidates, boolean lookForMethodsInHierarchy)
|
| Modifier and Type | Method and Description |
|---|---|
| public static GetMethodFromGetterNameCandidates | |
| public static GetMethodFromGetterNameCandidates | |
| public Method |
| clazz | back to summary |
|---|---|
| private final Class<?> clazz | |
| getterNameCandidates | back to summary |
|---|---|
| private final List<String> getterNameCandidates | |
| lookForMethodsInHierarchy | back to summary |
|---|---|
| private final boolean lookForMethodsInHierarchy | |
| GetMethodFromGetterNameCandidates | back to summary |
|---|---|
| private GetMethodFromGetterNameCandidates(Class<?> clazz, List<String> getterNameCandidates, boolean lookForMethodsInHierarchy) | |
| action | back to summary |
|---|---|
| public static GetMethodFromGetterNameCandidates action(Class<?> clazz, List<String> getterNameCandidates) | |
| action | back to summary |
|---|---|
| public static GetMethodFromGetterNameCandidates action(Class<?> clazz, List<String> possibleMethodNames, boolean lookForMethodsInHierarchy) | |
| run | back to summary |
|---|---|
| public Method run() Implements java. Doc from java. Performs the computation. This method will be called by
| |