Package ai.timefold.jpyinterpreter
Class PythonFunctionSignature
java.lang.Object
ai.timefold.jpyinterpreter.PythonFunctionSignature
-
Constructor Summary
ConstructorsConstructorDescriptionPythonFunctionSignature(MethodDescriptor methodDescriptor, PythonLikeType returnType, PythonLikeType... parameterTypes) PythonFunctionSignature(MethodDescriptor methodDescriptor, PythonLikeType returnType, List<PythonLikeType> parameterTypeList) PythonFunctionSignature(MethodDescriptor methodDescriptor, List<PythonLikeObject> defaultArgumentList, Map<String, Integer> keywordToArgumentIndexMap, PythonLikeType returnType, PythonLikeType... parameterTypes) PythonFunctionSignature(MethodDescriptor methodDescriptor, List<PythonLikeObject> defaultArgumentList, Map<String, Integer> keywordToArgumentIndexMap, PythonLikeType returnType, List<PythonLikeType> parameterTypesList) PythonFunctionSignature(MethodDescriptor methodDescriptor, List<PythonLikeObject> defaultArgumentList, Map<String, Integer> keywordToArgumentIndexMap, PythonLikeType returnType, List<PythonLikeType> parameterTypesList, Optional<Integer> extraPositionalArgumentsVariableIndex, Optional<Integer> extraKeywordArgumentsVariableIndex) PythonFunctionSignature(MethodDescriptor methodDescriptor, List<PythonLikeObject> defaultArgumentList, Map<String, Integer> keywordToArgumentIndexMap, PythonLikeType returnType, List<PythonLikeType> parameterTypesList, Optional<Integer> extraPositionalArgumentsVariableIndex, Optional<Integer> extraKeywordArgumentsVariableIndex, ArgumentSpec<?> argumentSpec) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PythonFunctionSignatureArgumentSpec<?>inthashCode()booleanbooleanbooleanbooleanbooleanmatchesParameters(int positionalArgumentCount, List<String> keywordArgumentNameList, List<PythonLikeType> callStackTypeList) booleanmatchesParameters(PythonLikeType... callParameters) booleantoString()
-
Constructor Details
-
PythonFunctionSignature
public PythonFunctionSignature(MethodDescriptor methodDescriptor, PythonLikeType returnType, PythonLikeType... parameterTypes) -
PythonFunctionSignature
public PythonFunctionSignature(MethodDescriptor methodDescriptor, PythonLikeType returnType, List<PythonLikeType> parameterTypeList) -
PythonFunctionSignature
public PythonFunctionSignature(MethodDescriptor methodDescriptor, List<PythonLikeObject> defaultArgumentList, Map<String, Integer> keywordToArgumentIndexMap, PythonLikeType returnType, PythonLikeType... parameterTypes) -
PythonFunctionSignature
public PythonFunctionSignature(MethodDescriptor methodDescriptor, List<PythonLikeObject> defaultArgumentList, Map<String, Integer> keywordToArgumentIndexMap, PythonLikeType returnType, List<PythonLikeType> parameterTypesList) -
PythonFunctionSignature
public PythonFunctionSignature(MethodDescriptor methodDescriptor, List<PythonLikeObject> defaultArgumentList, Map<String, Integer> keywordToArgumentIndexMap, PythonLikeType returnType, List<PythonLikeType> parameterTypesList, Optional<Integer> extraPositionalArgumentsVariableIndex, Optional<Integer> extraKeywordArgumentsVariableIndex) -
PythonFunctionSignature
public PythonFunctionSignature(MethodDescriptor methodDescriptor, List<PythonLikeObject> defaultArgumentList, Map<String, Integer> keywordToArgumentIndexMap, PythonLikeType returnType, List<PythonLikeType> parameterTypesList, Optional<Integer> extraPositionalArgumentsVariableIndex, Optional<Integer> extraKeywordArgumentsVariableIndex, ArgumentSpec<?> argumentSpec)
-
-
Method Details
-
forMethod
-
getArgumentSpec
-
getReturnType
-
getParameterTypes
-
getMethodDescriptor
-
isFromArgumentSpec
public boolean isFromArgumentSpec() -
getDefaultArgumentList
-
getKeywordToArgumentIndexMap
-
getExtraPositionalArgumentsVariableIndex
-
getExtraKeywordArgumentsVariableIndex
-
getDefaultArgumentHolderClassInternalName
-
isVirtualMethod
public boolean isVirtualMethod() -
isClassMethod
public boolean isClassMethod() -
isStaticMethod
public boolean isStaticMethod() -
matchesParameters
-
matchesParameters
public boolean matchesParameters(int positionalArgumentCount, List<String> keywordArgumentNameList, List<PythonLikeType> callStackTypeList) -
moreSpecificThan
-
equals
-
hashCode
public int hashCode() -
toString
-