Package com.sdicons.json.helper
Class HelperRepository.HelperTreeNode<T extends Helper>
java.lang.Object
com.sdicons.json.helper.HelperRepository.HelperTreeNode<T>
- Enclosing class:
HelperRepository<T extends Helper>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) T
findHelper
(Class aClass) Core finder algorithmboolean
prettyPrint
(String aIndent)
-
Field Details
-
helper
-
children
-
-
Constructor Details
-
HelperTreeNode
-
-
Method Details
-
getHelper
-
insertNode
-
findHelper
Core finder algorithm- Parameters:
aClass
- The class for which we want to find a helper.- Returns:
- A Helper or null if no applicable helper could be found. We first try to find an exact match, and if it cannot be done, we try to find a mapper for the closest parent class.
-
prettyPrint
-