src/JavaClass.st
branchjk_new_structure
changeset 1495 e661836af8e6
parent 1483 3488eebbc835
child 1502 8caaac85827f
equal deleted inserted replaced
1494:027fd47d7c4b 1495:e661836af8e6
  1298     selector := aMessage selector.
  1298     selector := aMessage selector.
  1299     args := aMessage arguments.
  1299     args := aMessage arguments.
  1300 
  1300 
  1301     (selector includes: $() ifTrue:[
  1301     (selector includes: $() ifTrue:[
  1302         "Java selector, search static methods"    
  1302         "Java selector, search static methods"    
  1303         method := methodDictionary at:selector.
  1303         method := methodDictionary at:selector ifAbsent:[nil].
  1304         method notNil ifTrue:[
  1304         method notNil ifTrue:[
  1305             method isStatic ifTrue:[
  1305             method isStatic ifTrue:[
  1306                 ^ method
  1306                 ^ method
  1307                     valueWithReceiver:self
  1307                     valueWithReceiver:self
  1308                     arguments:args
  1308                     arguments:args
  1334     ] ifFalse:[
  1334     ] ifFalse:[
  1335         ^ method valueWithReceiver: receiver arguments: args
  1335         ^ method valueWithReceiver: receiver arguments: args
  1336     ].
  1336     ].
  1337 
  1337 
  1338     "Created: / 19-09-2011 / 23:33:06 / Jan Kurs <kursjan@fit.cvut.cz>"
  1338     "Created: / 19-09-2011 / 23:33:06 / Jan Kurs <kursjan@fit.cvut.cz>"
  1339     "Modified: / 06-12-2011 / 23:19:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
  1340     "Modified: / 10-04-2012 / 16:47:31 / kursjan"
  1339     "Modified: / 10-04-2012 / 16:47:31 / kursjan"
       
  1340     "Modified: / 12-05-2012 / 21:01:08 / Jan Vrany <jan.vrany@fit.cvut.cz>"
  1341 ! !
  1341 ! !
  1342 
  1342 
  1343 !JavaClass methodsFor:'java initialization'!
  1343 !JavaClass methodsFor:'java initialization'!
  1344 
  1344 
  1345 classInit
  1345 classInit