Class VersionMapping
java.lang.Object
ai.timefold.jpyinterpreter.opcodes.descriptor.VersionMapping
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VersionMappingstatic VersionMappinggetOpcodeForVersion(PythonBytecodeInstruction instruction, PythonVersion pythonVersion) map(PythonVersion version, BiFunction<PythonBytecodeInstruction, PythonVersion, Opcode> mapper) map(PythonVersion version, Function<PythonBytecodeInstruction, Opcode> mapper) mapWithLabels(PythonVersion version, BiFunction<PythonBytecodeInstruction, Integer, Opcode> mapper, ToIntBiFunction<PythonBytecodeInstruction, PythonVersion> labelMapper) static VersionMapping
-
Constructor Details
-
VersionMapping
public VersionMapping()
-
-
Method Details
-
unimplemented
-
constantMapping
-
constantMapping
public static VersionMapping constantMapping(BiFunction<PythonBytecodeInstruction, PythonVersion, Opcode> mapper) -
map
-
map
public VersionMapping map(PythonVersion version, BiFunction<PythonBytecodeInstruction, PythonVersion, Opcode> mapper) -
mapWithLabels
public VersionMapping mapWithLabels(PythonVersion version, BiFunction<PythonBytecodeInstruction, Integer, Opcode> mapper, ToIntBiFunction<PythonBytecodeInstruction, PythonVersion> labelMapper) -
getOpcodeForVersion
public Opcode getOpcodeForVersion(PythonBytecodeInstruction instruction, PythonVersion pythonVersion)
-