public enum LocalVariableBehavior extends Enum<LocalVariableBehavior>
Enum Constant and Description |
---|
BSF
Specifies that a sharing variable works for BSF JRuby Engine.
|
GLOBAL
Specifies that a sharing variable works like JSR 223 reference implementation.
|
PERSISTENT
Specifies that Ruby's local variables survive over multiple evaluations.
|
TRANSIENT
Specifies that Ruby's local variables have faithful behavior to its semantics.
|
Modifier and Type | Method and Description |
---|---|
static LocalVariableBehavior |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LocalVariableBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LocalVariableBehavior GLOBAL
public static final LocalVariableBehavior PERSISTENT
public static final LocalVariableBehavior TRANSIENT
public static final LocalVariableBehavior BSF
public static LocalVariableBehavior[] values()
for (LocalVariableBehavior c : LocalVariableBehavior.values()) System.out.println(c);
public static LocalVariableBehavior 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 nullCopyright © 2001-2014 JRuby. All Rights Reserved.