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.16 date: 2021/01/20 10:24:14
user: cg
file: CallChain.st directory: libbasic3
module: stx stc-classLibrary: libbasic3

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 context's values - no
intelligence here.
MessageTally could collect contexts themself, but this
would create much more overhead (materializing all of them)

copyright

COPYRIGHT (c) 1995 by Claus Gittinger All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

Class protocol:

instance creation
o  callChainTo: aContext stopAtCallerForWhich: aBlock
entered whenever the probed block gets interrupted;
generate a chain of callInfo objects to aContext,
collecting all senders up to one for which aBlock returns true.
This block typically checks for the messageTally invoke context
(and its call chain is typically not of interest for the profile)


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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 21 Dec 2024 16:59:09 GMT