public enum IRScopeType extends Enum<IRScopeType>
| Enum Constant and Description |
|---|
CLASS_BODY |
CLASS_METHOD |
CLOSURE |
EVAL_SCRIPT |
FOR |
INSTANCE_METHOD |
METACLASS_BODY |
MODULE_BODY |
SCRIPT_BODY |
| Modifier and Type | Method and Description |
|---|---|
static IRScopeType |
fromOrdinal(int value) |
boolean |
isClosureType() |
boolean |
isMethod() |
boolean |
isMethodContainer() |
boolean |
isMethodType() |
static IRScopeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IRScopeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IRScopeType CLOSURE
public static final IRScopeType EVAL_SCRIPT
public static final IRScopeType INSTANCE_METHOD
public static final IRScopeType CLASS_METHOD
public static final IRScopeType MODULE_BODY
public static final IRScopeType CLASS_BODY
public static final IRScopeType METACLASS_BODY
public static final IRScopeType SCRIPT_BODY
public static final IRScopeType FOR
public static IRScopeType[] values()
for (IRScopeType c : IRScopeType.values()) System.out.println(c);
public static IRScopeType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static IRScopeType fromOrdinal(int value)
public boolean isMethodType()
public boolean isClosureType()
public boolean isMethod()
public boolean isMethodContainer()
Copyright © 2001-2016 JRuby. All Rights Reserved.