Package velo.ladealpha.fields.services
Class MethodInvocationUtils
java.lang.Object
velo.ladealpha.fields.services.MethodInvocationUtils
Utility methods not directly related to the RuntimeCompiler.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectinvokeStaticMethod(Class<?> c, String methodName, Object... args) Utility method to invoke the first static method in the given class that can accept the given parameters. 
- 
Constructor Details
- 
MethodInvocationUtils
public MethodInvocationUtils() 
 - 
 - 
Method Details
- 
invokeStaticMethod
Utility method to invoke the first static method in the given class that can accept the given parameters.- Parameters:
 c- The classmethodName- The method nameargs- The arguments for the method call- Returns:
 - The return value of the method call
 - Throws:
 RuntimeException- If either the class or a matching method could not be found
 
 -