Class ClassFinder
java.lang.Object
nl.pim16aap2.util.reflection.ReflectionFinder<Class<?>, ClassFinder>
nl.pim16aap2.util.reflection.ClassFinder
Represents an implementation of
ReflectionFinder for Class objects.-
Nested Class Summary
Nested classes/interfaces inherited from class ReflectionFinder
ReflectionFinder.ReflectionFinderWithParameters<T,U> -
Field Summary
Fields inherited from class ReflectionFinder
modifiers -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ReflectionFinder
addModifiers, withModifiers
-
Constructor Details
-
ClassFinder
public ClassFinder()
-
-
Method Details
-
withNames
Configures the set of names to look up.When more than 1 name is provided, the first class that can be found is returned.
- Parameters:
names- The list of names the class might have.- Returns:
- The current
ClassFinderinstance.
-
get
Description copied from class:ReflectionFinderRetrieves the target reflection object(s) using the current configuration.This may throw an exception if the lookup hasn't been configured yet.
- Specified by:
getin classReflectionFinder<Class<?>, ClassFinder>- Returns:
- The target reflection object(s) being searched for.
-
getNullable
Description copied from class:ReflectionFinderRetrieves the target reflection object(s) using the current configuration.This may throw an exception if the lookup hasn't been configured yet.
- Specified by:
getNullablein classReflectionFinder<Class<?>, ClassFinder>- Returns:
- The target reflection object(s) being searched for or null if no object(s) could be found.
-