Class GlobalVariable

java.lang.Object
org.jruby.internal.runtime.GlobalVariable

public final class GlobalVariable extends Object
  • Constructor Details

  • Method Details

    • newUndefined

      public static GlobalVariable newUndefined(Ruby runtime, String name)
    • getAccessor

      public IAccessor getAccessor()
    • getScope

      public GlobalVariable.Scope getScope()
    • getTraces

      public ArrayList getTraces()
    • addTrace

      public void addTrace(RubyProc command)
    • removeTrace

      public boolean removeTrace(IRubyObject command)
    • removeTraces

      public void removeTraces()
    • setAccessor

      public void setAccessor(IAccessor accessor)
    • isTracing

      public boolean isTracing()
    • trace

      public void trace(IRubyObject value)
    • forceValue

      public void forceValue(IRubyObject newValue)
      read-only variables like $FILENAME are ony read-only to the user. We need to change them behind the curtain.
      Parameters:
      newValue -
    • getInvalidator

      public Invalidator getInvalidator()
    • invalidate

      public void invalidate()