Class UnaryDunderBuiltin
java.lang.Object
ai.timefold.jpyinterpreter.builtins.UnaryDunderBuiltin
- All Implemented Interfaces:
PythonLikeObject,PythonLikeFunction
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final UnaryDunderBuiltinstatic final UnaryDunderBuiltinstatic final UnaryDunderBuiltinstatic final UnaryDunderBuiltinstatic final UnaryDunderBuiltinstatic final UnaryDunderBuiltinstatic final UnaryDunderBuiltinstatic final UnaryDunderBuiltinstatic final UnaryDunderBuiltinstatic final UnaryDunderBuiltinstatic final UnaryDunderBuiltin -
Constructor Summary
ConstructorsConstructorDescriptionUnaryDunderBuiltin(PythonUnaryOperator operator) UnaryDunderBuiltin(String dunderMethodName) -
Method Summary
Modifier and TypeMethodDescription$call(List<PythonLikeObject> positionalArguments, Map<PythonString, PythonLikeObject> namedArguments, PythonLikeObject callerInstance) Calls the function with positional arguments and named arguments.invoke(PythonLikeObject object) Methods 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, $getType, $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__
-
Field Details
-
ABS
-
HASH
-
INT
-
FLOAT
-
INDEX
-
ITERATOR
-
LENGTH
-
NEXT
-
REVERSED
-
REPRESENTATION
-
STR
-
-
Constructor Details
-
UnaryDunderBuiltin
-
UnaryDunderBuiltin
-
-
Method Details
-
$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
-
invoke
-