home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 September / Chip_2002-09_cd1.bin / ctenari / Prochazka / data / lib / stdobjs.zbc < prev    next >
Text File  |  2002-07-25  |  12KB  |  553 lines

  1. ;This is machine generated file, do not edit
  2. ;Generated by JavaScript
  3. interface Number.class
  4. native op:new Number_op_new_1_
  5. native rand static_Number_rand_0
  6. native rand static_Number_rand_1_int
  7. end
  8.  
  9. interface Number.instance
  10. native op:add Number_op_add_1_Number
  11. native op:sub Number_op_sub_1_Number
  12. native op:mul Number_op_mul_1_Number
  13. native op:div Number_op_div_1_Number
  14. native op:mod Number_op_mod_1_Number
  15. native op:eq Number_op_eq_1_Number
  16. native op:neq Number_op_neq_1_Number
  17. native op:lt Number_op_lt_1_Number
  18. native op:gt Number_op_gt_1_Number
  19. native op:let Number_op_let_1_Number
  20. native op:get Number_op_get_1_Number
  21. native op:inc Number_op_inc_0
  22. native op:dec Number_op_dec_0
  23. native sin Number_sin_0
  24. native cos Number_cos_0
  25. native tan Number_tan_0
  26. native asin Number_asin_0
  27. native acos Number_acos_0
  28. native atan Number_atan_0
  29. native log Number_log_0
  30. native exp Number_exp_0
  31. native power Number_power_1_float
  32. native abs Number_abs_0
  33. native sgn Number_sgn_0
  34. native round Number_round_0
  35. end
  36.  
  37. interface Math.class
  38. native get:PI static_Math_get_PI_0
  39. native get:E static_Math_get_E_0
  40. native min static_Math_min_0
  41. native max static_Math_max_0
  42. end
  43.  
  44. interface Math.instance
  45. end
  46.  
  47. interface MultiIndex.class
  48. native op:new MultiIndex_op_new_0
  49. native op:new MultiIndex_op_new_1_Array
  50. end
  51.  
  52. interface MultiIndex.instance
  53. native op:get:index MultiIndex_op_get_index_1_int
  54. native op:set:index MultiIndex_op_set_index_2_int_int
  55. native reverse MultiIndex_reverse_0
  56. native add MultiIndex_add_1_int
  57. native toArray MultiIndex_toArray_0
  58. native clone MultiIndex_clone_0
  59. end
  60.  
  61. interface CharMap.class
  62. native op:new CharMap_op_new_0
  63. end
  64.  
  65. interface CharMap.instance
  66. native get:source CharMap_get_source_0
  67. native set:source CharMap_set_source_1_string
  68. native get:target CharMap_get_target_0
  69. native set:target CharMap_set_target_1_string
  70. end
  71.  
  72. interface String.class
  73. native op:new String_op_new_1_Object
  74. end
  75.  
  76. interface String.instance
  77. native op:add String_op_add_1_string
  78. native op:eq String_op_eq_1_string
  79. native op:neq String_op_neq_1_string
  80. native op:lt String_op_lt_1_string
  81. native op:gt String_op_gt_1_string
  82. native op:let String_op_let_1_string
  83. native op:get String_op_get_1_string
  84. native get:length String_get_length_0
  85. native op:get:index String_op_get_index_1_int
  86. native beginsWith String_beginsWith_1_string
  87. native endsWith String_endsWith_1_string
  88. native charAt String_charAt_1_int
  89. native substr String_substr_2_int_int
  90. native substring String_substring_2_int_int
  91. native toUpperCase String_toUpperCase_0
  92. native toLowerCase String_toLowerCase_0
  93. native trim String_trim_0
  94. native indexOf String_indexOf_1_string
  95. native split String_split_1_string
  96. native save String_save_1_string
  97. native mapBeginsWith String_mapBeginsWith_2_string_CharMap
  98. end
  99.  
  100. interface ArrayIterator.class
  101. end
  102.  
  103. interface ArrayIterator.instance
  104. native getValue ArrayIterator_getValue_0
  105. native moveNext ArrayIterator_moveNext_0
  106. end
  107.  
  108. interface Array.class
  109. native op:new Array_op_new_0
  110. end
  111.  
  112. interface Array.instance
  113. native op:get:index Array_op_get_index_1_Number
  114. native op:set:index Array_op_set_index_2_Number_Object
  115. native push Array_push_0
  116. native get:length Array_get_length_0
  117. native get:count Array_get_count_0
  118. native pop Array_pop_0
  119. native reverse Array_reverse_0
  120. native shift Array_shift_0
  121. native join Array_join_1_String
  122. native sort Array_sort_1_Object
  123. native sort Array_sort_0
  124. native erase Array_erase_2_Number_Number
  125. native insert Array_insert_2_Number_Object
  126. native search Array_search_1_
  127. native remove Array_remove_1_
  128. native reOrder Array_reOrder_1_MultiIndex
  129. native clear Array_clear_0
  130. native get:last Array_get_last_0
  131. native getIterator Array_getIterator_0
  132. native clone Array_clone_0
  133. native assign Array_assign_1_Array
  134. end
  135.  
  136. interface Matrix.class
  137. native op:new Matrix_op_new_0
  138. end
  139.  
  140. interface Matrix.instance
  141. native op:get:index Matrix_op_get_index_0
  142. native op:set:index Matrix_op_set_index_1_Object
  143. native fill Matrix_fill_1_
  144. native search Matrix_search_1_
  145. native clone Matrix_clone_0
  146. end
  147.  
  148. interface StringBuffer.class
  149. native op:new StringBuffer_op_new_0
  150. end
  151.  
  152. interface StringBuffer.instance
  153. native add StringBuffer_add_1_string
  154. native erase StringBuffer_erase_2_int_int
  155. end
  156.  
  157. interface System.class
  158. end
  159.  
  160. interface System.instance
  161. native createArray System_createArray_0
  162. native getStackTrace System_getStackTrace_0
  163. native createDelegate System_createDelegate_2_string_
  164. native op:get:prop System_op_get_prop_1_string
  165. native op:set:prop System_op_set_prop_2_string_Object
  166. end
  167.  
  168. interface Date.class
  169. native op:new Date_op_new_0
  170. end
  171.  
  172. interface Date.instance
  173. native get:day Date_get_day_0
  174. native set:day Date_set_day_1_Number
  175. native get:month Date_get_month_0
  176. native set:month Date_set_month_1_Number
  177. native get:year Date_get_year_0
  178. native set:year Date_set_year_1_Number
  179. native get:hours Date_get_hours_0
  180. native set:hours Date_set_hours_1_Number
  181. native get:minutes Date_get_minutes_0
  182. native set:minutes Date_set_minutes_1_Number
  183. native get:seconds Date_get_seconds_0
  184. native set:seconds Date_set_seconds_1_Number
  185. native get:asString Date_get_asString_0
  186. end
  187.  
  188. interface File.class
  189. native op:new File_op_new_1_string
  190. native get:root static_File_get_root_0
  191. native list static_File_list_1_string
  192. end
  193.  
  194. interface File.instance
  195. native isFile File_isFile_0
  196. native isDirectory File_isDirectory_0
  197. native op:div File_op_div_1_string
  198. native listFiles File_listFiles_1_string
  199. native mkdir File_mkdir_0
  200. native mkdirs File_mkdirs_0
  201. native relTo File_relTo_1_string
  202. native getDirectory File_getDirectory_0
  203. native op:mod File_op_mod_1_string
  204. native load File_load_0
  205. native copyTo File_copyTo_1_string
  206. native renameTo File_renameTo_1_string
  207. native hasExt File_hasExt_1_string
  208. end
  209.  
  210. interface StoreIterator.class
  211. end
  212.  
  213. interface StoreIterator.instance
  214. native moveNext StoreIterator_moveNext_0
  215. native getValue StoreIterator_getValue_0
  216. end
  217.  
  218. interface Store.class
  219. native op:new Store_op_new_0
  220. end
  221.  
  222. interface Store.instance
  223. native op:get:prop Store_op_get_prop_1_string
  224. native op:set:prop Store_op_set_prop_2_string_Object
  225. native op:get:index Store_op_get_index_1_string
  226. native op:set:index Store_op_set_index_2_string_Object
  227. native getIterator Store_getIterator_0
  228. end
  229.  
  230. interface Exception.class
  231. native op:new Exception_op_new_1_string
  232. end
  233.  
  234. interface Exception.instance
  235. end
  236.  
  237. interface VarListIterator.class
  238. end
  239.  
  240. interface VarListIterator.instance
  241. native moveNext VarListIterator_moveNext_0
  242. native getValue VarListIterator_getValue_0
  243. end
  244.  
  245. interface VarList.class
  246. native op:new VarList_op_new_0
  247. end
  248.  
  249. interface VarList.instance
  250. native getIterator VarList_getIterator_0
  251. native clear VarList_clear_0
  252. native eraseVar VarList_eraseVar_1_string
  253. end
  254.  
  255. interface XMLIterator.class
  256. end
  257.  
  258. interface XMLIterator.instance
  259. native getValue XMLIterator_getValue_0
  260. native moveNext XMLIterator_moveNext_0
  261. end
  262.  
  263. interface XMLNode.class
  264. native op:new XMLNode_op_new_0
  265. native load static_XMLNode_load_1_string
  266. end
  267.  
  268. interface XMLNode.instance
  269. native op:get:index XMLNode_op_get_index_1_MultiIndex
  270. native get:name XMLNode_get_name_0
  271. native set:name XMLNode_set_name_1_string
  272. native get:text XMLNode_get_text_0
  273. native set:text XMLNode_set_text_1_string
  274. native op:get:index XMLNode_op_get_index_1_int
  275. native getSub XMLNode_getSub_1_string
  276. native at XMLNode_at_1_int
  277. native add XMLNode_add_0
  278. native forceSub XMLNode_forceSub_1_string
  279. native eraseAt XMLNode_eraseAt_1_int
  280. native eraseSub XMLNode_eraseSub_1_string
  281. native assign XMLNode_assign_1_XMLNode
  282. native get:count XMLNode_get_count_0
  283. native get:varCount XMLNode_get_varCount_0
  284. native varAt XMLNode_varAt_1_int
  285. native varNameAt XMLNode_varNameAt_1_int
  286. native getVar XMLNode_getVar_1_string
  287. native setVar XMLNode_setVar_2_string_string
  288. native sort XMLNode_sort_1_string
  289. native copy1 XMLNode_copy1_0
  290. native op:get:prop XMLNode_op_get_prop_1_string
  291. native op:set:prop XMLNode_op_set_prop_2_string_string
  292. native op:get:elem XMLNode_op_get_elem_1_string
  293. native save XMLNode_save_1_string
  294. native clear XMLNode_clear_0
  295. native load XMLNode_load_1_string
  296. native saveVars XMLNode_saveVars_1_VarList
  297. native loadVars XMLNode_loadVars_1_VarList
  298. native clearVars XMLNode_clearVars_0
  299. native eraseVar XMLNode_eraseVar_1_string
  300. native nodeAt XMLNode_nodeAt_1_MultiIndex
  301. native op:eq XMLNode_op_eq_1_XMLNode
  302. native op:neq XMLNode_op_neq_1_XMLNode
  303. native equalTo XMLNode_equalTo_1_XMLNode
  304. native weekEqualTo XMLNode_weekEqualTo_1_XMLNode
  305. native isVar XMLNode_isVar_1_string
  306. native isSub XMLNode_isSub_1_string
  307. native getIterator XMLNode_getIterator_0
  308. native clone XMLNode_clone_0
  309. end
  310.  
  311. interface Delegate.class
  312. end
  313.  
  314. interface Delegate.instance
  315. native op:call Delegate_op_call_0
  316. end
  317.  
  318. interface QuickSorter.class
  319. native op:new QuickSorter_op_new_0
  320. end
  321.  
  322. interface QuickSorter.instance
  323. native push QuickSorter_push_0
  324. native sort QuickSorter_sort_0
  325. end
  326.  
  327. module stdobjs.module
  328. 0
  329.  
  330. sub @init 0
  331. code
  332. pushstr "stdlib"
  333. pushthis
  334. pushsys
  335. cm op:set:prop 2
  336. jnx 0
  337. xraise
  338. @0:
  339. pop
  340. ;Initialization of class Number
  341. co Number.class
  342. pushsys
  343. setprop Number
  344. pop
  345. pushthis
  346. setprop Number
  347. xchg 1 2
  348. setprop module
  349. polypop 2
  350. ;Initialization of class Math
  351. co Math.class
  352. pushsys
  353. setprop Math
  354. pop
  355. pushthis
  356. setprop Math
  357. xchg 1 2
  358. setprop module
  359. polypop 2
  360. ;Initialization of class MultiIndex
  361. co MultiIndex.class
  362. pushsys
  363. setprop MultiIndex
  364. pop
  365. pushthis
  366. setprop MultiIndex
  367. xchg 1 2
  368. setprop module
  369. polypop 2
  370. ;Initialization of class CharMap
  371. co CharMap.class
  372. pushsys
  373. setprop CharMap
  374. pop
  375. pushthis
  376. setprop CharMap
  377. xchg 1 2
  378. setprop module
  379. polypop 2
  380. ;Initialization of class String
  381. co String.class
  382. pushsys
  383. setprop String
  384. pop
  385. pushthis
  386. setprop String
  387. xchg 1 2
  388. setprop module
  389. polypop 2
  390. ;Initialization of class ArrayIterator
  391. co ArrayIterator.class
  392. pushsys
  393. setprop ArrayIterator
  394. pop
  395. pushthis
  396. setprop ArrayIterator
  397. xchg 1 2
  398. setprop module
  399. polypop 2
  400. ;Initialization of class Array
  401. co Array.class
  402. pushsys
  403. setprop Array
  404. pop
  405. pushthis
  406. setprop Array
  407. xchg 1 2
  408. setprop module
  409. polypop 2
  410. ;Initialization of class Matrix
  411. co Matrix.class
  412. pushsys
  413. setprop Matrix
  414. pop
  415. pushthis
  416. setprop Matrix
  417. xchg 1 2
  418. setprop module
  419. polypop 2
  420. ;Initialization of class StringBuffer
  421. co StringBuffer.class
  422. pushsys
  423. setprop StringBuffer
  424. pop
  425. pushthis
  426. setprop StringBuffer
  427. xchg 1 2
  428. setprop module
  429. polypop 2
  430. ;Initialization of class System
  431. co System.class
  432. pushsys
  433. setprop System
  434. pop
  435. pushthis
  436. setprop System
  437. xchg 1 2
  438. setprop module
  439. polypop 2
  440. ;Initialization of class Date
  441. co Date.class
  442. pushsys
  443. setprop Date
  444. pop
  445. pushthis
  446. setprop Date
  447. xchg 1 2
  448. setprop module
  449. polypop 2
  450. ;Initialization of class File
  451. co File.class
  452. pushsys
  453. setprop File
  454. pop
  455. pushthis
  456. setprop File
  457. xchg 1 2
  458. setprop module
  459. polypop 2
  460. ;Initialization of class StoreIterator
  461. co StoreIterator.class
  462. pushsys
  463. setprop StoreIterator
  464. pop
  465. pushthis
  466. setprop StoreIterator
  467. xchg 1 2
  468. setprop module
  469. polypop 2
  470. ;Initialization of class Store
  471. co Store.class
  472. pushsys
  473. setprop Store
  474. pop
  475. pushthis
  476. setprop Store
  477. xchg 1 2
  478. setprop module
  479. polypop 2
  480. ;Initialization of class Exception
  481. co Exception.class
  482. pushsys
  483. setprop Exception
  484. pop
  485. pushthis
  486. setprop Exception
  487. xchg 1 2
  488. setprop module
  489. polypop 2
  490. ;Initialization of class VarListIterator
  491. co VarListIterator.class
  492. pushsys
  493. setprop VarListIterator
  494. pop
  495. pushthis
  496. setprop VarListIterator
  497. xchg 1 2
  498. setprop module
  499. polypop 2
  500. ;Initialization of class VarList
  501. co VarList.class
  502. pushsys
  503. setprop VarList
  504. pop
  505. pushthis
  506. setprop VarList
  507. xchg 1 2
  508. setprop module
  509. polypop 2
  510. ;Initialization of class XMLIterator
  511. co XMLIterator.class
  512. pushsys
  513. setprop XMLIterator
  514. pop
  515. pushthis
  516. setprop XMLIterator
  517. xchg 1 2
  518. setprop module
  519. polypop 2
  520. ;Initialization of class XMLNode
  521. co XMLNode.class
  522. pushsys
  523. setprop XMLNode
  524. pop
  525. pushthis
  526. setprop XMLNode
  527. xchg 1 2
  528. setprop module
  529. polypop 2
  530. ;Initialization of class Delegate
  531. co Delegate.class
  532. pushsys
  533. setprop Delegate
  534. pop
  535. pushthis
  536. setprop Delegate
  537. xchg 1 2
  538. setprop module
  539. polypop 2
  540. ;Initialization of class QuickSorter
  541. co QuickSorter.class
  542. pushsys
  543. setprop QuickSorter
  544. pop
  545. pushthis
  546. setprop QuickSorter
  547. xchg 1 2
  548. setprop module
  549. polypop 2
  550. ;Init block of module
  551. doret 0
  552. end
  553. end