Enum Class ExceptionOpDescriptor
java.lang.Object
java.lang.Enum<ExceptionOpDescriptor>
ai.timefold.jpyinterpreter.opcodes.descriptor.ExceptionOpDescriptor
- All Implemented Interfaces:
OpcodeDescriptor,Serializable,Comparable<ExceptionOpDescriptor>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPerforms exception matching for except.Pushes AssertionError onto the stack.Removes one block from the block stack.Removes one block from the block stack.Pops a value from the stack.Re-raises the exception currently on top of the stack.Calls the function in position 7 on the stack with the top three items on the stack as arguments. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExceptionOpDescriptorReturns the enum constant of this class with the specified name.static ExceptionOpDescriptor[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface ai.timefold.jpyinterpreter.opcodes.descriptor.OpcodeDescriptor
name
-
Enum Constant Details
-
LOAD_ASSERTION_ERROR
Pushes AssertionError onto the stack. Used by the assert statement. -
POP_BLOCK
Removes one block from the block stack. Per frame, there is a stack of blocks, denoting try statements, and such. -
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
Re-raises the exception currently on top of the stack. -
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
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
-
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
-
BEFORE_WITH
-
SETUP_WITH
-
CLEANUP_THROW
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getVersionMapping
- Specified by:
getVersionMappingin interfaceOpcodeDescriptor
-