eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'CallChain':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: CallChain


Inheritance:

   Object
   |
   +--CallChain

Package:
stx:libbasic3
Category:
System-Debugging-Support
Version:
rev: 1.14 date: 2010/07/04 08:06:27
user: cg
file: CallChain.st directory: libbasic3
module: stx stc-classLibrary: libbasic3
Author:
Claus Gittinger

Description:


This is is used as a companion to MessageTally.
Instances of it are used to represent a calling chain.
They are simply holders for some of the contexts values - no
intelligence here.
(MessageTally could have used the contexts themself, but these
 may create more overhead)


Related information:

    MessageTally
    ProfileTree
    MessageTracer
    AbstractTime

Class protocol:

instance creation
o  callChainTo: aContext stopAtCallerForWhich: aBlock
entered whenever the probed block gets interrupted;
generate a chain of callInfo objects to aContext


Instance protocol:

accessing
o  isBlock
return true, if this is a callChain for a block-context

o  methodClass
return the contexts methods class

o  receiver
return the contexts receiver

o  receiver: r selector: s class: cls
private tally interface - set receiver, selector and class.
the block flag is cleared.

o  receiver: r selector: s class: cls isBlock: blk
private tally interface - set receiver, selector, class
and the block flag.

o  rest
return the chains link

o  rest: r
set the chains link

o  selector
return the contexts selector

comparing
o  = someInfo
return true, if the argument chain is for the same method invocation

o  hash
return an integer useful for hashing on the receiver;
redefined since = is redefined here.



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 29 Mar 2024 14:42:50 GMT