Package revxrsal.commands.core.reflect
Interface MethodCallerFactory
public interface MethodCallerFactory
Factory for creating
MethodCaller
s for methods.-
Method Summary
Modifier and TypeMethodDescription@NotNull MethodCaller
Creates a newMethodCaller
for the specified method.static MethodCallerFactory
Returns the defaultMethodCallerFactory
, which uses the method handles API to create method callers.
-
Method Details
-
createFor
Creates a newMethodCaller
for the specified method.- Parameters:
method
- Method to create for- Returns:
- The reflective method caller
- Throws:
Throwable
- Any exceptions during creation
-
defaultFactory
Returns the defaultMethodCallerFactory
, which uses the method handles API to create method callers.- Returns:
- The default method caller factory.
-