author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Sun, 16 Dec 2012 21:04:02 +0100 | |
branch | directory_structure_refactoring |
changeset 1899 | 800c0f76adce |
parent 1823 | 41b161f7ec69 |
child 1829 | 991172ecd928 |
permissions | -rw-r--r-- |
877 | 1 |
" |
2 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
|
1155 | 3 |
|
4 |
New code and modifications done at SWING Research Group [1]: |
|
5 |
||
877 | 6 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
7 |
SWING Research Group, Czech Technical University in Prague |
|
8 |
||
9 |
This software is furnished under a license and may be used |
|
10 |
only in accordance with the terms of that license and with the |
|
11 |
inclusion of the above copyright notice. This software may not |
|
12 |
be provided or otherwise made available to, or used by, any |
|
13 |
other person. No title to or ownership of the software is |
|
14 |
hereby transferred. |
|
15 |
||
1155 | 16 |
[1] Code written at SWING Research Group contains a signature |
17 |
of one of the above copright owners. For exact set of such code, |
|
18 |
see the differences between this version and version stx:libjava |
|
19 |
as of 1.9.2010 |
|
877 | 20 |
" |
752 | 21 |
"{ Package: 'stx:libjava' }" |
22 |
||
23 |
LibraryDefinition subclass:#stx_libjava |
|
24 |
instanceVariableNames:'' |
|
25 |
classVariableNames:'' |
|
26 |
poolDictionaries:'' |
|
27 |
category:'* Projects & Packages *' |
|
28 |
! |
|
29 |
||
877 | 30 |
!stx_libjava class methodsFor:'documentation'! |
31 |
||
32 |
copyright |
|
33 |
" |
|
34 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
|
1155 | 35 |
|
36 |
New code and modifications done at SWING Research Group [1]: |
|
37 |
||
877 | 38 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
39 |
SWING Research Group, Czech Technical University in Prague |
|
40 |
||
41 |
This software is furnished under a license and may be used |
|
42 |
only in accordance with the terms of that license and with the |
|
43 |
inclusion of the above copyright notice. This software may not |
|
44 |
be provided or otherwise made available to, or used by, any |
|
45 |
other person. No title to or ownership of the software is |
|
46 |
hereby transferred. |
|
47 |
||
1155 | 48 |
[1] Code written at SWING Research Group contains a signature |
49 |
of one of the above copright owners. For exact set of such code, |
|
50 |
see the differences between this version and version stx:libjava |
|
51 |
as of 1.9.2010 |
|
877 | 52 |
|
53 |
" |
|
54 |
! ! |
|
752 | 55 |
|
756 | 56 |
!stx_libjava class methodsFor:'accessing'! |
57 |
||
765 | 58 |
svnRepositoryUrl |
59 |
||
60 |
^'https://jv@swing.fit.cvut.cz/svn/stx/libjava/branches/jk_new_structure/src' |
|
61 |
||
62 |
! |
|
63 |
||
756 | 64 |
svnRepositoryUrlBase |
65 |
||
66 |
| url | |
|
67 |
url := stx_libjava svnRepositoryUrl. |
|
68 |
url ifNil:[url := 'https://swing.fit.cvut.cz/svn/stx/libjava/trunk/src']. |
|
69 |
(url endsWith: 'src') ifTrue:[url := url copyTo: url size - 4]. |
|
70 |
^url |
|
71 |
||
72 |
"Created: / 08-04-2011 / 16:57:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
73 |
! ! |
|
74 |
||
764
3c1d3f2d29a5
- stx_libjava class>>testSuite now contains also jUnit tests
vranyj1
parents:
763
diff
changeset
|
75 |
!stx_libjava class methodsFor:'accessing - tests'! |
3c1d3f2d29a5
- stx_libjava class>>testSuite now contains also jUnit tests
vranyj1
parents:
763
diff
changeset
|
76 |
|
833
a73edd0970ce
stx_libjava: LookupTests are excluded from standard test suite
vranyj1
parents:
826
diff
changeset
|
77 |
excludedFromTestSuite |
a73edd0970ce
stx_libjava: LookupTests are excluded from standard test suite
vranyj1
parents:
826
diff
changeset
|
78 |
"List of testcases and/or tests excluded from testsuite. |
a73edd0970ce
stx_libjava: LookupTests are excluded from standard test suite
vranyj1
parents:
826
diff
changeset
|
79 |
Entries maybe ClassName or #(ClassName testName) |
a73edd0970ce
stx_libjava: LookupTests are excluded from standard test suite
vranyj1
parents:
826
diff
changeset
|
80 |
" |
a73edd0970ce
stx_libjava: LookupTests are excluded from standard test suite
vranyj1
parents:
826
diff
changeset
|
81 |
^ #( |
a73edd0970ce
stx_libjava: LookupTests are excluded from standard test suite
vranyj1
parents:
826
diff
changeset
|
82 |
LookupTests |
a73edd0970ce
stx_libjava: LookupTests are excluded from standard test suite
vranyj1
parents:
826
diff
changeset
|
83 |
) |
764
3c1d3f2d29a5
- stx_libjava class>>testSuite now contains also jUnit tests
vranyj1
parents:
763
diff
changeset
|
84 |
|
833
a73edd0970ce
stx_libjava: LookupTests are excluded from standard test suite
vranyj1
parents:
826
diff
changeset
|
85 |
"Created: / 03-06-2011 / 17:04:16 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
a73edd0970ce
stx_libjava: LookupTests are excluded from standard test suite
vranyj1
parents:
826
diff
changeset
|
86 |
! |
764
3c1d3f2d29a5
- stx_libjava class>>testSuite now contains also jUnit tests
vranyj1
parents:
763
diff
changeset
|
87 |
|
834 | 88 |
testSuite |
89 |
||
861
fab84333fa2e
Tests reordered, hope this will workaround the segfault
vranyj1
parents:
860
diff
changeset
|
90 |
| suite javaTestCases stTests | |
834 | 91 |
suite := super testSuite. |
1410
0b2580857528
Mauver testsuite excluded from default libjava tests
vranyj1
parents:
1405
diff
changeset
|
92 |
stTests := suite tests. |
862 | 93 |
suite := TestSuite new. |
94 |
suite name: self package. |
|
834 | 95 |
JavaTestsLoader load. |
96 |
||
97 |
javaTestCases := OrderedCollection new. |
|
98 |
||
99 |
Java allClassesDo: |
|
100 |
[:jclass| |
|
1461 | 101 |
(jclass name ~~ #'stx/libjava/tests/JUnit3Tests' |
102 |
and:[jclass name ~~ #'stx/libjava/tests/JUnit4Tests' |
|
834 | 103 |
and:[jclass isTestCaseLike]]) |
104 |
ifTrue: |
|
105 |
[ | tc | |
|
106 |
tc := jclass asTestCase. |
|
107 |
tc isAbstract ifFalse:[javaTestCases add:tc ]]]. |
|
108 |
||
854
e165b3da9adb
Fixes for running tests in separate processes (required since VM often crash)
vranyj1
parents:
851
diff
changeset
|
109 |
javaTestCases do: |
1312 | 110 |
[:each | |
111 |
suite addTests:each buildSuite tests ]. |
|
834 | 112 |
|
862 | 113 |
|
114 |
suite tests addAll: stTests. |
|
115 |
||
834 | 116 |
suite tests withIndexDo: |
837
8f42226d82c0
slightly refactored exceptionTable methods and their callers.. no typechanging side effects
hlopkmar
parents:
834
diff
changeset
|
117 |
[:t :i| |
8f42226d82c0
slightly refactored exceptionTable methods and their callers.. no typechanging side effects
hlopkmar
parents:
834
diff
changeset
|
118 |
Stdout nextPutAll: i printString; space; nextPutAll: t printString; cr]. |
834 | 119 |
|
120 |
^suite |
|
121 |
||
122 |
" |
|
123 |
stx_libjava testSuite |
|
124 |
||
125 |
" |
|
126 |
||
127 |
"Created: / 07-05-2011 / 19:58:20 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
837
8f42226d82c0
slightly refactored exceptionTable methods and their callers.. no typechanging side effects
hlopkmar
parents:
834
diff
changeset
|
128 |
"Modified: / 04-06-2011 / 17:23:05 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
1461 | 129 |
"Modified: / 09-04-2012 / 20:44:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
860 | 130 |
! |
131 |
||
132 |
testSuiteWithoutJavaTests |
|
133 |
||
134 |
^super testSuite. |
|
135 |
||
136 |
"Created: / 21-06-2011 / 17:33:46 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
764
3c1d3f2d29a5
- stx_libjava class>>testSuite now contains also jUnit tests
vranyj1
parents:
763
diff
changeset
|
137 |
! ! |
752 | 138 |
|
139 |
!stx_libjava class methodsFor:'description'! |
|
140 |
||
141 |
excludedFromPreRequisites |
|
142 |
"list all packages which should be ignored in the automatic |
|
143 |
preRequisites scan. See #preRequisites for more." |
|
144 |
||
145 |
^ #( |
|
146 |
) |
|
147 |
! |
|
148 |
||
149 |
preRequisites |
|
150 |
"list all required packages. |
|
151 |
This list can be maintained manually or (better) generated and |
|
152 |
updated by scanning the superclass hierarchies and looking for |
|
153 |
global variable accesses. (the browser has a menu function for that) |
|
154 |
Howevery, often too much is found, and you may want to explicitely |
|
155 |
exclude individual packages in the #excludedFromPrerequisites method." |
|
156 |
||
157 |
^ #( |
|
1820 | 158 |
#'stx:goodies/sunit' "TestSuite - referenced by stx_libjava class>>testSuite " |
159 |
#'stx:libbasic' "LibraryDefinition - superclass of stx_libjava " |
|
1815 | 160 |
#'stx:libbasic2' "BitArray - superclass of extended BooleanArray " |
1793 | 161 |
#'stx:libbasic3' "WrappedMethod - extended " |
1820 | 162 |
#'stx:libcomp' "SourceFileLoader - referenced by GroovyCompiler class>>compile:forClass:inCategory:notifying:install:skipIfSame:silent: " |
752 | 163 |
#'stx:libhtml' "URL - referenced by JavaEmbeddedFrameView>>setupAppletFrameIn:initializeJava: " |
1812 | 164 |
#'stx:libtool' "WorkspaceApplication - referenced by GroovyEvaluator>>evaluate:in:receiver:notifying:logged:ifFail: " |
1820 | 165 |
#'stx:libview' "GraphicsContext - superclass of JavaTopView " |
1805 | 166 |
#'stx:libview2' "GIFReader - referenced by JavaVM class>>_GifImageDecoder_parseImage: " |
1820 | 167 |
#'stx:libwidg' "HVScrollableView - referenced by JavaVM class>>_WTextAreaPeer_create: " |
168 |
#'stx:libwidg2' "ComboBoxView - referenced by JavaVM class>>processEvent: " |
|
752 | 169 |
) |
170 |
! ! |
|
171 |
||
962 | 172 |
!stx_libjava class methodsFor:'description - compilation'! |
173 |
||
174 |
additionalLinkLibraries_bc_dot_mak |
|
175 |
||
993 | 176 |
^ '$(ZLIB_DIR)\$(ZLIB) support\fdlibm\libfdm.lib' |
962 | 177 |
|
987 | 178 |
"Modified: / 07-09-2011 / 17:04:50 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
962 | 179 |
! |
180 |
||
181 |
additionalLinkLibraries_make_dot_proto |
|
182 |
||
990 | 183 |
^ '$(ZLIB_LD_ARG) support/fdlibm/libfdm.a' |
962 | 184 |
|
987 | 185 |
"Modified: / 07-09-2011 / 17:01:57 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
962 | 186 |
! |
187 |
||
188 |
additionalRules_bc_dot_mak |
|
189 |
^ ' |
|
1823 | 190 |
ant: |
1820 | 191 |
ant -f java\build.xml |
192 |
||
962 | 193 |
$(ZLIB): |
194 |
cd $(ZLIB_DIR) |
|
195 |
$(MAKE) $(MAKE_ZLIB_ARG) $(ZLIB) |
|
196 |
cd ..\..\libjava |
|
197 |
||
198 |
$(BZ2LIB): |
|
199 |
cd $(BZ2LIB_DIR) |
|
200 |
$(MAKE) $(MAKE_BZ2LIB_ARG) bz2.lib |
|
201 |
cd ..\..\libjava |
|
987 | 202 |
|
993 | 203 |
support\fdlibm\libfdm.lib: |
987 | 204 |
cd support\fdlibm |
205 |
$(MAKE) -f Makefile.bcc |
|
994 | 206 |
cd ..\.. |
987 | 207 |
|
962 | 208 |
' |
209 |
||
1820 | 210 |
"Modified: / 15-11-2012 / 23:23:33 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
962 | 211 |
! |
212 |
||
213 |
additionalRules_make_dot_proto |
|
214 |
^ ' |
|
1823 | 215 |
ant: |
216 |
ant -f java/build.xml |
|
1820 | 217 |
|
962 | 218 |
zlib: |
219 |
cd $(ZLIB_DIR); $(MAKE) $(MAKE_ZLIB_ARG) |
|
220 |
||
993 | 221 |
support/fdlibm/libfdm.a: |
987 | 222 |
$(MAKE) -C support/fdlibm |
223 |
||
962 | 224 |
' |
225 |
||
1820 | 226 |
"Modified: / 15-11-2012 / 23:22:11 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
962 | 227 |
! |
228 |
||
229 |
additionalTargets_bc_dot_mak |
|
230 |
||
1823 | 231 |
^ '$(ZLIB) support\fdlibm\libfdm.lib ant' |
962 | 232 |
|
1820 | 233 |
"Modified: / 15-11-2012 / 23:20:59 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
962 | 234 |
! |
235 |
||
236 |
additionalTargets_make_dot_proto |
|
237 |
||
1823 | 238 |
^ ' zlib support/fdlibm/libfdm.a ant' |
962 | 239 |
|
240 |
"Created: / 05-09-2006 / 16:05:12 / cg" |
|
1820 | 241 |
"Modified: / 15-11-2012 / 23:20:47 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
962 | 242 |
! |
243 |
||
244 |
localIncludes |
|
987 | 245 |
^ '-I$(ZLIB_DIR) -Isupport/fdlibm' |
962 | 246 |
|
247 |
"Created: / 06-09-2006 / 18:18:15 / cg" |
|
987 | 248 |
"Modified: / 07-09-2011 / 17:03:05 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1744
830b0d6159b8
- performance optimization - compile stx:libjava with +optinline +optinline2
vranyj1
parents:
1720
diff
changeset
|
249 |
! |
830b0d6159b8
- performance optimization - compile stx:libjava with +optinline +optinline2
vranyj1
parents:
1720
diff
changeset
|
250 |
|
830b0d6159b8
- performance optimization - compile stx:libjava with +optinline +optinline2
vranyj1
parents:
1720
diff
changeset
|
251 |
stcOptimizationOptions |
830b0d6159b8
- performance optimization - compile stx:libjava with +optinline +optinline2
vranyj1
parents:
1720
diff
changeset
|
252 |
^ '+optinline +optinline2' |
830b0d6159b8
- performance optimization - compile stx:libjava with +optinline +optinline2
vranyj1
parents:
1720
diff
changeset
|
253 |
|
830b0d6159b8
- performance optimization - compile stx:libjava with +optinline +optinline2
vranyj1
parents:
1720
diff
changeset
|
254 |
"Created: / 23-08-2006 / 11:06:17 / cg" |
962 | 255 |
! ! |
256 |
||
752 | 257 |
!stx_libjava class methodsFor:'description - contents'! |
258 |
||
259 |
classNamesAndAttributes |
|
260 |
"lists the classes which are to be included in the project. |
|
261 |
Each entry in the list may be: a single class-name (symbol), |
|
262 |
or an array-literal consisting of class name and attributes. |
|
263 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..." |
|
264 |
||
265 |
^ #( |
|
266 |
"<className> or (<className> attributes...) in load order" |
|
1402 | 267 |
GroovyCompiler |
268 |
GroovyEvaluator |
|
269 |
GroovyLanguage |
|
270 |
GroovySourceFileWriter |
|
752 | 271 |
Java |
272 |
JavaAnnotation |
|
273 |
JavaAnnotationContainer |
|
274 |
JavaAnnotationDefault |
|
275 |
JavaAnnotationDictionary |
|
276 |
JavaAnnotationValue |
|
869 | 277 |
(JavaAntProjectResource autoload) |
752 | 278 |
JavaArray |
1208 | 279 |
JavaByte |
903 | 280 |
(JavaByteCodeDisassemblerTests autoload) |
752 | 281 |
JavaByteCodeProcessor |
282 |
(JavaByteCodeProcessorTests autoload) |
|
1402 | 283 |
JavaClassAccessor |
1208 | 284 |
(JavaClassLoadingTests autoload) |
903 | 285 |
(JavaClassRefTests autoload) |
1208 | 286 |
JavaClassRegistry |
1402 | 287 |
JavaClassReloader |
752 | 288 |
JavaConstantPool |
1208 | 289 |
JavaConstants |
752 | 290 |
JavaContext |
291 |
JavaDecompiler |
|
292 |
JavaDescriptor |
|
293 |
JavaError |
|
294 |
JavaExceptionTableEntry |
|
879 | 295 |
JavaField |
903 | 296 |
(JavaFieldRefTests autoload) |
1208 | 297 |
(JavaFreshlyInitializedResource autoload) |
913 | 298 |
(JavaInitializedResource autoload) |
903 | 299 |
(JavaInterfaceMethodRefTests autoload) |
752 | 300 |
(JavaJUnitTests autoload) |
301 |
JavaLanguage |
|
754 | 302 |
JavaLibraries |
756 | 303 |
(JavaLibrariesResource autoload) |
752 | 304 |
JavaLocalVariableTable |
305 |
JavaLocalVariableTableEntry |
|
1402 | 306 |
JavaLookup |
1006 | 307 |
JavaMathSupport |
903 | 308 |
(JavaMethodRefTests autoload) |
1208 | 309 |
JavaMonitor |
310 |
(JavaMonitorsTests autoload) |
|
774 | 311 |
JavaNameAndType2 |
752 | 312 |
JavaNativeMemory |
313 |
JavaObject |
|
314 |
JavaObjectDictionary |
|
894 | 315 |
JavaPackage |
752 | 316 |
JavaPopUpView |
317 |
JavaProcess |
|
774 | 318 |
JavaRef2 |
903 | 319 |
(JavaRefMock autoload) |
752 | 320 |
JavaRelease |
758 | 321 |
JavaResolver |
903 | 322 |
(JavaRuntimeConstantPoolTests autoload) |
1208 | 323 |
JavaShort |
752 | 324 |
JavaSlotIndexCache |
1208 | 325 |
JavaSocket |
752 | 326 |
JavaSourceCodeCache |
327 |
JavaSourceFileWriter |
|
328 |
JavaStartup |
|
859
56bc5e063b7d
Common code from JUnitTestCaseProxy and TestletTestCaseProxy moved to a common superclass
vranyj1
parents:
854
diff
changeset
|
329 |
(JavaTestCaseProxy autoload) |
763 | 330 |
JavaTestsLoader |
913 | 331 |
(JavaTestsResource autoload) |
752 | 332 |
JavaTopView |
333 |
(JavaUTF8Tests autoload) |
|
334 |
JavaUnresolvedConstant |
|
1402 | 335 |
JavaUtilities |
752 | 336 |
JavaView |
956
a8b9dec12b4d
Beginning of Java<->Smalltalk types boxing/unboxing
kursjan
parents:
954
diff
changeset
|
337 |
JavaZipSupport |
752 | 338 |
PPJavaNode |
1402 | 339 |
ProxyMethod |
340 |
ProxyMethodCompiler |
|
341 |
ProxyMethodNode |
|
752 | 342 |
SmalltalkAppletContext |
343 |
SmalltalkAppletStub |
|
913 | 344 |
(TestletTestCaseProxy autoload) |
752 | 345 |
#'stx_libjava' |
346 |
JavaAnnotationArrayValue |
|
347 |
JavaAnnotationClassValue |
|
348 |
JavaAnnotationEnumValue |
|
349 |
JavaAnnotationNestedAnnotationValue |
|
350 |
JavaAnnotationPrimitiveValue |
|
1208 | 351 |
JavaBehavior |
752 | 352 |
JavaByteCodeDisassembler |
353 |
JavaByteCodeEnumerator |
|
1402 | 354 |
JavaByteCodeProcessorAdapter |
752 | 355 |
JavaClassAnnotationContainer |
774 | 356 |
JavaClassContentRef2 |
1208 | 357 |
JavaClassReader |
774 | 358 |
JavaClassRef2 |
752 | 359 |
JavaEmbeddedFrameView |
360 |
JavaFieldAnnotationContainer |
|
361 |
JavaFieldDescriptor |
|
1402 | 362 |
JavaFieldDescriptorWithUnionType |
872 | 363 |
JavaInvalidRefError |
1208 | 364 |
JavaMethod |
752 | 365 |
JavaMethodAnnotationContainer |
366 |
JavaMethodDeclarationNode |
|
367 |
JavaMethodDescriptor |
|
781
d27c59bcf38a
added preResolve compatibility method + JavaStringRef - will be used soon
hlopkmar
parents:
780
diff
changeset
|
368 |
JavaStringRef2 |
752 | 369 |
JavaUnhandledExceptionError |
370 |
JavaUnresolvedClassConstant |
|
371 |
JavaUnresolvedStringConstant |
|
1208 | 372 |
JavaVM |
752 | 373 |
JavadocDeclarationNode |
1368 | 374 |
ProxyMethodConditionNode |
375 |
ProxyMethodGuardNode |
|
376 |
ProxyMethodInvocationNode |
|
1402 | 377 |
JavaByteCodePreresolver |
378 |
JavaClass |
|
379 |
JavaFieldRef2 |
|
380 |
JavaMethodRef2 |
|
381 |
JavaMethodWithException |
|
1368 | 382 |
ProxyMethodAndNode |
383 |
ProxyMethodBlockInvocationNode |
|
384 |
ProxyMethodMethodInvocationNode |
|
385 |
ProxyMethodTypeCheckNode |
|
386 |
GroovyClass |
|
1402 | 387 |
JavaInterfaceMethodRef2 |
388 |
JavaMethodWithHandler |
|
1368 | 389 |
ProxyMethodJavaMethodInvocationNode |
390 |
ProxyMethodJavaTypeCheckNode |
|
1402 | 391 |
JavaNativeMethod |
1433 | 392 |
ProxyMethodJavaFieldAccessor |
393 |
ProxyMethodJavaFieldGetter |
|
394 |
ProxyMethodJavaFieldSetter |
|
1440 | 395 |
(JavaExceptionTests autoload) |
1452
69dcb9c33742
Some more support for finally block when a Smalltalk exception is thrown - not yet working correctly
vranyj1
parents:
1440
diff
changeset
|
396 |
#'JavaCompiler_Eclipse' |
1459 | 397 |
JavaMetaclass |
398 |
GroovyMetaclass |
|
1509 | 399 |
(JavaClassReaderTests autoload) |
1515 | 400 |
(JavaRefsAndConstantPoolTestCase autoload) |
1516 | 401 |
JavaNioSupport |
1524 | 402 |
(JavaNativeMemoryTests autoload) |
1548 | 403 |
JavaFinalizationRegistry |
1557 | 404 |
JavaPathElement |
1581
70fbc03d2d82
Java reflection support refactoring - moved to use JavaMirrors
vranyj1
parents:
1579
diff
changeset
|
405 |
JavaMirror |
1698
d32a2a3dce36
- Some more support for non-Java extension methods.
vranyj1
parents:
1697
diff
changeset
|
406 |
JavaClassQuery |
1710
64d6be0adb8e
- JavaStringRef2 replaces itself in CP by resolved string. That will
vranyj1
parents:
1707
diff
changeset
|
407 |
(JUnitTestCaseProxy autoload) |
1755 | 408 |
(JavaLookupResolutionAlgorithmTests autoload) |
409 |
(JavaLookupTests autoload) |
|
410 |
(JavaLookupTestsResource autoload) |
|
752 | 411 |
) |
412 |
! |
|
413 |
||
414 |
extensionMethodNames |
|
415 |
"lists the extension methods which are to be included in the project. |
|
416 |
Entries are 2-element array literals, consisting of class-name and selector." |
|
916 | 417 |
|
418 |
^ #( |
|
1402 | 419 |
Behavior isInterface |
916 | 420 |
BooleanArray isInterface |
1208 | 421 |
CharacterArray asDottedJavaClassName |
422 |
CharacterArray asInternalJavaClassName |
|
423 |
CharacterArray asJavaComponentClassName |
|
424 |
CharacterArray asJavaishClassName |
|
425 |
CharacterArray asNiceJavaClassName |
|
426 |
CharacterArray asSTXInternalJavaClassName |
|
427 |
CharacterArray asSlashedJavaClassName |
|
428 |
CharacterArray isJavaArrayDescriptor |
|
429 |
CharacterArray isJavaPrimitiveTypeDescriptor |
|
430 |
Delay waitWithState: |
|
1402 | 431 |
Object isGroovyClass |
916 | 432 |
Object isJavaArray |
433 |
Object isJavaNameAndType |
|
434 |
Object isJavaPackage |
|
435 |
Object isJavaRef |
|
1402 | 436 |
Object isJavaWrapperClass |
934 | 437 |
Object javaBox: |
1402 | 438 |
Object javaUnwrap: |
439 |
Object javaUnwrapFrom: |
|
440 |
Object javaWrap: |
|
1208 | 441 |
Process clearInterrupted |
442 |
Process isInterrupted |
|
443 |
Process isSleeping |
|
444 |
Process isWaiting |
|
445 |
Process javaInterrupt |
|
446 |
Process setInterrupted |
|
447 |
Set #'java__contains:' |
|
1402 | 448 |
SmallInteger javaUnwrapFrom: |
916 | 449 |
String asArrayOfSubstringsSeparatedBy: |
450 |
UserPreferences javaTestsDirectory |
|
451 |
UserPreferences javaTestsDirectory: |
|
1402 | 452 |
WrappedMethod descriptor |
453 |
WrappedMethod isAbstract |
|
916 | 454 |
ZipArchive nextBytes:of:startingAt:into:startingAt: |
455 |
'Boolean class' isJavaPrimitiveType |
|
456 |
'Boolean class' javaArrayClass |
|
934 | 457 |
'Boolean class' javaBox: |
916 | 458 |
'Boolean class' javaName |
1208 | 459 |
'Boolean class' javaUnbox:onError: |
1402 | 460 |
'Boolean class' javaUnwrap: |
461 |
'Boolean class' javaWrapperClass |
|
916 | 462 |
'BooleanArray class' isInterface |
463 |
'BooleanArray class' isJavaArrayClass |
|
464 |
'BooleanArray class' isJavaReferenceType |
|
1402 | 465 |
'BooleanArray class' javaArrayClass |
916 | 466 |
'BooleanArray class' javaComponentClass |
467 |
'BooleanArray class' javaName |
|
468 |
'ByteArray class' isInterface |
|
469 |
'ByteArray class' isJavaArrayClass |
|
470 |
'ByteArray class' isJavaReferenceType |
|
471 |
'ByteArray class' javaArrayClass |
|
472 |
'ByteArray class' javaComponentClass |
|
473 |
'ByteArray class' javaName |
|
474 |
'Character class' isJavaPrimitiveType |
|
475 |
'Character class' javaArrayClass |
|
934 | 476 |
'Character class' javaBox: |
916 | 477 |
'Character class' javaName |
1208 | 478 |
'Character class' javaUnbox:onError: |
1402 | 479 |
'Character class' javaWrapperClass |
916 | 480 |
'CharacterArray class' decodeFromJavaUTF8: |
481 |
'CharacterArray class' fromJavaUTF8Bytes: |
|
482 |
'CharacterArray class' isJavaArrayClass |
|
483 |
'CharacterArray class' javaArrayClass |
|
484 |
'CharacterArray class' javaComponentClass |
|
1402 | 485 |
'ConfigurableFeatures class' hasJavaSupport |
916 | 486 |
'DoubleArray class' isInterface |
487 |
'DoubleArray class' isJavaArrayClass |
|
488 |
'DoubleArray class' isJavaReferenceType |
|
1402 | 489 |
'DoubleArray class' javaArrayClass |
916 | 490 |
'DoubleArray class' javaComponentClass |
491 |
'DoubleArray class' javaName |
|
492 |
'Float class' isJavaPrimitiveType |
|
493 |
'Float class' javaArrayClass |
|
934 | 494 |
'Float class' javaBox: |
916 | 495 |
'Float class' javaName |
1402 | 496 |
'Float class' javaWrapperClass |
916 | 497 |
'FloatArray class' isInterface |
498 |
'FloatArray class' isJavaArrayClass |
|
499 |
'FloatArray class' isJavaReferenceType |
|
1402 | 500 |
'FloatArray class' javaArrayClass |
916 | 501 |
'FloatArray class' javaComponentClass |
502 |
'FloatArray class' javaName |
|
503 |
'Integer class' isJavaPrimitiveType |
|
504 |
'Integer class' javaArrayClass |
|
934 | 505 |
'Integer class' javaBox: |
916 | 506 |
'Integer class' javaName |
1208 | 507 |
'Integer class' javaUnbox:onError: |
508 |
'Integer class' javaUnbox:onError:min:max: |
|
1402 | 509 |
'Integer class' javaWrapperClass |
916 | 510 |
'LargeInteger class' isJavaPrimitiveType |
511 |
'LargeInteger class' javaArrayClass |
|
934 | 512 |
'LargeInteger class' javaBox: |
916 | 513 |
'LargeInteger class' javaName |
1208 | 514 |
'LargeInteger class' javaUnbox:onError: |
1402 | 515 |
'LargeInteger class' javaWrapperClass |
916 | 516 |
'Object class' isJavaArrayClass |
517 |
'Object class' isJavaClassType |
|
1673
b9a05759b7fd
Moved Object class>>isJavaPrimitiveType to Behavior
vranyj1
parents:
1656
diff
changeset
|
518 |
Behavior isJavaPrimitiveType |
916 | 519 |
'Object class' isJavaReferenceType |
520 |
'Object class' isJavaType |
|
1402 | 521 |
'ProjectDefinition class' javaClassPath |
522 |
'ProjectDefinition class' javaSourcePath |
|
916 | 523 |
'ShortFloat class' isJavaPrimitiveType |
524 |
'ShortFloat class' javaArrayClass |
|
934 | 525 |
'ShortFloat class' javaBox: |
916 | 526 |
'ShortFloat class' javaName |
1402 | 527 |
'ShortFloat class' javaWrapperClass |
916 | 528 |
'SignedIntegerArray class' isInterface |
529 |
'SignedIntegerArray class' isJavaArrayClass |
|
530 |
'SignedIntegerArray class' javaArrayClass |
|
531 |
'SignedIntegerArray class' javaComponentClass |
|
532 |
'SignedIntegerArray class' javaName |
|
533 |
'SignedLongIntegerArray class' isInterface |
|
534 |
'SignedLongIntegerArray class' isJavaArrayClass |
|
535 |
'SignedLongIntegerArray class' isJavaReferenceType |
|
934 | 536 |
'SignedLongIntegerArray class' javaArrayClass |
916 | 537 |
'SignedLongIntegerArray class' javaComponentClass |
538 |
'SignedLongIntegerArray class' javaName |
|
1402 | 539 |
'SignedWordArray class' isJavaArrayClass |
540 |
'SignedWordArray class' isJavaReferenceType |
|
541 |
'SignedWordArray class' javaComponentClass |
|
542 |
'SignedWordArray class' javaName |
|
916 | 543 |
'UndefinedObject class' isJavaPrimitiveType |
544 |
'UndefinedObject class' javaName |
|
545 |
'WordArray class' isInterface |
|
546 |
'WordArray class' isJavaArrayClass |
|
547 |
'WordArray class' isJavaReferenceType |
|
548 |
'WordArray class' javaArrayClass |
|
549 |
'WordArray class' javaComponentClass |
|
550 |
'WordArray class' javaName |
|
1433 | 551 |
'Boolean class' javaWrap: |
1495
e661836af8e6
Interop fixes for long and double arguments (take two slots in arg vector)
vranyj1
parents:
1469
diff
changeset
|
552 |
ProgrammingLanguage isGroovy |
e661836af8e6
Interop fixes for long and double arguments (take two slots in arg vector)
vranyj1
parents:
1469
diff
changeset
|
553 |
ProgrammingLanguage isJavaLike |
1557 | 554 |
UserPreferences javaClassPath |
555 |
UserPreferences javaClassPath: |
|
556 |
UserPreferences javaRelease |
|
557 |
UserPreferences javaReleaseSelector |
|
558 |
UserPreferences javaReleaseSelector: |
|
559 |
UserPreferences javaSourcePath |
|
560 |
UserPreferences javaSourcePath: |
|
1581
70fbc03d2d82
Java reflection support refactoring - moved to use JavaMirrors
vranyj1
parents:
1579
diff
changeset
|
561 |
Class javaMirror |
70fbc03d2d82
Java reflection support refactoring - moved to use JavaMirrors
vranyj1
parents:
1579
diff
changeset
|
562 |
Class javaMirrorClass |
70fbc03d2d82
Java reflection support refactoring - moved to use JavaMirrors
vranyj1
parents:
1579
diff
changeset
|
563 |
ExecutableFunction isJavaConstructor |
1589 | 564 |
UserPreferences javaClassPathDecoded |
565 |
UserPreferences javaSourcePathDecoded |
|
1615 | 566 |
Process isParked |
567 |
Semaphore parkWithTimeoutMs: |
|
1617 | 568 |
Object isSocket |
569 |
Socket isSocket |
|
570 |
Socket reOpenIfPossible |
|
1648 | 571 |
Method isStatic |
1649
0af82006c0b2
- some more support for calling Smalltalk from Groovy. Crashes VM now :-)
vranyj1
parents:
1648
diff
changeset
|
572 |
Class classLoader |
0af82006c0b2
- some more support for calling Smalltalk from Groovy. Crashes VM now :-)
vranyj1
parents:
1648
diff
changeset
|
573 |
Method isAbstract |
0af82006c0b2
- some more support for calling Smalltalk from Groovy. Crashes VM now :-)
vranyj1
parents:
1648
diff
changeset
|
574 |
Method javaClass |
1656
c6fee8f3a640
- fixes for Groovy-Smalltalk interop - SmalltalkEvaluator example works
vranyj1
parents:
1649
diff
changeset
|
575 |
Class lookupMethodByNameAndType: |
1691 | 576 |
Object getJavaLockWord |
577 |
Object getJavaMonitor |
|
1807 | 578 |
Object javaWrapRequired |
916 | 579 |
) |
752 | 580 |
! ! |
581 |
||
1371 | 582 |
!stx_libjava class methodsFor:'description - java'! |
583 |
||
584 |
javaClassPath |
|
585 |
||
586 |
<javaclasspath> |
|
587 |
||
588 |
^{ |
|
589 |
self packageDirectory / 'java' / 'bin' . |
|
590 |
self packageDirectory / 'java' / 'libs' / '*.jar' |
|
591 |
} |
|
592 |
||
593 |
"Created: / 17-11-2011 / 23:00:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
594 |
! |
|
595 |
||
596 |
javaSourcePath |
|
597 |
||
598 |
<javasourcepath> |
|
599 |
||
600 |
^{ |
|
601 |
self packageDirectory / 'java' / 'src' . |
|
602 |
self packageDirectory / 'java' / 'libs-src' / '*.jar' . |
|
603 |
} |
|
604 |
||
605 |
"Created: / 17-11-2011 / 23:01:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
606 |
! ! |
|
1276
5a302466ecb8
Default class path hanling changed, now each Smalltalk/X package can define its own class path, that is included initial class path
vranyj1
parents:
1275
diff
changeset
|
607 |
|
752 | 608 |
!stx_libjava class methodsFor:'description - project information'! |
609 |
||
1007 | 610 |
applicationIconFileName |
611 |
"Return the name (without suffix) of an icon-file (the app's icon); will be included in the rc-resource file" |
|
752 | 612 |
|
613 |
^ nil |
|
614 |
"/ ^ self applicationName |
|
615 |
! |
|
616 |
||
1007 | 617 |
companyName |
618 |
"Return a companyname which will appear in <lib>.rc" |
|
752 | 619 |
|
1822 | 620 |
^ 'eXept Software AG & SWING Research Group' |
621 |
||
622 |
"Modified: / 15-11-2012 / 23:51:59 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
752 | 623 |
! |
624 |
||
1007 | 625 |
description |
626 |
"Description string which will appear in vc.def / bc.def" |
|
752 | 627 |
|
1822 | 628 |
^ 'Java support for Smalltalk/X' |
629 |
||
630 |
"Modified: / 15-11-2012 / 23:51:48 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
752 | 631 |
! |
632 |
||
1007 | 633 |
legalCopyright |
634 |
"Copyright string which will appear in <lib>.rc" |
|
752 | 635 |
|
1822 | 636 |
^ 'Copyright Claus Gittinger 1988-2011\nCopyright eXept Software AG 1998-2011\nCopyright Jan Vrany, Jan Kurs and Marcel Hlopko\n SWING Research Group, Czech Technical University In Prague' |
877 | 637 |
|
1822 | 638 |
"Modified: / 15-11-2012 / 23:51:35 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
752 | 639 |
! |
640 |
||
1007 | 641 |
productName |
642 |
"Return product name which will appear in <lib>.rc" |
|
752 | 643 |
|
644 |
^ 'Smalltalk/X' |
|
645 |
! ! |
|
646 |
||
647 |
!stx_libjava class methodsFor:'description - svn'! |
|
648 |
||
1007 | 649 |
svnRepositoryUrlString |
1437 | 650 |
"Return a SVN repository URL of myself. |
754 | 651 |
(Generated since 2011-04-08) |
1437 | 652 |
Do not make the string shorter!!!!!! We have to use fixed-length keyword!!!!!! |
754 | 653 |
" |
654 |
||
1437 | 655 |
^ '$URL:: $' |
754 | 656 |
! |
657 |
||
752 | 658 |
svnRevisionNr |
659 |
"Return a SVN revision number of myself. |
|
660 |
This number is updated after a commit" |
|
661 |
||
1822 | 662 |
^ "$SVN-Revision:"'2197 '"$" |
752 | 663 |
! ! |
664 |
||
665 |
!stx_libjava class methodsFor:'file generation'! |
|
666 |
||
1007 | 667 |
basicFileNamesToGenerat |
668 |
"answer a dictionary (filename -> generator method) with all the files, that have to be generated for this |
|
752 | 669 |
package" |
670 |
||
671 |
|dict| |
|
672 |
||
673 |
dict := super basicFileNamesToGenerate. |
|
674 |
||
675 |
dict |
|
676 |
at:'builder/package.deps.rake' put: #'generate_package_dot_deps_dot_rake'. |
|
677 |
||
678 |
^ dict. |
|
679 |
||
680 |
"Created: / 11-03-2011 / 09:32:01 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
681 |
! ! |
|
682 |
||
683 |
!stx_libjava class methodsFor:'documentation'! |
|
684 |
||
685 |
version_SVN |
|
686 |
^ '$Id$' |
|
687 |
! ! |