Package nl.pim16aap2.util.reflection
Class MethodFinder.MethodFinderInSource
java.lang.Object
nl.pim16aap2.util.reflection.MethodFinder.MethodFinderInSource
- Enclosing class:
MethodFinder
Represents the second step of the method finder, after the source class has been specified.
-
Method Summary
Modifier and TypeMethodDescriptionCreates a newMethodFinder.MethodFinderBaseto retrieve the method by its name.withReturnType(Class<?> returnType) Creates a newMethodFinder.MethodFinderBaseto retrieve the method by its type.
-
Method Details
-
withName
Creates a newMethodFinder.MethodFinderBaseto retrieve the method by its name.- Parameters:
name- The name of the method to look for.- Returns:
- The new
MethodFinder.MethodFinderBase.
-
withReturnType
@CheckReturnValue @Contract(pure=true) public MethodFinder.MethodFinderBase withReturnType(Class<?> returnType) Creates a newMethodFinder.MethodFinderBaseto retrieve the method by its type.- Parameters:
returnType- The return type of the method to look for.- Returns:
- The new
MethodFinder.MethodFinderBase.
-