Class MethodDescriptor
java.lang.Object
org.ojalgo.concurrent.MethodDescriptor
- All Implemented Interfaces:
Serializable
Description of a (static) method to invoke in a child JVM. Uses type names internally to avoid ClassLoader
mismatches.
In Java, a method is identified for reflective lookup by its name and parameter types only. The return type is not used to resolve a method and cannot disambiguate overloads (two methods cannot differ only by return type).
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMethodDescriptor(String className, String methodName, String[] parameterTypeNames) -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
myClassName
-
myMethod
-
myMethodName
-
myParameterTypeNames
-
-
Constructor Details
-
MethodDescriptor
-
-
Method Details
-
of
-
of
Create a descriptor from a reflectiveMethod. Parameter types are taken as declared (including varargs represented as an array type). The return type is intentionally not included as it is not used for reflective lookup.The method must be
staticwhen used withExternalProcessExecutor. -
typeNames
-
getMethod
-