Top Fields Constructors Methods
org.jruby.ir.targets.simple

public Class NormalGlobalVariableCompiler

extends Object
implements GlobalVariableCompiler
Class Inheritance
All Implemented Interfaces
org.jruby.ir.targets.GlobalVariableCompiler
Imports
org.jruby.Ruby, org.jruby.internal.runtime.GlobalVariables, org.jruby.ir.targets.GlobalVariableCompiler, .IRBytecodeAdapter, org.objectweb.asm.Type, org.objectweb.asm.commons.Method

Field Summary

Modifier and TypeField and Description
private final IRBytecodeAdapter

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
getGlobalVariable(String name, String file)

Implements org.jruby.ir.targets.GlobalVariableCompiler.getGlobalVariable.

Retrieve a global variable with the given name.

public void
setGlobalVariable(String name, String file)

Implements org.jruby.ir.targets.GlobalVariableCompiler.setGlobalVariable.

Set the global variable with the given name to the value on stack.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

compilerback to summary
private final IRBytecodeAdapter compiler

Constructor Detail

NormalGlobalVariableCompilerback to summary
public NormalGlobalVariableCompiler(IRBytecodeAdapter compiler)

Method Detail

getGlobalVariableback to summary
public void getGlobalVariable(String name, String file)

Implements org.jruby.ir.targets.GlobalVariableCompiler.getGlobalVariable.

Doc from org.jruby.ir.targets.GlobalVariableCompiler.getGlobalVariable.

Retrieve a global variable with the given name.

Stack required: none

Annotations
@Override
setGlobalVariableback to summary
public void setGlobalVariable(String name, String file)

Implements org.jruby.ir.targets.GlobalVariableCompiler.setGlobalVariable.

Doc from org.jruby.ir.targets.GlobalVariableCompiler.setGlobalVariable.

Set the global variable with the given name to the value on stack.

Stack required: the new value

Annotations
@Override