/** defines a readonly global variable * */ public void defineReadonlyVariable(String name, IRubyObject value, org.jruby.internal.runtime.GlobalVariable.Scope scope) { globalVariables.defineReadonly(name, new ValueAccessor(value), scope); }
public static GlobalVariable newUndefined(Ruby runtime, String name) { GlobalVariable variable = new GlobalVariable(null, Scope.GLOBAL); variable.setAccessor(new UndefinedAccessor(runtime, variable, name)); return variable; }
/** * @see org.jruby.runtime.IAccessor#setValue(IRubyObject) */ public IRubyObject setValue(IRubyObject newValue) { assert newValue != null; globalVariable.setAccessor(new ValueAccessor(newValue)); return newValue; } }
public void setTraceVar(String name, RubyProc proc) { assert name != null; assert name.startsWith("$"); GlobalVariable variable = createIfNotDefined(name); variable.addTrace(proc); }
@Override public DynamicMethod dup() { MixedModeIRMethod x = (MixedModeIRMethod) super.dup(); x.callCount = callCount; x.actualMethod = actualMethod; return x; }
@Override public void setRubyName(String id) { this.rubyName = id; updateName(); }
public static GlobalVariable newUndefined(Ruby runtime, String name) { GlobalVariable variable = new GlobalVariable(null, Scope.GLOBAL); variable.setAccessor(new UndefinedAccessor(runtime, variable, name)); return variable; }
/** defines a readonly global variable * */ public void defineReadonlyVariable(String name, IRubyObject value, org.jruby.internal.runtime.GlobalVariable.Scope scope) { globalVariables.defineReadonly(name, new ValueAccessor(value), scope); }
/** * @see org.jruby.runtime.IAccessor#setValue(IRubyObject) */ public IRubyObject setValue(IRubyObject newValue) { assert newValue != null; globalVariable.setAccessor(new ValueAccessor(newValue)); return newValue; } }
public void setTraceVar(String name, RubyProc proc) { assert name != null; assert name.startsWith("$"); GlobalVariable variable = createIfNotDefined(name); variable.addTrace(proc); }
@Override public DynamicMethod dup() { MixedModeIRMethod x = (MixedModeIRMethod) super.dup(); x.callCount = callCount; x.actualMethod = actualMethod; return x; }
@Override public void setRubyName(String id) { this.rubyName = id; updateName(); }
public static GlobalVariable newUndefined(Ruby runtime, String name) { GlobalVariable variable = new GlobalVariable(null, Scope.GLOBAL); variable.setAccessor(new UndefinedAccessor(runtime, variable, name)); return variable; }
/** defines a readonly global variable * */ public void defineReadonlyVariable(String name, IRubyObject value, org.jruby.internal.runtime.GlobalVariable.Scope scope) { globalVariables.defineReadonly(name, new ValueAccessor(value), scope); }
/** * @see org.jruby.runtime.IAccessor#setValue(IRubyObject) */ public IRubyObject setValue(IRubyObject newValue) { assert newValue != null; globalVariable.setAccessor(new ValueAccessor(newValue)); return newValue; } }
public static GlobalVariable newUndefined(Ruby runtime, String name) { GlobalVariable variable = new GlobalVariable(null, Scope.GLOBAL); variable.setAccessor(new UndefinedAccessor(runtime, variable, name)); return variable; }
/** defines a readonly global variable * */ public void defineReadonlyVariable(String name, IRubyObject value, org.jruby.internal.runtime.GlobalVariable.Scope scope) { globalVariables.defineReadonly(name, new ValueAccessor(value), scope); }
/** * @see org.jruby.runtime.IAccessor#setValue(IRubyObject) */ public IRubyObject setValue(IRubyObject newValue) { assert newValue != null; globalVariable.setAccessor(new ValueAccessor(newValue)); return newValue; } }