|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.runtime.ThreadContext
Method Summary | |
Frame[] |
createBacktrace(int level,
boolean nativeException)
Create an Array with backtrace information. |
static IRubyObject |
createBacktraceFromFrames(Ruby runtime,
Frame[] backtraceFrames)
Create an Array with backtrace information. |
java.lang.String[] |
getActiveCatches()
|
IRubyObject |
getBackref()
|
RubyModule |
getBindingRubyClass()
|
IRubyObject |
getConstant(java.lang.String name)
Used by the evaluator and the compiler to look up a constant by name |
IRubyObject |
getConstant(java.lang.String name,
RubyModule module)
|
boolean |
getConstantDefined(java.lang.String name)
|
Frame |
getCurrentFrame()
|
DynamicScope |
getCurrentScope()
|
Visibility |
getCurrentVisibility()
|
IRubyObject |
getErrorInfo()
|
IRubyObject[] |
getFrameArgs()
|
Block |
getFrameBlock()
|
int |
getFrameCount()
|
java.lang.Object |
getFrameJumpTarget()
|
RubyModule |
getFrameKlazz()
|
java.lang.String |
getFrameName()
|
ISourcePosition |
getFramePosition()
|
IRubyObject |
getFrameSelf()
|
CallType |
getLastCallType()
|
IRubyObject |
getLastExitStatus()
|
IRubyObject |
getLastline()
|
Visibility |
getLastVisibility()
|
ISourcePosition |
getPosition()
|
Frame |
getPreviousFrame()
|
ISourcePosition |
getPreviousFramePosition()
|
DynamicScope |
getPreviousScope()
|
Visibility |
getPreviousVisibility()
|
RubyModule |
getRubyClass()
|
Ruby |
getRuntime()
|
java.lang.String |
getSourceFile()
|
int |
getSourceLine()
|
RubyThread |
getThread()
|
boolean |
isTopLevel()
|
boolean |
isWithinDefined()
Is this thread actively in defined? at the moment. |
boolean |
isWithinTrace()
Is this thread actively tracing at this moment. |
static ThreadContext |
newContext(Ruby runtime)
|
SinglyLinkedList |
peekCRef()
|
void |
pollThreadEvents()
|
void |
popCatch()
|
RubyModule |
popCRef()
|
RubyModule |
popRubyClass()
|
void |
popScope()
|
void |
postBsfApply()
|
void |
postClassEval()
|
void |
postCompiledClass()
|
void |
postCompiledMethod()
|
void |
postDefMethodInternalCall()
|
void |
postEvalWithBinding(Block block)
|
void |
postExecuteUnder()
|
void |
postMethodCall()
|
void |
postMproc()
|
void |
postNodeEval()
|
void |
postReflectedMethodInternalCall()
|
void |
postRootNode()
|
void |
postTrace()
|
void |
postYield()
|
void |
preAdoptThread()
|
void |
preBsfApply(java.lang.String[] names)
|
void |
preClassEval(StaticScope staticScope,
RubyModule type)
|
void |
preCompiledClass(RubyModule type)
|
void |
preCompiledMethod(RubyModule implementationClass,
SinglyLinkedList cref)
|
void |
preDefMethodInternalCall(RubyModule clazz,
java.lang.String name,
IRubyObject self,
IRubyObject[] args,
int req,
Block block,
boolean noSuper,
SinglyLinkedList cref,
StaticScope staticScope,
java.lang.Object jumpTarget)
|
void |
preEvalWithBinding(Block block)
|
void |
preExecuteUnder(RubyModule executeUnderClass,
Block block)
|
void |
preForBlock(Block block,
RubyModule klass)
|
void |
preInitBuiltinClasses(RubyClass objectClass,
IRubyObject topSelf)
|
void |
preInitCoreClasses()
|
void |
preMethodCall(RubyModule implementationClass,
RubyModule clazz,
IRubyObject self,
java.lang.String name,
IRubyObject[] args,
int req,
Block block,
boolean noSuper,
java.lang.Object jumpTarget)
|
void |
preMproc()
|
void |
preNodeEval(RubyModule rubyClass,
IRubyObject self)
|
JumpException |
prepareJumpException(JumpException.JumpType jumpType,
java.lang.Object target,
java.lang.Object value)
|
void |
preReflectedMethodInternalCall(RubyModule implementationClass,
RubyModule klazz,
IRubyObject self,
java.lang.String name,
IRubyObject[] args,
int req,
boolean noSuper,
Block block,
java.lang.Object jumpTarget)
|
void |
preRootNode(DynamicScope scope)
|
void |
preRunThread(Frame currentFrame)
|
void |
preTrace()
|
void |
preYieldSpecificBlock(Block block,
RubyModule klass)
|
void |
printScope()
|
void |
pushCatch(java.lang.String catchSymbol)
|
SinglyLinkedList |
pushCRef(RubyModule newModule)
|
void |
pushRubyClass(RubyModule currentModule)
|
void |
pushScope(DynamicScope scope)
|
void |
setBackref(IRubyObject backref)
|
IRubyObject |
setConstantInCurrent(java.lang.String name,
IRubyObject result)
Used by the evaluator and the compiler to set a constant by name This is for a null const decl |
IRubyObject |
setConstantInModule(java.lang.String name,
RubyModule module,
IRubyObject result)
Used by the evaluator and the compiler to set a constant by name. |
IRubyObject |
setConstantInObject(java.lang.String name,
IRubyObject result)
Used by the evaluator and the compiler to set a constant by name This is for a Colon2 const decl |
void |
setCRef(SinglyLinkedList newCRef)
|
void |
setCurrentVisibility(Visibility visibility)
|
IRubyObject |
setErrorInfo(IRubyObject errorInfo)
|
void |
setFrameArgs(IRubyObject[] args)
|
void |
setFrameJumpTarget(java.lang.Object target)
|
void |
setLastCallStatus(CallType callType)
Returns the lastCallStatus. |
void |
setLastExitStatus(IRubyObject lastExitStatus)
|
void |
setLastline(IRubyObject value)
|
void |
setLastVisibility(Visibility visibility)
|
void |
setPosition(ISourcePosition position)
|
void |
setThread(RubyThread thread)
|
void |
setWithinDefined(boolean isWithinDefined)
Set whether we are actively within defined? or not. |
void |
setWithinTrace(boolean isWithinTrace)
Set whether we are actively tracing or not on this thread. |
void |
unsetCRef()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static ThreadContext newContext(Ruby runtime)
public JumpException prepareJumpException(JumpException.JumpType jumpType, java.lang.Object target, java.lang.Object value)
public Ruby getRuntime()
public IRubyObject getErrorInfo()
public IRubyObject setErrorInfo(IRubyObject errorInfo)
public void setLastCallStatus(CallType callType)
public CallType getLastCallType()
public void setLastVisibility(Visibility visibility)
public Visibility getLastVisibility()
public IRubyObject getLastExitStatus()
public void setLastExitStatus(IRubyObject lastExitStatus)
public void printScope()
public DynamicScope getCurrentScope()
public DynamicScope getPreviousScope()
public void pushScope(DynamicScope scope)
public void popScope()
public RubyThread getThread()
public void setThread(RubyThread thread)
public IRubyObject getLastline()
public void setLastline(IRubyObject value)
public void pushCatch(java.lang.String catchSymbol)
public void popCatch()
public java.lang.String[] getActiveCatches()
public Frame getCurrentFrame()
public Frame getPreviousFrame()
public int getFrameCount()
public java.lang.String getFrameName()
public IRubyObject[] getFrameArgs()
public void setFrameArgs(IRubyObject[] args)
public IRubyObject getFrameSelf()
public java.lang.Object getFrameJumpTarget()
public void setFrameJumpTarget(java.lang.Object target)
public RubyModule getFrameKlazz()
public Block getFrameBlock()
public ISourcePosition getFramePosition()
public ISourcePosition getPreviousFramePosition()
public ISourcePosition getPosition()
public java.lang.String getSourceFile()
public int getSourceLine()
public void setPosition(ISourcePosition position)
public IRubyObject getBackref()
public void setBackref(IRubyObject backref)
public Visibility getCurrentVisibility()
public Visibility getPreviousVisibility()
public void setCurrentVisibility(Visibility visibility)
public void pollThreadEvents()
public SinglyLinkedList peekCRef()
public void setCRef(SinglyLinkedList newCRef)
public void unsetCRef()
public SinglyLinkedList pushCRef(RubyModule newModule)
public RubyModule popCRef()
public void pushRubyClass(RubyModule currentModule)
public RubyModule popRubyClass()
public RubyModule getRubyClass()
public RubyModule getBindingRubyClass()
public boolean isTopLevel()
public boolean getConstantDefined(java.lang.String name)
public IRubyObject getConstant(java.lang.String name)
public IRubyObject setConstantInCurrent(java.lang.String name, IRubyObject result)
public IRubyObject setConstantInModule(java.lang.String name, RubyModule module, IRubyObject result)
public IRubyObject setConstantInObject(java.lang.String name, IRubyObject result)
public IRubyObject getConstant(java.lang.String name, RubyModule module)
public static IRubyObject createBacktraceFromFrames(Ruby runtime, Frame[] backtraceFrames)
runtime
-
public Frame[] createBacktrace(int level, boolean nativeException)
level
- nativeException
-
public void preAdoptThread()
public void preCompiledClass(RubyModule type)
public void postCompiledClass()
public void preClassEval(StaticScope staticScope, RubyModule type)
public void postClassEval()
public void preBsfApply(java.lang.String[] names)
public void postBsfApply()
public void preMethodCall(RubyModule implementationClass, RubyModule clazz, IRubyObject self, java.lang.String name, IRubyObject[] args, int req, Block block, boolean noSuper, java.lang.Object jumpTarget)
public void postMethodCall()
public void preDefMethodInternalCall(RubyModule clazz, java.lang.String name, IRubyObject self, IRubyObject[] args, int req, Block block, boolean noSuper, SinglyLinkedList cref, StaticScope staticScope, java.lang.Object jumpTarget)
public void postDefMethodInternalCall()
public void preCompiledMethod(RubyModule implementationClass, SinglyLinkedList cref)
public void postCompiledMethod()
public void preReflectedMethodInternalCall(RubyModule implementationClass, RubyModule klazz, IRubyObject self, java.lang.String name, IRubyObject[] args, int req, boolean noSuper, Block block, java.lang.Object jumpTarget)
public void postReflectedMethodInternalCall()
public void preInitCoreClasses()
public void preInitBuiltinClasses(RubyClass objectClass, IRubyObject topSelf)
public void preNodeEval(RubyModule rubyClass, IRubyObject self)
public void postNodeEval()
public void preExecuteUnder(RubyModule executeUnderClass, Block block)
public void postExecuteUnder()
public void preMproc()
public void postMproc()
public void preRunThread(Frame currentFrame)
public void preTrace()
public void postTrace()
public void preForBlock(Block block, RubyModule klass)
public void preYieldSpecificBlock(Block block, RubyModule klass)
public void preEvalWithBinding(Block block)
public void postEvalWithBinding(Block block)
public void postYield()
public void preRootNode(DynamicScope scope)
public void postRootNode()
public boolean isWithinTrace()
org.jruby.Ruby#callTraceFunction(String, ISourcePosition, IRubyObject, String, IRubyObject)
public void setWithinTrace(boolean isWithinTrace)
isWithinTrace
- true is soorg.jruby.Ruby#callTraceFunction(String, ISourcePosition, IRubyObject, String, IRubyObject)
public boolean isWithinDefined()
public void setWithinDefined(boolean isWithinDefined)
isWithinDefined
- true if so
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |