Package org.jruby.ir

Enum IRScopeType

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

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

    • CLOSURE

      public static final IRScopeType CLOSURE
    • EVAL_SCRIPT

      public static final IRScopeType EVAL_SCRIPT
    • INSTANCE_METHOD

      public static final IRScopeType INSTANCE_METHOD
    • CLASS_METHOD

      public static final IRScopeType CLASS_METHOD
    • MODULE_BODY

      public static final IRScopeType MODULE_BODY
    • CLASS_BODY

      public static final IRScopeType CLASS_BODY
    • METACLASS_BODY

      public static final IRScopeType METACLASS_BODY
    • SCRIPT_BODY

      public static final IRScopeType SCRIPT_BODY
    • FOR

      public static final IRScopeType FOR
  • Field Details

  • Constructor Details

    • IRScopeType

      private IRScopeType()
  • Method Details

    • values

      public static IRScopeType[] 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 IRScopeType 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
    • fromOrdinal

      public static IRScopeType fromOrdinal(int ordinal)
    • isBlock

      public boolean isBlock()
    • isEval

      public boolean isEval()
    • isMethodType

      public boolean isMethodType()
    • isClosureType

      public boolean isClosureType()
    • isMethod

      public boolean isMethod()
    • isMethodContainer

      public boolean isMethodContainer()