ai.timefold.jpyinterpreter.opcodes.exceptions.PopBlockOpcode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jpyinterpreter Show documentation
Show all versions of jpyinterpreter Show documentation
Timefold solves planning problems.
This lightweight, embeddable planning engine implements powerful and scalable algorithms
to optimize business resource scheduling and planning.
This module contains the Python interpreter.
The newest version!
package ai.timefold.jpyinterpreter.opcodes.exceptions;
import ai.timefold.jpyinterpreter.FunctionMetadata;
import ai.timefold.jpyinterpreter.PythonBytecodeInstruction;
import ai.timefold.jpyinterpreter.StackMetadata;
import ai.timefold.jpyinterpreter.opcodes.AbstractOpcode;
public class PopBlockOpcode extends AbstractOpcode {
public PopBlockOpcode(PythonBytecodeInstruction instruction) {
super(instruction);
}
@Override
protected StackMetadata getStackMetadataAfterInstruction(FunctionMetadata functionMetadata, StackMetadata stackMetadata) {
return stackMetadata.copy();
}
@Override
public void implement(FunctionMetadata functionMetadata, StackMetadata stackMetadata) {
// Pop block has a stack effect of 0 (does nothing); ASM take care of popping blocks for us via computeFrames
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy