Package ai.timefold.jpyinterpreter.util
Class JumpUtils
java.lang.Object
ai.timefold.jpyinterpreter.util.JumpUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic intgetAbsoluteTarget(PythonBytecodeInstruction instruction, PythonVersion pythonVersion) static intgetBackwardRelativeTarget(PythonBytecodeInstruction instruction, PythonVersion pythonVersion) static intgetInstructionIndexForByteOffset(int byteOffset, PythonVersion pythonVersion) static intgetRelativeTarget(PythonBytecodeInstruction instruction, PythonVersion pythonVersion)
-
Method Details
-
getInstructionIndexForByteOffset
-
getAbsoluteTarget
public static int getAbsoluteTarget(PythonBytecodeInstruction instruction, PythonVersion pythonVersion) -
getRelativeTarget
public static int getRelativeTarget(PythonBytecodeInstruction instruction, PythonVersion pythonVersion) -
getBackwardRelativeTarget
public static int getBackwardRelativeTarget(PythonBytecodeInstruction instruction, PythonVersion pythonVersion)
-