Class SendOpcode
java.lang.Object
ai.timefold.jpyinterpreter.opcodes.controlflow.AbstractControlFlowOpcode
ai.timefold.jpyinterpreter.opcodes.generator.SendOpcode
- All Implemented Interfaces:
Opcode
-
Field Summary
Fields inherited from class ai.timefold.jpyinterpreter.opcodes.controlflow.AbstractControlFlowOpcode
instruction -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the possible next bytecode index after this instruction is executed.getStackMetadataAfterInstructionForBranches(FunctionMetadata functionMetadata, StackMetadata stackMetadata) Return a list ofStackMetadatacorresponding to each branch returned byOpcode.getPossibleNextBytecodeIndexList().voidimplement(FunctionMetadata functionMetadata, StackMetadata stackMetadata) Implements the opcode.Methods inherited from class ai.timefold.jpyinterpreter.opcodes.controlflow.AbstractControlFlowOpcode
getBytecodeIndex, isJumpTarget, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ai.timefold.jpyinterpreter.opcodes.Opcode
isForcedJump
-
Constructor Details
-
SendOpcode
-
-
Method Details
-
getPossibleNextBytecodeIndexList
Description copied from interface:OpcodeReturn the possible next bytecode index after this instruction is executed. The default simply return [getBytecodeIndex() + 1], but is typically overwritten in jump instructions.- Returns:
- the possible next bytecode index after this instruction is executed
-
getStackMetadataAfterInstructionForBranches
public List<StackMetadata> getStackMetadataAfterInstructionForBranches(FunctionMetadata functionMetadata, StackMetadata stackMetadata) Description copied from interface:OpcodeReturn a list ofStackMetadatacorresponding to each branch returned byOpcode.getPossibleNextBytecodeIndexList().- Parameters:
functionMetadata- Metadata about the function being compiled.stackMetadata- the StackMetadata just before this instruction is executed.- Returns:
- a new List, the same size as
Opcode.getPossibleNextBytecodeIndexList(), containing the StackMetadata after this instruction is executed for the given branch inOpcode.getPossibleNextBytecodeIndexList().
-
implement
Description copied from interface:OpcodeImplements the opcode.- Parameters:
functionMetadata- Metadata about the function being compiled.stackMetadata- Metadata about the state of the stack when this instruction is executed.
-