Package org.jruby.ir.targets.simple
Class NormalGlobalVariableCompiler
java.lang.Object
org.jruby.ir.targets.simple.NormalGlobalVariableCompiler
- All Implemented Interfaces:
GlobalVariableCompiler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
getGlobalVariable
(String name, String file) Retrieve a global variable with the given name.void
setGlobalVariable
(String name, String file) Set the global variable with the given name to the value on stack.
-
Constructor Details
-
NormalGlobalVariableCompiler
-
-
Method Details
-
getGlobalVariable
Description copied from interface:GlobalVariableCompiler
Retrieve a global variable with the given name.Stack required: none
- Specified by:
getGlobalVariable
in interfaceGlobalVariableCompiler
-
setGlobalVariable
Description copied from interface:GlobalVariableCompiler
Set the global variable with the given name to the value on stack.Stack required: the new value
- Specified by:
setGlobalVariable
in interfaceGlobalVariableCompiler
-