454
|
1 |
"
|
2151
|
2 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger
|
454
|
3 |
|
|
4 |
This software is furnished under a license and may be used
|
|
5 |
only in accordance with the terms of that license and with the
|
|
6 |
inclusion of the above copyright notice. This software may not
|
|
7 |
be provided or otherwise made available to, or used by, any
|
|
8 |
other person. No title to or ownership of the software is
|
|
9 |
hereby transferred.
|
2151
|
10 |
"
|
713
|
11 |
"{ Package: 'stx:libjava' }"
|
|
12 |
|
427
|
13 |
Array variableSubclass:#JavaLocalVariableTable
|
103
|
14 |
instanceVariableNames:''
|
|
15 |
classVariableNames:''
|
|
16 |
poolDictionaries:''
|
713
|
17 |
category:'Languages-Java-Support'
|
103
|
18 |
!
|
|
19 |
|
454
|
20 |
!JavaLocalVariableTable class methodsFor:'documentation'!
|
|
21 |
|
|
22 |
copyright
|
|
23 |
"
|
2151
|
24 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger
|
454
|
25 |
|
|
26 |
This software is furnished under a license and may be used
|
|
27 |
only in accordance with the terms of that license and with the
|
|
28 |
inclusion of the above copyright notice. This software may not
|
|
29 |
be provided or otherwise made available to, or used by, any
|
|
30 |
other person. No title to or ownership of the software is
|
|
31 |
hereby transferred.
|
2151
|
32 |
"
|
454
|
33 |
! !
|
103
|
34 |
|
|
35 |
!JavaLocalVariableTable methodsFor:'queries'!
|
|
36 |
|
|
37 |
nameForSlot:slot atPC:pc
|
255
|
38 |
|numEntryForSlot entryForSlot|
|
|
39 |
|
|
40 |
numEntryForSlot := 0.
|
|
41 |
self do:[:entry |
|
|
42 |
entry slot == slot ifTrue:[
|
|
43 |
entry startPC <= pc ifTrue:[
|
|
44 |
entry endPC >= pc ifTrue:[
|
|
45 |
^ entry name
|
|
46 |
]
|
|
47 |
].
|
|
48 |
numEntryForSlot := numEntryForSlot + 1.
|
|
49 |
entryForSlot := entry.
|
|
50 |
]
|
|
51 |
].
|
|
52 |
|
|
53 |
"/ not at this pc - but maybe the name is valid
|
|
54 |
"/ for all of the methods lines ...
|
|
55 |
|
|
56 |
numEntryForSlot == 1 ifTrue:[
|
|
57 |
^ entryForSlot name
|
|
58 |
].
|
|
59 |
|
103
|
60 |
^ nil
|
|
61 |
|
255
|
62 |
"Created: / 2.7.1996 / 11:30:09 / cg"
|
|
63 |
"Modified: / 8.1.1998 / 18:56:20 / cg"
|
103
|
64 |
! !
|
|
65 |
|
135
|
66 |
!JavaLocalVariableTable class methodsFor:'documentation'!
|
103
|
67 |
|
|
68 |
version
|
2243
|
69 |
^ '$Header: /cvs/stx/stx/libjava/JavaLocalVariableTable.st,v 1.10 2011-11-24 11:32:40 cg Exp $'
|
2242
|
70 |
!
|
|
71 |
|
|
72 |
version_CVS
|
2243
|
73 |
^ '$Header: /cvs/stx/stx/libjava/JavaLocalVariableTable.st,v 1.10 2011-11-24 11:32:40 cg Exp $'
|
2151
|
74 |
!
|
|
75 |
|
|
76 |
version_SVN
|
2242
|
77 |
^ '§Id: JavaLocalVariableTable.st,v 1.8 2011/08/18 18:42:48 vrany Exp §'
|
2108
|
78 |
! !
|