JavaContext.st
author cg
Fri, 08 Aug 1997 10:23:05 +0000
changeset 205 11cd2ad78854
parent 198 5543d1079a4a
child 210 6a64bc70270b
permissions -rw-r--r--
*** empty log message ***
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
     1
Object subclass:#JavaContext
117
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
     2
	instanceVariableNames:'method class sender stack frameBase pc sp'
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
     3
	classVariableNames:''
916f444c5cae intitial checkin
cg
parents:
diff changeset
     4
	poolDictionaries:''
916f444c5cae intitial checkin
cg
parents:
diff changeset
     5
	category:'Java-Support'
916f444c5cae intitial checkin
cg
parents:
diff changeset
     6
!
916f444c5cae intitial checkin
cg
parents:
diff changeset
     7
916f444c5cae intitial checkin
cg
parents:
diff changeset
     8
916f444c5cae intitial checkin
cg
parents:
diff changeset
     9
!JavaContext methodsFor:'ST context mimicri'!
916f444c5cae intitial checkin
cg
parents:
diff changeset
    10
916f444c5cae intitial checkin
cg
parents:
diff changeset
    11
argsAndVars
117
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
    12
    |nArgs nVars|
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
    13
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
    14
    nArgs := method numArgs.
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
    15
    nVars := method numVars.
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
    16
41
eb7974d88088 checkin from browser
cg
parents: 32
diff changeset
    17
    method isStatic ifTrue:[
117
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
    18
        (nArgs + nVars) == 0 ifTrue:[
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
    19
            ^ #()
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
    20
        ].
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
    21
        ^ (stack copyFrom:frameBase to:(frameBase + nArgs + nVars - 1)) asArray
41
eb7974d88088 checkin from browser
cg
parents: 32
diff changeset
    22
    ].
117
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
    23
    ^ (stack copyFrom:(frameBase+1) to:(frameBase + nArgs + nVars)) asArray
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
    24
916f444c5cae intitial checkin
cg
parents:
diff changeset
    25
    "Created: 1.5.1996 / 17:32:44 / cg"
916f444c5cae intitial checkin
cg
parents:
diff changeset
    26
    "Modified: 1.5.1996 / 17:41:50 / cg"
916f444c5cae intitial checkin
cg
parents:
diff changeset
    27
!
916f444c5cae intitial checkin
cg
parents:
diff changeset
    28
916f444c5cae intitial checkin
cg
parents:
diff changeset
    29
canReturn
916f444c5cae intitial checkin
cg
parents:
diff changeset
    30
    ^ false
916f444c5cae intitial checkin
cg
parents:
diff changeset
    31
916f444c5cae intitial checkin
cg
parents:
diff changeset
    32
    "Created: 1.5.1996 / 15:05:36 / cg"
916f444c5cae intitial checkin
cg
parents:
diff changeset
    33
!
916f444c5cae intitial checkin
cg
parents:
diff changeset
    34
156
fee47d32724d *** empty log message ***
cg
parents: 129
diff changeset
    35
findNextContextWithSelector:sel1 or:sel2
fee47d32724d *** empty log message ***
cg
parents: 129
diff changeset
    36
    sender isNil ifTrue:[^ nil].
fee47d32724d *** empty log message ***
cg
parents: 129
diff changeset
    37
    ^ sender findNextContextWithSelector:sel1 or:sel2
fee47d32724d *** empty log message ***
cg
parents: 129
diff changeset
    38
fee47d32724d *** empty log message ***
cg
parents: 129
diff changeset
    39
    "Created: 20.3.1997 / 13:54:01 / cg"
fee47d32724d *** empty log message ***
cg
parents: 129
diff changeset
    40
!
fee47d32724d *** empty log message ***
cg
parents: 129
diff changeset
    41
88
8b66ed9a9a5d *** empty log message ***
cg
parents: 84
diff changeset
    42
hasStackToShow
8b66ed9a9a5d *** empty log message ***
cg
parents: 84
diff changeset
    43
    ^ true
8b66ed9a9a5d *** empty log message ***
cg
parents: 84
diff changeset
    44
!
8b66ed9a9a5d *** empty log message ***
cg
parents: 84
diff changeset
    45
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
    46
isBlockContext
916f444c5cae intitial checkin
cg
parents:
diff changeset
    47
    ^ false
916f444c5cae intitial checkin
cg
parents:
diff changeset
    48
916f444c5cae intitial checkin
cg
parents:
diff changeset
    49
    "Created: 1.5.1996 / 15:05:26 / cg"
916f444c5cae intitial checkin
cg
parents:
diff changeset
    50
!
916f444c5cae intitial checkin
cg
parents:
diff changeset
    51
916f444c5cae intitial checkin
cg
parents:
diff changeset
    52
lineNumber
43
2c4ca2eb8d07 checkin from browser
cg
parents: 41
diff changeset
    53
    |nr|
2c4ca2eb8d07 checkin from browser
cg
parents: 41
diff changeset
    54
2c4ca2eb8d07 checkin from browser
cg
parents: 41
diff changeset
    55
    pc isNil ifTrue:[^0].
2c4ca2eb8d07 checkin from browser
cg
parents: 41
diff changeset
    56
2c4ca2eb8d07 checkin from browser
cg
parents: 41
diff changeset
    57
    nr := method lineNumberForPC:pc.
2c4ca2eb8d07 checkin from browser
cg
parents: 41
diff changeset
    58
    nr isNil ifTrue:[^ 0].
2c4ca2eb8d07 checkin from browser
cg
parents: 41
diff changeset
    59
    ^ nr.
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
    60
916f444c5cae intitial checkin
cg
parents:
diff changeset
    61
    "Created: 1.5.1996 / 15:05:47 / cg"
916f444c5cae intitial checkin
cg
parents:
diff changeset
    62
!
916f444c5cae intitial checkin
cg
parents:
diff changeset
    63
916f444c5cae intitial checkin
cg
parents:
diff changeset
    64
methodClass
916f444c5cae intitial checkin
cg
parents:
diff changeset
    65
    ^ class
916f444c5cae intitial checkin
cg
parents:
diff changeset
    66
916f444c5cae intitial checkin
cg
parents:
diff changeset
    67
    "Created: 1.5.1996 / 15:04:17 / cg"
916f444c5cae intitial checkin
cg
parents:
diff changeset
    68
!
916f444c5cae intitial checkin
cg
parents:
diff changeset
    69
916f444c5cae intitial checkin
cg
parents:
diff changeset
    70
methodHome
916f444c5cae intitial checkin
cg
parents:
diff changeset
    71
    ^ self
916f444c5cae intitial checkin
cg
parents:
diff changeset
    72
916f444c5cae intitial checkin
cg
parents:
diff changeset
    73
    "Created: 1.5.1996 / 15:03:43 / cg"
916f444c5cae intitial checkin
cg
parents:
diff changeset
    74
!
916f444c5cae intitial checkin
cg
parents:
diff changeset
    75
916f444c5cae intitial checkin
cg
parents:
diff changeset
    76
numArgs
916f444c5cae intitial checkin
cg
parents:
diff changeset
    77
    ^ method numArgs
916f444c5cae intitial checkin
cg
parents:
diff changeset
    78
916f444c5cae intitial checkin
cg
parents:
diff changeset
    79
    "Created: 1.5.1996 / 15:04:35 / cg"
916f444c5cae intitial checkin
cg
parents:
diff changeset
    80
!
916f444c5cae intitial checkin
cg
parents:
diff changeset
    81
129
f40775af59a5 checkin from browser
cg
parents: 125
diff changeset
    82
numVars
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
    83
    ^ 0
916f444c5cae intitial checkin
cg
parents:
diff changeset
    84
916f444c5cae intitial checkin
cg
parents:
diff changeset
    85
    "Created: 1.5.1996 / 15:05:03 / cg"
916f444c5cae intitial checkin
cg
parents:
diff changeset
    86
!
916f444c5cae intitial checkin
cg
parents:
diff changeset
    87
916f444c5cae intitial checkin
cg
parents:
diff changeset
    88
receiver
41
eb7974d88088 checkin from browser
cg
parents: 32
diff changeset
    89
    method isStatic ifTrue:[
eb7974d88088 checkin from browser
cg
parents: 32
diff changeset
    90
        ^ method javaClass
eb7974d88088 checkin from browser
cg
parents: 32
diff changeset
    91
    ].
84
cbc2de53e086 *** empty log message ***
cg
parents: 52
diff changeset
    92
    frameBase > stack size ifTrue:[
cbc2de53e086 *** empty log message ***
cg
parents: 52
diff changeset
    93
        ^ nil
cbc2de53e086 *** empty log message ***
cg
parents: 52
diff changeset
    94
    ].
198
5543d1079a4a *** empty log message ***
cg
parents: 156
diff changeset
    95
"/ method displayString printCR.
5543d1079a4a *** empty log message ***
cg
parents: 156
diff changeset
    96
"/ frameBase print. ' -> ' print. (stack at:frameBase) printCR.
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
    97
    ^ stack at:frameBase
916f444c5cae intitial checkin
cg
parents:
diff changeset
    98
916f444c5cae intitial checkin
cg
parents:
diff changeset
    99
    "Created: 1.5.1996 / 15:04:03 / cg"
198
5543d1079a4a *** empty log message ***
cg
parents: 156
diff changeset
   100
    "Modified: 4.8.1997 / 23:39:01 / cg"
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
   101
!
916f444c5cae intitial checkin
cg
parents:
diff changeset
   102
32
0dbaa43a73db checkin from browser
cg
parents: 28
diff changeset
   103
selector            
0dbaa43a73db checkin from browser
cg
parents: 28
diff changeset
   104
    ^ (method name , method signature) asSymbol "/ signatureName
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
   105
916f444c5cae intitial checkin
cg
parents:
diff changeset
   106
    "Created: 1.5.1996 / 15:03:03 / cg"
88
8b66ed9a9a5d *** empty log message ***
cg
parents: 84
diff changeset
   107
!
8b66ed9a9a5d *** empty log message ***
cg
parents: 84
diff changeset
   108
117
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   109
stack
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   110
    ^ stack 
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   111
!
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   112
88
8b66ed9a9a5d *** empty log message ***
cg
parents: 84
diff changeset
   113
stackFrame
117
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   114
sp < frameBase ifTrue:[
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   115
 'oops - negative stackFrame' errorPrintCR.
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   116
 ^ #()
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   117
].
198
5543d1079a4a *** empty log message ***
cg
parents: 156
diff changeset
   118
5543d1079a4a *** empty log message ***
cg
parents: 156
diff changeset
   119
"/ method displayString printCR.
5543d1079a4a *** empty log message ***
cg
parents: 156
diff changeset
   120
"/ frameBase print. ' ... ' print. (sp-1) printCR.
5543d1079a4a *** empty log message ***
cg
parents: 156
diff changeset
   121
"/ (stack collect:[:e | e class name]) printCR.
5543d1079a4a *** empty log message ***
cg
parents: 156
diff changeset
   122
5543d1079a4a *** empty log message ***
cg
parents: 156
diff changeset
   123
"/    method isStatic ifFalse:[
5543d1079a4a *** empty log message ***
cg
parents: 156
diff changeset
   124
"/        ^ stack copyFrom:frameBase+1 to:(sp-1)
5543d1079a4a *** empty log message ***
cg
parents: 156
diff changeset
   125
"/    ].
117
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   126
    ^ stack copyFrom:frameBase to:(sp-1)
198
5543d1079a4a *** empty log message ***
cg
parents: 156
diff changeset
   127
5543d1079a4a *** empty log message ***
cg
parents: 156
diff changeset
   128
    "Modified: 4.8.1997 / 23:39:38 / cg"
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
   129
! !
916f444c5cae intitial checkin
cg
parents:
diff changeset
   130
916f444c5cae intitial checkin
cg
parents:
diff changeset
   131
!JavaContext methodsFor:'accessing'!
916f444c5cae intitial checkin
cg
parents:
diff changeset
   132
916f444c5cae intitial checkin
cg
parents:
diff changeset
   133
class:aJavaClass method:aJavaMethod sender:aContext stack:s frameBase:f
916f444c5cae intitial checkin
cg
parents:
diff changeset
   134
    class := aJavaClass.
916f444c5cae intitial checkin
cg
parents:
diff changeset
   135
    method := aJavaMethod.
916f444c5cae intitial checkin
cg
parents:
diff changeset
   136
    sender := aContext.
916f444c5cae intitial checkin
cg
parents:
diff changeset
   137
    stack := s.
916f444c5cae intitial checkin
cg
parents:
diff changeset
   138
    frameBase := f
916f444c5cae intitial checkin
cg
parents:
diff changeset
   139
916f444c5cae intitial checkin
cg
parents:
diff changeset
   140
    "Modified: 1.5.1996 / 17:39:34 / cg"
916f444c5cae intitial checkin
cg
parents:
diff changeset
   141
    "Created: 1.5.1996 / 17:42:27 / cg"
916f444c5cae intitial checkin
cg
parents:
diff changeset
   142
!
916f444c5cae intitial checkin
cg
parents:
diff changeset
   143
117
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   144
class:aJavaClass method:aJavaMethod sender:aContext stack:s stackPointer:spp frameBase:f
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   145
    class := aJavaClass.
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   146
    method := aJavaMethod.
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   147
    sender := aContext.
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   148
    stack := s.
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   149
    sp := spp.
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   150
    frameBase := f
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   151
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   152
    "Modified: 1.5.1996 / 17:39:34 / cg"
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   153
    "Created: 1.5.1996 / 17:42:27 / cg"
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   154
!
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   155
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
   156
method
916f444c5cae intitial checkin
cg
parents:
diff changeset
   157
    ^ method.
916f444c5cae intitial checkin
cg
parents:
diff changeset
   158
916f444c5cae intitial checkin
cg
parents:
diff changeset
   159
    "Created: 1.5.1996 / 15:00:23 / cg"
916f444c5cae intitial checkin
cg
parents:
diff changeset
   160
    "Modified: 1.5.1996 / 15:00:47 / cg"
916f444c5cae intitial checkin
cg
parents:
diff changeset
   161
!
916f444c5cae intitial checkin
cg
parents:
diff changeset
   162
32
0dbaa43a73db checkin from browser
cg
parents: 28
diff changeset
   163
pc
0dbaa43a73db checkin from browser
cg
parents: 28
diff changeset
   164
    ^ pc
0dbaa43a73db checkin from browser
cg
parents: 28
diff changeset
   165
!
0dbaa43a73db checkin from browser
cg
parents: 28
diff changeset
   166
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
   167
sender
916f444c5cae intitial checkin
cg
parents:
diff changeset
   168
    ^ sender.
916f444c5cae intitial checkin
cg
parents:
diff changeset
   169
916f444c5cae intitial checkin
cg
parents:
diff changeset
   170
    "Modified: 1.5.1996 / 15:00:47 / cg"
916f444c5cae intitial checkin
cg
parents:
diff changeset
   171
    "Created: 1.5.1996 / 15:01:18 / cg"
32
0dbaa43a73db checkin from browser
cg
parents: 28
diff changeset
   172
!
0dbaa43a73db checkin from browser
cg
parents: 28
diff changeset
   173
0dbaa43a73db checkin from browser
cg
parents: 28
diff changeset
   174
setPC:anInteger
0dbaa43a73db checkin from browser
cg
parents: 28
diff changeset
   175
    pc := anInteger
117
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   176
!
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   177
125
c99addd65f73 *** empty log message ***
cg
parents: 117
diff changeset
   178
setPC:pcInteger SP:spInteger
c99addd65f73 *** empty log message ***
cg
parents: 117
diff changeset
   179
    pc := pcInteger.
c99addd65f73 *** empty log message ***
cg
parents: 117
diff changeset
   180
    sp := spInteger.
c99addd65f73 *** empty log message ***
cg
parents: 117
diff changeset
   181
!
c99addd65f73 *** empty log message ***
cg
parents: 117
diff changeset
   182
117
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   183
setSP:anInteger
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   184
    sp := anInteger
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   185
!
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   186
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   187
setStack:aCollection
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   188
    stack := aCollection
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   189
!
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   190
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   191
sp
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   192
    ^ sp
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
   193
! !
916f444c5cae intitial checkin
cg
parents:
diff changeset
   194
916f444c5cae intitial checkin
cg
parents:
diff changeset
   195
!JavaContext methodsFor:'printing & storing'!
916f444c5cae intitial checkin
cg
parents:
diff changeset
   196
916f444c5cae intitial checkin
cg
parents:
diff changeset
   197
printString
205
11cd2ad78854 *** empty log message ***
cg
parents: 198
diff changeset
   198
    |nm mS recCls rec recClsName rnm|
52
1dc41619b6f8 checkin from browser
cg
parents: 43
diff changeset
   199
205
11cd2ad78854 *** empty log message ***
cg
parents: 198
diff changeset
   200
    nm := class fullName.
11cd2ad78854 *** empty log message ***
cg
parents: 198
diff changeset
   201
    (nm startsWith:'java/lang/') ifTrue:[
11cd2ad78854 *** empty log message ***
cg
parents: 198
diff changeset
   202
        nm := class name
52
1dc41619b6f8 checkin from browser
cg
parents: 43
diff changeset
   203
    ] ifFalse:[
205
11cd2ad78854 *** empty log message ***
cg
parents: 198
diff changeset
   204
        (nm startsWith:'java.lang.') ifTrue:[
11cd2ad78854 *** empty log message ***
cg
parents: 198
diff changeset
   205
            nm := class name
52
1dc41619b6f8 checkin from browser
cg
parents: 43
diff changeset
   206
        ].
1dc41619b6f8 checkin from browser
cg
parents: 43
diff changeset
   207
    ].
205
11cd2ad78854 *** empty log message ***
cg
parents: 198
diff changeset
   208
11cd2ad78854 *** empty log message ***
cg
parents: 198
diff changeset
   209
    "/ to avoid confusion with corresponding smalltalk classes ...
11cd2ad78854 *** empty log message ***
cg
parents: 198
diff changeset
   210
    (Smalltalk includesKey:(nm asSymbol)) ifTrue:[
11cd2ad78854 *** empty log message ***
cg
parents: 198
diff changeset
   211
        nm := 'JAVA-' , nm
11cd2ad78854 *** empty log message ***
cg
parents: 198
diff changeset
   212
    ].
11cd2ad78854 *** empty log message ***
cg
parents: 198
diff changeset
   213
52
1dc41619b6f8 checkin from browser
cg
parents: 43
diff changeset
   214
    mS := nm , '::' , method signatureName.
1dc41619b6f8 checkin from browser
cg
parents: 43
diff changeset
   215
1dc41619b6f8 checkin from browser
cg
parents: 43
diff changeset
   216
    rec := self receiver.
1dc41619b6f8 checkin from browser
cg
parents: 43
diff changeset
   217
    recCls := rec class.
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
   218
52
1dc41619b6f8 checkin from browser
cg
parents: 43
diff changeset
   219
    (rec isKindOf:JavaObject) ifFalse:[
1dc41619b6f8 checkin from browser
cg
parents: 43
diff changeset
   220
        rnm := '[' , recCls name , ']'
1dc41619b6f8 checkin from browser
cg
parents: 43
diff changeset
   221
    ] ifTrue:[
1dc41619b6f8 checkin from browser
cg
parents: 43
diff changeset
   222
        recClsName := recCls name.
205
11cd2ad78854 *** empty log message ***
cg
parents: 198
diff changeset
   223
        (Smalltalk includesKey:(recClsName asSymbol)) ifTrue:[
52
1dc41619b6f8 checkin from browser
cg
parents: 43
diff changeset
   224
            rnm := 'JAVA-' , recClsName
1dc41619b6f8 checkin from browser
cg
parents: 43
diff changeset
   225
        ] ifFalse:[
1dc41619b6f8 checkin from browser
cg
parents: 43
diff changeset
   226
            (recCls fullName startsWith:'java/lang/') ifTrue:[
1dc41619b6f8 checkin from browser
cg
parents: 43
diff changeset
   227
                rnm := recClsName
1dc41619b6f8 checkin from browser
cg
parents: 43
diff changeset
   228
            ] ifFalse:[
1dc41619b6f8 checkin from browser
cg
parents: 43
diff changeset
   229
                rnm := recCls fullName
1dc41619b6f8 checkin from browser
cg
parents: 43
diff changeset
   230
            ].
1dc41619b6f8 checkin from browser
cg
parents: 43
diff changeset
   231
        ].
1dc41619b6f8 checkin from browser
cg
parents: 43
diff changeset
   232
    ].
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
   233
52
1dc41619b6f8 checkin from browser
cg
parents: 43
diff changeset
   234
    (rnm ~= nm) ifTrue:[
1dc41619b6f8 checkin from browser
cg
parents: 43
diff changeset
   235
        ^ rnm , '>>' , mS
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
   236
    ].
916f444c5cae intitial checkin
cg
parents:
diff changeset
   237
916f444c5cae intitial checkin
cg
parents:
diff changeset
   238
    ^ mS
916f444c5cae intitial checkin
cg
parents:
diff changeset
   239
916f444c5cae intitial checkin
cg
parents:
diff changeset
   240
    "Created: 1.5.1996 / 15:07:43 / cg"
205
11cd2ad78854 *** empty log message ***
cg
parents: 198
diff changeset
   241
    "Modified: 8.8.1997 / 12:12:25 / cg"
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
   242
! !
916f444c5cae intitial checkin
cg
parents:
diff changeset
   243
129
f40775af59a5 checkin from browser
cg
parents: 125
diff changeset
   244
!JavaContext class methodsFor:'documentation'!
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
   245
916f444c5cae intitial checkin
cg
parents:
diff changeset
   246
version
205
11cd2ad78854 *** empty log message ***
cg
parents: 198
diff changeset
   247
    ^ '$Header: /home/jv/Projects/SmalltalkX/repositories/cvs/stx/libjava/JavaContext.st,v 1.13 1997/08/08 10:23:01 cg Exp $'
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
   248
! !