author | Claus Gittinger <cg@exept.de> |
Sat, 11 Nov 1995 16:28:41 +0100 | |
changeset 530 | 07d0bce293c9 |
parent 421 | a0807a38319d |
child 580 | 03852d320a48 |
permissions | -rw-r--r-- |
420 | 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 |
||
13 |
Signal subclass:#QuerySignal |
|
14 |
instanceVariableNames:'' |
|
15 |
classVariableNames:'' |
|
16 |
poolDictionaries:'' |
|
17 |
category:'Kernel-Exceptions' |
|
18 |
! |
|
19 |
||
20 |
!QuerySignal class methodsFor:'documentation'! |
|
21 |
||
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 |
" |
|
34 |
! |
|
35 |
||
36 |
version |
|
530
07d0bce293c9
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
421
diff
changeset
|
37 |
^ '$Header: /cvs/stx/stx/libbasic/QuerySignal.st,v 1.3 1995-11-11 15:26:13 cg Exp $' |
420 | 38 |
! |
39 |
||
40 |
documentation |
|
41 |
" |
|
42 |
QuerySignals are like signals, except that they are not accepted |
|
43 |
by handlers for ordinary signals. |
|
44 |
I.e. a signal handler for a normal signal will not handle a query |
|
45 |
signal. Thus, these bypass any Object-ErrorSignal handler. |
|
46 |
" |
|
47 |
! ! |
|
48 |
||
49 |
!QuerySignal methodsFor:'queries'! |
|
50 |
||
51 |
isQuerySignal |
|
52 |
^ true |
|
53 |
! |
|
54 |
||
55 |
accepts:aSignal |
|
56 |
"return true, if the receiver accepts the argument, aSignal. |
|
57 |
(i.e. the receiver is aSignal or a parent of it). False otherwise." |
|
58 |
||
59 |
|s| |
|
60 |
||
421 | 61 |
aSignal isQuerySignal ifFalse:[^ false]. |
420 | 62 |
|
63 |
s := aSignal. |
|
64 |
[s notNil] whileTrue:[ |
|
65 |
self == s ifTrue:[^ true]. |
|
66 |
s := s parent |
|
67 |
]. |
|
68 |
^ false |
|
69 |
! ! |