org.jruby.runtime
Class ThreadContext
java.lang.Object
org.jruby.runtime.ThreadContext
- public class ThreadContext
- extends java.lang.Object
- Version:
- $Revision: 1.30 $
- Author:
- jpetersen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThreadContext
public ThreadContext(Ruby runtime)
- Constructor for Context.
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.