Enum Class ModuleOpDescriptor

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

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

    • IMPORT_NAME

      public static final ModuleOpDescriptor IMPORT_NAME
    • IMPORT_FROM

      public static final ModuleOpDescriptor IMPORT_FROM
    • IMPORT_STAR

      public static final ModuleOpDescriptor IMPORT_STAR
      Loads all symbols not starting with '_' directly from the module TOS to the local namespace. The module is popped after loading all names. This opcode implements from module import *.
  • Method Details

    • values

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