org.jruby.internal.runtime
Class GlobalVariables

java.lang.Object
  extended byorg.jruby.internal.runtime.GlobalVariables
All Implemented Interfaces:
IGlobalVariables

public class GlobalVariables
extends java.lang.Object
implements IGlobalVariables

Version:
$Revision: 1.5 $
Author:
jpetersen

Constructor Summary
GlobalVariables(Ruby runtime)
           
 
Method Summary
 void alias(java.lang.String name, java.lang.String oldName)
          Creates a new global variable which links to the oldName global variable.
 void define(java.lang.String name, IAccessor accessor)
           
 void defineReadonly(java.lang.String name, IAccessor accessor)
           
 IRubyObject get(java.lang.String name)
           
 java.util.Iterator getNames()
           
 boolean isDefined(java.lang.String name)
           
 IRubyObject set(java.lang.String name, IRubyObject value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalVariables

public GlobalVariables(Ruby runtime)
Method Detail

define

public void define(java.lang.String name,
                   IAccessor accessor)
Specified by:
define in interface IGlobalVariables

defineReadonly

public void defineReadonly(java.lang.String name,
                           IAccessor accessor)
Specified by:
defineReadonly in interface IGlobalVariables

isDefined

public boolean isDefined(java.lang.String name)
Specified by:
isDefined in interface IGlobalVariables

alias

public void alias(java.lang.String name,
                  java.lang.String oldName)
Creates a new global variable which links to the oldName global variable. WANRING we are already using the 1.7.1 behaviour.

Specified by:
alias in interface IGlobalVariables

get

public IRubyObject get(java.lang.String name)
Specified by:
get in interface IGlobalVariables

set

public IRubyObject set(java.lang.String name,
                       IRubyObject value)
Specified by:
set in interface IGlobalVariables

getNames

public java.util.Iterator getNames()
Specified by:
getNames in interface IGlobalVariables


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.