Enum Class ExceptionOpDescriptor

java.lang.Object
java.lang.Enum<ExceptionOpDescriptor>
ai.timefold.jpyinterpreter.opcodes.descriptor.ExceptionOpDescriptor
All Implemented Interfaces:
OpcodeDescriptor, Serializable, Comparable<ExceptionOpDescriptor>, Constable

public enum ExceptionOpDescriptor extends Enum<ExceptionOpDescriptor> implements OpcodeDescriptor
  • Enum Constant Details

    • LOAD_ASSERTION_ERROR

      public static final ExceptionOpDescriptor LOAD_ASSERTION_ERROR
      Pushes AssertionError onto the stack. Used by the assert statement.
    • POP_BLOCK

      public static final ExceptionOpDescriptor POP_BLOCK
      Removes one block from the block stack. Per frame, there is a stack of blocks, denoting try statements, and such.
    • POP_EXCEPT

      public static final ExceptionOpDescriptor POP_EXCEPT
      Removes one block from the block stack. The popped block must be an exception handler block, as implicitly created when entering an except handler. In addition to popping extraneous values from the frame stack, the last three popped values are used to restore the exception state.
    • RERAISE

      public static final ExceptionOpDescriptor RERAISE
      Re-raises the exception currently on top of the stack.
    • CHECK_EXC_MATCH

      public static final ExceptionOpDescriptor CHECK_EXC_MATCH
      Performs exception matching for except. Tests whether the TOS1 is an exception matching TOS. Pops TOS and pushes the boolean result of the test.
    • PUSH_EXC_INFO

      public static final ExceptionOpDescriptor PUSH_EXC_INFO
      Pops a value from the stack. Pushes the current exception to the top of the stack. Pushes the value originally popped back to the stack. Used in exception handlers.
    • RAISE_VARARGS

      public static final ExceptionOpDescriptor RAISE_VARARGS
    • WITH_EXCEPT_START

      public static final ExceptionOpDescriptor WITH_EXCEPT_START
      Calls the function in position 7 on the stack with the top three items on the stack as arguments. Used to implement the call context_manager.__exit__(*exc_info()) when an exception has occurred in a with statement.
    • SETUP_FINALLY

      public static final ExceptionOpDescriptor SETUP_FINALLY
    • BEFORE_WITH

      public static final ExceptionOpDescriptor BEFORE_WITH
    • SETUP_WITH

      public static final ExceptionOpDescriptor SETUP_WITH
    • CLEANUP_THROW

      public static final ExceptionOpDescriptor CLEANUP_THROW
  • Method Details

    • values

      public static ExceptionOpDescriptor[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ExceptionOpDescriptor valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getVersionMapping

      public VersionMapping getVersionMapping()
      Specified by:
      getVersionMapping in interface OpcodeDescriptor