java.lang.Object
org.klojang.invoke.GetterFactory
Assembles, caches, and supplies
getters for classes.- Author:
- Ayco Holleman
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GetterFactoryThe one and only instance ofGetterFactory. -
Method Summary
-
Field Details
-
INSTANCE
The one and only instance ofGetterFactory.
-
-
Method Details
-
getGetters
Returns the publicgettersfor the specified class. The returnedMapmaps property names toGetterinstances.- Parameters:
clazz- the class for which to retrieve the public gettersstrict- iffalse, all non-static methods with a zero-length parameter list and a non-voidreturn type, exceptgetClass(),hashCode()andtoString(), will be regarded as getters. Otherwise JavaBeans naming conventions will be applied regarding which methods qualify as getters, with the exception that methods returning aBooleanare allowed to have a name starting with "is". Forrecordtypes, getters are collected as though withstrictequal tofalse.- Returns:
- the public getters of the specified class
- Throws:
IllegalAssignmentException- if the does not have any public getters
-