Class JavaMethodReference
java.lang.Object
ai.timefold.jpyinterpreter.types.wrappers.JavaMethodReference
- All Implemented Interfaces:
PythonLikeObject,PythonLikeFunction
-
Constructor Summary
ConstructorsConstructorDescriptionJavaMethodReference(Method method, Map<String, Integer> parameterNameToIndexMap) -
Method Summary
Modifier and TypeMethodDescription$call(List<PythonLikeObject> positionalArguments, Map<PythonString, PythonLikeObject> namedArguments, PythonLikeObject callerInstance) Calls the function with positional arguments and named arguments.$getType()Returns the type describing the objectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ai.timefold.jpyinterpreter.types.PythonLikeFunction
$deleteAttribute, $getAttributeOrNull, $setAttributeMethods inherited from interface ai.timefold.jpyinterpreter.PythonLikeObject
$getAttributeOrError, $getGenericType, $method$__delattr__, $method$__eq__, $method$__format__, $method$__format__, $method$__getattribute__, $method$__hash__, $method$__ne__, $method$__repr__, $method$__setattr__, $method$__str__
-
Constructor Details
-
JavaMethodReference
-
-
Method Details
-
getMethod
-
$call
public PythonLikeObject $call(List<PythonLikeObject> positionalArguments, Map<PythonString, PythonLikeObject> namedArguments, PythonLikeObject callerInstance) Description copied from interface:PythonLikeFunctionCalls the function with positional arguments and named arguments.- Specified by:
$callin interfacePythonLikeFunction- Parameters:
positionalArguments- Positional argumentsnamedArguments- Named argumentscallerInstance- The first argument passed to the caller, if any; null otherwise (used for super)- Returns:
- The function result
-
$getType
Description copied from interface:PythonLikeObjectReturns the type describing the object- Specified by:
$getTypein interfacePythonLikeFunction- Specified by:
$getTypein interfacePythonLikeObject- Returns:
- the type describing the object
-