24
|
1 |
"
|
|
2 |
COPYRIGHT (c) 1995 by Claus Gittinger
|
|
3 |
All Rights Reserved
|
|
4 |
|
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
"
|
|
12 |
|
22
|
13 |
'From Smalltalk/X, Version:2.10.4 on 8-mar-1995 at 15:00:52'!
|
|
14 |
|
|
15 |
Object subclass:#CallChain
|
|
16 |
instanceVariableNames:'receiver selector class isBlock rest'
|
|
17 |
classVariableNames:''
|
|
18 |
poolDictionaries:''
|
24
|
19 |
category:'System-Debugging-Support'
|
22
|
20 |
!
|
|
21 |
|
23
|
22 |
!CallChain class methodsFor:'documentation'!
|
|
23 |
|
24
|
24 |
version
|
|
25 |
"
|
39
|
26 |
$Header: /cvs/stx/stx/libbasic3/CallChain.st,v 1.5 1995-08-11 16:00:50 claus Exp $
|
24
|
27 |
"
|
|
28 |
!
|
|
29 |
|
23
|
30 |
documentation
|
|
31 |
"
|
|
32 |
This is is used as a companion to MessageTally.
|
|
33 |
Instances of it are used to represent a calling chain.
|
|
34 |
(MessageTally could have used the contexts themself, but these
|
|
35 |
may create more overhead)
|
|
36 |
"
|
24
|
37 |
!
|
|
38 |
|
|
39 |
copyright
|
|
40 |
"
|
|
41 |
COPYRIGHT (c) 1995 by Claus Gittinger
|
|
42 |
All Rights Reserved
|
|
43 |
|
|
44 |
This software is furnished under a license and may be used
|
|
45 |
only in accordance with the terms of that license and with the
|
|
46 |
inclusion of the above copyright notice. This software may not
|
|
47 |
be provided or otherwise made available to, or used by, any
|
|
48 |
other person. No title to or ownership of the software is
|
|
49 |
hereby transferred.
|
|
50 |
"
|
23
|
51 |
! !
|
|
52 |
|
22
|
53 |
!CallChain methodsFor:'accessing'!
|
|
54 |
|
|
55 |
rest:r
|
|
56 |
rest := r.
|
|
57 |
!
|
|
58 |
|
|
59 |
rest
|
|
60 |
^ rest
|
|
61 |
!
|
|
62 |
|
|
63 |
selector
|
|
64 |
^ selector
|
|
65 |
!
|
|
66 |
|
|
67 |
methodClass
|
|
68 |
^ class
|
|
69 |
!
|
|
70 |
|
|
71 |
receiver:r selector:s class:cls
|
|
72 |
receiver := r.
|
|
73 |
selector := s.
|
|
74 |
class := cls.
|
|
75 |
isBlock := false.
|
|
76 |
!
|
|
77 |
|
|
78 |
isBlock
|
|
79 |
^ isBlock
|
|
80 |
!
|
|
81 |
|
|
82 |
isBlock:aBoolean
|
|
83 |
isBlock := aBoolean.
|
|
84 |
!
|
|
85 |
|
|
86 |
receiver
|
|
87 |
^ receiver
|
|
88 |
! !
|
|
89 |
|
|
90 |
!CallChain methodsFor:'comparing'!
|
|
91 |
|
|
92 |
= someInfo
|
|
93 |
receiver == someInfo receiver ifFalse:[^ false].
|
|
94 |
selector == someInfo selector ifFalse:[^ false].
|
|
95 |
^ class == someInfo methodClass
|
|
96 |
! !
|