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 |
|
120
|
13 |
Object subclass:#CallChain
|
236
|
14 |
instanceVariableNames:'receiver selector class isBlock rest'
|
|
15 |
classVariableNames:''
|
|
16 |
poolDictionaries:''
|
|
17 |
category:'System-Debugging-Support'
|
22
|
18 |
!
|
|
19 |
|
23
|
20 |
!CallChain class methodsFor:'documentation'!
|
|
21 |
|
24
|
22 |
copyright
|
|
23 |
"
|
|
24 |
COPYRIGHT (c) 1995 by Claus Gittinger
|
|
25 |
All Rights Reserved
|
|
26 |
|
|
27 |
This software is furnished under a license and may be used
|
|
28 |
only in accordance with the terms of that license and with the
|
|
29 |
inclusion of the above copyright notice. This software may not
|
|
30 |
be provided or otherwise made available to, or used by, any
|
|
31 |
other person. No title to or ownership of the software is
|
|
32 |
hereby transferred.
|
|
33 |
"
|
88
|
34 |
!
|
|
35 |
|
|
36 |
documentation
|
|
37 |
"
|
|
38 |
This is is used as a companion to MessageTally.
|
|
39 |
Instances of it are used to represent a calling chain.
|
261
|
40 |
They are simply holders for some of the contexts values - no
|
|
41 |
intelligence here.
|
88
|
42 |
(MessageTally could have used the contexts themself, but these
|
|
43 |
may create more overhead)
|
236
|
44 |
|
|
45 |
[author:]
|
|
46 |
Claus Gittinger
|
|
47 |
|
|
48 |
[see also:]
|
261
|
49 |
MessageTally ProfileTree
|
236
|
50 |
MessageTracer
|
|
51 |
AbstractTime
|
88
|
52 |
"
|
23
|
53 |
! !
|
|
54 |
|
22
|
55 |
!CallChain methodsFor:'accessing'!
|
|
56 |
|
261
|
57 |
isBlock
|
|
58 |
"return true, if this is a callChain for a block-context"
|
|
59 |
|
88
|
60 |
^ isBlock
|
22
|
61 |
|
261
|
62 |
"Modified: 18.5.1996 / 18:52:05 / cg"
|
22
|
63 |
!
|
|
64 |
|
|
65 |
methodClass
|
261
|
66 |
"return the contexts methods class"
|
|
67 |
|
22
|
68 |
^ class
|
261
|
69 |
|
|
70 |
"Modified: 18.5.1996 / 18:54:04 / cg"
|
22
|
71 |
!
|
|
72 |
|
88
|
73 |
receiver
|
261
|
74 |
"return the contexts receiver"
|
|
75 |
|
88
|
76 |
^ receiver
|
261
|
77 |
|
|
78 |
"Modified: 18.5.1996 / 18:54:12 / cg"
|
88
|
79 |
!
|
|
80 |
|
22
|
81 |
receiver:r selector:s class:cls
|
261
|
82 |
"private tally interface - set receiver, selector and class.
|
|
83 |
the block flag is cleared."
|
|
84 |
|
22
|
85 |
receiver := r.
|
|
86 |
selector := s.
|
|
87 |
class := cls.
|
|
88 |
isBlock := false.
|
261
|
89 |
|
|
90 |
"Modified: 18.5.1996 / 18:54:42 / cg"
|
|
91 |
!
|
|
92 |
|
|
93 |
receiver:r selector:s class:cls isBlock:blk
|
|
94 |
"private tally interface - set receiver, selector, class
|
|
95 |
and the block flag."
|
|
96 |
|
|
97 |
receiver := r.
|
|
98 |
selector := s.
|
|
99 |
class := cls.
|
|
100 |
isBlock := blk.
|
|
101 |
|
|
102 |
"Created: 18.5.1996 / 18:52:34 / cg"
|
|
103 |
"Modified: 18.5.1996 / 18:54:58 / cg"
|
22
|
104 |
!
|
|
105 |
|
88
|
106 |
rest
|
261
|
107 |
"return the chains link"
|
|
108 |
|
88
|
109 |
^ rest
|
261
|
110 |
|
|
111 |
"Modified: 18.5.1996 / 18:55:24 / cg"
|
22
|
112 |
!
|
|
113 |
|
88
|
114 |
rest:r
|
261
|
115 |
"set the chains link"
|
|
116 |
|
88
|
117 |
rest := r.
|
261
|
118 |
|
|
119 |
"Modified: 18.5.1996 / 18:55:19 / cg"
|
22
|
120 |
!
|
|
121 |
|
88
|
122 |
selector
|
261
|
123 |
"return the contexts selector"
|
|
124 |
|
88
|
125 |
^ selector
|
261
|
126 |
|
|
127 |
"Modified: 18.5.1996 / 18:55:11 / cg"
|
22
|
128 |
! !
|
|
129 |
|
|
130 |
!CallChain methodsFor:'comparing'!
|
|
131 |
|
|
132 |
= someInfo
|
261
|
133 |
"return true, if the argument chain is for the same method invocation"
|
|
134 |
|
22
|
135 |
receiver == someInfo receiver ifFalse:[^ false].
|
|
136 |
selector == someInfo selector ifFalse:[^ false].
|
|
137 |
^ class == someInfo methodClass
|
261
|
138 |
|
|
139 |
"Modified: 18.5.1996 / 18:55:47 / cg"
|
22
|
140 |
! !
|
88
|
141 |
|
98
|
142 |
!CallChain class methodsFor:'documentation'!
|
|
143 |
|
|
144 |
version
|
261
|
145 |
^ '$Header: /cvs/stx/stx/libbasic3/CallChain.st,v 1.12 1996-05-18 17:05:34 cg Exp $'
|
98
|
146 |
! !
|