org.jruby.runtime
Class ThreadContext

java.lang.Object
  extended byorg.jruby.runtime.ThreadContext

public class ThreadContext
extends java.lang.Object

Version:
$Revision: 1.30 $
Author:
jpetersen

Constructor Summary
ThreadContext(Ruby runtime)
          Constructor for Context.
 
Method Summary
 IRubyObject callSuper(IRubyObject[] args)
           
 Scope currentScope()
           
 IRubyObject eval(INode node)
           
 IRubyObject getBackref()
           
 BlockStack getBlockStack()
           
 IRubyObject getConstant(java.lang.String name)
           
 DynamicVariableSet getCurrentDynamicVars()
           
 Frame getCurrentFrame()
           
 Iter getCurrentIter()
           
 Visibility getCurrentVisibility()
           
 java.util.List getDynamicNames()
           
 IRubyObject getDynamicValue(java.lang.String name)
           
 FrameStack getFrameStack()
           
 IStack getIterStack()
           
 ISourcePosition getPosition()
           
 RubyModule getRubyClass()
           
 ScopeStack getScopeStack()
           
 java.lang.String getSourceFile()
           
 int getSourceLine()
           
 ThreadClass getThread()
           
 RubyModule getWrapper()
           
 boolean isBlockGiven()
           
 RubyArray moduleNesting()
           
 void pollThreadEvents()
           
 void popClass()
           
 void popDynamicVars()
           
 void pushClass(RubyModule newClass)
           
 void pushDynamicVars()
           
 void setPosition(ISourcePosition position)
           
 void setPosition(java.lang.String file, int line)
           
 void setThread(ThreadClass thread)
           
 void setWrapper(RubyModule wrapper)
           
 IRubyObject yield(IRubyObject value, IRubyObject self, RubyModule klass, boolean checkArguments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadContext

public ThreadContext(Ruby runtime)
Constructor for Context.

Method Detail

getBlockStack

public BlockStack getBlockStack()

getCurrentDynamicVars

public DynamicVariableSet getCurrentDynamicVars()

pushDynamicVars

public void pushDynamicVars()

popDynamicVars

public void popDynamicVars()

getDynamicNames

public java.util.List getDynamicNames()

getThread

public ThreadClass getThread()

setThread

public void setThread(ThreadClass thread)

eval

public IRubyObject eval(INode node)

getScopeStack

public ScopeStack getScopeStack()

getFrameStack

public FrameStack getFrameStack()

getIterStack

public IStack getIterStack()

getCurrentFrame

public Frame getCurrentFrame()

getCurrentIter

public Iter getCurrentIter()

getSourceFile

public java.lang.String getSourceFile()

currentScope

public Scope currentScope()

getSourceLine

public int getSourceLine()

getPosition

public ISourcePosition getPosition()

setPosition

public void setPosition(java.lang.String file,
                        int line)

setPosition

public void setPosition(ISourcePosition position)

getBackref

public IRubyObject getBackref()

getCurrentVisibility

public Visibility getCurrentVisibility()

callSuper

public IRubyObject callSuper(IRubyObject[] args)

yield

public IRubyObject yield(IRubyObject value,
                         IRubyObject self,
                         RubyModule klass,
                         boolean checkArguments)

isBlockGiven

public boolean isBlockGiven()

pollThreadEvents

public void pollThreadEvents()

pushClass

public void pushClass(RubyModule newClass)

popClass

public void popClass()

getRubyClass

public RubyModule getRubyClass()

getWrapper

public RubyModule getWrapper()

setWrapper

public void setWrapper(RubyModule wrapper)

getDynamicValue

public IRubyObject getDynamicValue(java.lang.String name)

getConstant

public IRubyObject getConstant(java.lang.String name)

moduleNesting

public RubyArray moduleNesting()


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.