| Modifier and Type | Field and Description |
|---|---|
| private static final String |
| Access | Constructor and Description |
|---|---|
| private | |
| pack-priv | LocalGlobalVariable(RubyObject receiver, String
the local global type variable name name, IRubyObject Ruby global object irubyObject)A constructor used when local global type variables are retrieved from Ruby. |
| Modifier and Type | Method and Description |
|---|---|
| public static BiVariable | Returns: the instance of LocalGlobalVariableReceiver object returned when a script is evaluated. receiver, String a variable name name, Object... Java object that should be assigned to. javaObject)Hides org. Returns an instance of this class. |
| public BiVariable. | Returns: this enum type, BiVariable.Type.GlobalVariable.Overrides org. Implements org. Returns enum type of this variable defined in |
| public void | inject()
Overrides org. Implements org. Injects a global value to a parsed Ruby script. |
| public static boolean | Returns: true if the given name is of a local global type variable.is a name to be checked. name)Hides org. Returns true if the given name is a local global type variable. |
| public void | remove()
Overrides org. Implements org. Removes this object from |
| public static void | retrieve(final RubyObject
receiver object returned when a script is evaluated. receiver, final BiVariableMap map to save retrieved global variables. vars)Retrieves global variables eagerly from Ruby right after the evaluation. |
| public static void | retrieveByKey(final Ruby
Ruby runtime runtime, final BiVariableMap map to save a retrieved global variable. vars, final String name of the global variable name)Hides org. Retrieves a global variable by key from Ruby runtime after the evaluation. |
| private static void | updateLocalGlobal(final RubyObject receiver, final BiVariableMap vars, final String name, final IRubyObject value)
|
| VALID_NAME | back to summary |
|---|---|
| private static final String VALID_NAME | |
| LocalGlobalVariable | back to summary |
|---|---|
| private LocalGlobalVariable(RubyObject receiver, String name, Object... javaObject) | |
| LocalGlobalVariable | back to summary |
|---|---|
| pack-priv LocalGlobalVariable(RubyObject receiver, String name, IRubyObject irubyObject) A constructor used when local global type variables are retrieved from Ruby.
| |
| getInstance | back to summary |
|---|---|
| public static BiVariable getInstance(RubyObject receiver, String name, Object... javaObject) Hides org. Returns an instance of this class. This factory method is used when a local
global type variable is put into
| |
| getType | back to summary |
|---|---|
| public BiVariable. Overrides org. Implements org. Returns enum type of this variable defined in
| |
| inject | back to summary |
|---|---|
| public void inject() Overrides org. Implements org. Injects a global value to a parsed Ruby script. This method is invoked during EvalUnit#run() is executed.
| |
| isValidName | back to summary |
|---|---|
| public static boolean isValidName(Object name) Hides org. Returns true if the given name is a local global type variable. Unless returns false.
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides org. Implements org. Removes this object from
| |
| retrieve | back to summary |
|---|---|
| public static void retrieve(final RubyObject receiver, final BiVariableMap vars) Retrieves global variables eagerly from Ruby right after the evaluation. The variable names to be retrieved must be in a variable map.
| |
| retrieveByKey | back to summary |
|---|---|
| public static void retrieveByKey(final Ruby runtime, final BiVariableMap vars, final String name) Hides org. Retrieves a global variable by key from Ruby runtime after the evaluation. This method is used when eager retrieval is off.
| |
| updateLocalGlobal | back to summary |
|---|---|
| private static void updateLocalGlobal(final RubyObject receiver, final BiVariableMap vars, final String name, final IRubyObject value) | |