Enum Class AsyncOpDescriptor

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

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

    • GET_AWAITABLE

      public static final AsyncOpDescriptor GET_AWAITABLE
      Implements TOS = get_awaitable(TOS), where get_awaitable(o) returns o if o is a coroutine object or a generator object with the CO_ITERABLE_COROUTINE flag, or resolves o.__await__.
    • GET_AITER

      public static final AsyncOpDescriptor GET_AITER
      Implements TOS = TOS.__aiter__().
    • GET_ANEXT

      public static final AsyncOpDescriptor GET_ANEXT
      Implements PUSH(get_awaitable(TOS.__anext__())). See GET_AWAITABLE for details about get_awaitable
    • END_ASYNC_FOR

      public static final AsyncOpDescriptor END_ASYNC_FOR
      Terminates an async for loop. Handles an exception raised when awaiting a next item. If TOS is StopAsyncIteration pop 7 values from the stack and restore the exception state using the second three of them. Otherwise re-raise the exception using the three values from the stack. An exception handler block is removed from the block stack.
    • BEFORE_ASYNC_WITH

      public static final AsyncOpDescriptor BEFORE_ASYNC_WITH
      Resolves __aenter__ and __aexit__ from the object on top of the stack. Pushes __aexit__ and result of __aenter__() to the stack.
    • SETUP_ASYNC_WITH

      public static final AsyncOpDescriptor SETUP_ASYNC_WITH
      Creates a new frame object.
  • Method Details

    • values

      public static AsyncOpDescriptor[] 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 AsyncOpDescriptor 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