Enum OperandType

java.lang.Object
java.lang.Enum<OperandType>
org.jruby.ir.operands.OperandType
All Implemented Interfaces:
Serializable, Comparable<OperandType>, java.lang.constant.Constable

public enum OperandType extends Enum<OperandType>
  • Enum Constant Details

    • ARRAY

      public static final OperandType ARRAY
    • BIGNUM

      public static final OperandType BIGNUM
    • BOOLEAN

      public static final OperandType BOOLEAN
    • COMPLEX

      public static final OperandType COMPLEX
    • CURRENT_SCOPE

      public static final OperandType CURRENT_SCOPE
    • DYNAMIC_SYMBOL

      public static final OperandType DYNAMIC_SYMBOL
    • FIXNUM

      public static final OperandType FIXNUM
    • FLOAT

      public static final OperandType FLOAT
    • GLOBAL_VARIABLE

      public static final OperandType GLOBAL_VARIABLE
    • HASH

      public static final OperandType HASH
    • IR_EXCEPTION

      public static final OperandType IR_EXCEPTION
    • LABEL

      public static final OperandType LABEL
    • LOCAL_VARIABLE

      public static final OperandType LOCAL_VARIABLE
    • NIL

      public static final OperandType NIL
    • NTH_REF

      public static final OperandType NTH_REF
    • OBJECT_CLASS

      public static final OperandType OBJECT_CLASS
    • RANGE

      public static final OperandType RANGE
    • RATIONAL

      public static final OperandType RATIONAL
    • REGEXP

      public static final OperandType REGEXP
    • SCOPE_MODULE

      public static final OperandType SCOPE_MODULE
    • SELF

      public static final OperandType SELF
    • SPLAT

      public static final OperandType SPLAT
    • STANDARD_ERROR

      public static final OperandType STANDARD_ERROR
    • STRING_LITERAL

      public static final OperandType STRING_LITERAL
    • SVALUE

      public static final OperandType SVALUE
    • SYMBOL

      public static final OperandType SYMBOL
    • TEMPORARY_VARIABLE

      public static final OperandType TEMPORARY_VARIABLE
    • UNBOXED_BOOLEAN

      public static final OperandType UNBOXED_BOOLEAN
    • UNBOXED_FIXNUM

      public static final OperandType UNBOXED_FIXNUM
    • UNBOXED_FLOAT

      public static final OperandType UNBOXED_FLOAT
    • UNDEFINED_VALUE

      public static final OperandType UNDEFINED_VALUE
    • UNEXECUTABLE_NIL

      public static final OperandType UNEXECUTABLE_NIL
    • WRAPPED_IR_CLOSURE

      public static final OperandType WRAPPED_IR_CLOSURE
    • FROZEN_STRING

      public static final OperandType FROZEN_STRING
    • NULL_BLOCK

      public static final OperandType NULL_BLOCK
    • FILENAME

      public static final OperandType FILENAME
    • SYMBOL_PROC

      public static final OperandType SYMBOL_PROC
    • SCOPE

      public static final OperandType SCOPE
  • Field Details

    • shortName

      private final String shortName
    • coded

      private final byte coded
    • byteToOperand

      private static final OperandType[] byteToOperand
  • Constructor Details

    • OperandType

      private OperandType(String shortName, byte coded)
  • Method Details

    • values

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

      public static OperandType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getCoded

      public byte getCoded()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<OperandType>
    • shortName

      public String shortName()
    • fromCoded

      public static OperandType fromCoded(byte coded)
    • fromOrdinal

      public static OperandType fromOrdinal(int value)