Class AbstractControlFlowOpcode
java.lang.Object
ai.timefold.jpyinterpreter.opcodes.controlflow.AbstractControlFlowOpcode
- All Implemented Interfaces:
Opcode
- Direct Known Subclasses:
ForIterOpcode,JumpAbsoluteOpcode,JumpIfFalseOrPopOpcode,JumpIfNotExcMatchOpcode,JumpIfTrueOrPopOpcode,PopJumpIfFalseOpcode,PopJumpIfIsNoneOpcode,PopJumpIfIsNotNoneOpcode,PopJumpIfTrueOpcode,RaiseVarargsOpcode,ReraiseOpcode,ReturnConstantValueOpcode,ReturnValueOpcode,SendOpcode,SetupFinallyOpcode,SetupWithOpcode
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturn the bytecode index of the instruction, which can be used to identify the instruction as the target of a jump.booleantoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ai.timefold.jpyinterpreter.opcodes.Opcode
getPossibleNextBytecodeIndexList, getStackMetadataAfterInstructionForBranches, implement, isForcedJump
-
Field Details
-
instruction
-
-
Constructor Details
-
AbstractControlFlowOpcode
-
-
Method Details
-
isJumpTarget
public boolean isJumpTarget()- Specified by:
isJumpTargetin interfaceOpcode- Returns:
- true if this opcode the target of a jump
-
getBytecodeIndex
public int getBytecodeIndex()Description copied from interface:OpcodeReturn the bytecode index of the instruction, which can be used to identify the instruction as the target of a jump.- Specified by:
getBytecodeIndexin interfaceOpcode- Returns:
- The bytecode index of the instruction, which is defined as the number of instructions before it in the instruction listing.
-
toString
-