Helios-Environments.deploy.js 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541
  1. smalltalk.addPackage('Helios-Environments');
  2. smalltalk.addClass('HLEnvironment', smalltalk.Object, [], 'Helios-Environments');
  3. smalltalk.addMethod(
  4. smalltalk.method({
  5. selector: "addInstVarNamed:to:",
  6. fn: function (aString,aClass){
  7. var self=this;
  8. return smalltalk.withContext(function($ctx1) {
  9. var $1,$2;
  10. $1=_st(_st(aClass)._instanceVariableNames())._copy();
  11. _st($1)._add_(aString);
  12. $2=_st($1)._yourself();
  13. _st(_st(self)._classBuilder())._addSubclassOf_named_instanceVariableNames_package_(_st(aClass)._superclass(),_st(aClass)._name(),$2,_st(_st(aClass)._package())._name());
  14. return self}, function($ctx1) {$ctx1.fill(self,"addInstVarNamed:to:",{aString:aString,aClass:aClass},smalltalk.HLEnvironment)})},
  15. messageSends: ["addSubclassOf:named:instanceVariableNames:package:", "superclass", "name", "add:", "copy", "instanceVariableNames", "yourself", "package", "classBuilder"]}),
  16. smalltalk.HLEnvironment);
  17. smalltalk.addMethod(
  18. smalltalk.method({
  19. selector: "availableClassNames",
  20. fn: function (){
  21. var self=this;
  22. return smalltalk.withContext(function($ctx1) {
  23. _st(self)._subclassResponsibility();
  24. return self}, function($ctx1) {$ctx1.fill(self,"availableClassNames",{},smalltalk.HLEnvironment)})},
  25. messageSends: ["subclassResponsibility"]}),
  26. smalltalk.HLEnvironment);
  27. smalltalk.addMethod(
  28. smalltalk.method({
  29. selector: "availablePackageNames",
  30. fn: function (){
  31. var self=this;
  32. return smalltalk.withContext(function($ctx1) {
  33. _st(self)._subclassResponsibility();
  34. return self}, function($ctx1) {$ctx1.fill(self,"availablePackageNames",{},smalltalk.HLEnvironment)})},
  35. messageSends: ["subclassResponsibility"]}),
  36. smalltalk.HLEnvironment);
  37. smalltalk.addMethod(
  38. smalltalk.method({
  39. selector: "availableProtocolsFor:",
  40. fn: function (aClass){
  41. var self=this;
  42. return smalltalk.withContext(function($ctx1) {
  43. _st(self)._subclassResponsibility();
  44. return self}, function($ctx1) {$ctx1.fill(self,"availableProtocolsFor:",{aClass:aClass},smalltalk.HLEnvironment)})},
  45. messageSends: ["subclassResponsibility"]}),
  46. smalltalk.HLEnvironment);
  47. smalltalk.addMethod(
  48. smalltalk.method({
  49. selector: "classBuilder",
  50. fn: function (){
  51. var self=this;
  52. return smalltalk.withContext(function($ctx1) {
  53. var $1;
  54. $1=_st(self)._subclassResponsibility();
  55. return $1;
  56. }, function($ctx1) {$ctx1.fill(self,"classBuilder",{},smalltalk.HLEnvironment)})},
  57. messageSends: ["subclassResponsibility"]}),
  58. smalltalk.HLEnvironment);
  59. smalltalk.addMethod(
  60. smalltalk.method({
  61. selector: "classNamed:",
  62. fn: function (aString){
  63. var self=this;
  64. return smalltalk.withContext(function($ctx1) {
  65. _st(self)._subclassResponsibility();
  66. return self}, function($ctx1) {$ctx1.fill(self,"classNamed:",{aString:aString},smalltalk.HLEnvironment)})},
  67. messageSends: ["subclassResponsibility"]}),
  68. smalltalk.HLEnvironment);
  69. smalltalk.addMethod(
  70. smalltalk.method({
  71. selector: "commitPackage:",
  72. fn: function (aPackage){
  73. var self=this;
  74. return smalltalk.withContext(function($ctx1) {
  75. _st(self)._subclassResponsibility();
  76. return self}, function($ctx1) {$ctx1.fill(self,"commitPackage:",{aPackage:aPackage},smalltalk.HLEnvironment)})},
  77. messageSends: ["subclassResponsibility"]}),
  78. smalltalk.HLEnvironment);
  79. smalltalk.addMethod(
  80. smalltalk.method({
  81. selector: "compileClassComment:for:",
  82. fn: function (aString,aClass){
  83. var self=this;
  84. return smalltalk.withContext(function($ctx1) {
  85. _st(aClass)._comment_(aString);
  86. return self}, function($ctx1) {$ctx1.fill(self,"compileClassComment:for:",{aString:aString,aClass:aClass},smalltalk.HLEnvironment)})},
  87. messageSends: ["comment:"]}),
  88. smalltalk.HLEnvironment);
  89. smalltalk.addMethod(
  90. smalltalk.method({
  91. selector: "compileClassDefinition:",
  92. fn: function (aString){
  93. var self=this;
  94. function $DoIt(){return smalltalk.DoIt||(typeof DoIt=="undefined"?nil:DoIt)}
  95. return smalltalk.withContext(function($ctx1) {
  96. _st(self)._eval_on_(aString,_st($DoIt())._new());
  97. return self}, function($ctx1) {$ctx1.fill(self,"compileClassDefinition:",{aString:aString},smalltalk.HLEnvironment)})},
  98. messageSends: ["eval:on:", "new"]}),
  99. smalltalk.HLEnvironment);
  100. smalltalk.addMethod(
  101. smalltalk.method({
  102. selector: "compileMethod:for:protocol:",
  103. fn: function (sourceCode,class_,protocol){
  104. var self=this;
  105. return smalltalk.withContext(function($ctx1) {
  106. _st(class_)._compile_category_(sourceCode,protocol);
  107. return self}, function($ctx1) {$ctx1.fill(self,"compileMethod:for:protocol:",{sourceCode:sourceCode,class_:class_,protocol:protocol},smalltalk.HLEnvironment)})},
  108. messageSends: ["compile:category:"]}),
  109. smalltalk.HLEnvironment);
  110. smalltalk.addMethod(
  111. smalltalk.method({
  112. selector: "eval:on:",
  113. fn: function (someCode,aReceiver){
  114. var self=this;
  115. return smalltalk.withContext(function($ctx1) {
  116. var $1;
  117. $1=_st(self)._subclassResponsibility();
  118. return $1;
  119. }, function($ctx1) {$ctx1.fill(self,"eval:on:",{someCode:someCode,aReceiver:aReceiver},smalltalk.HLEnvironment)})},
  120. messageSends: ["subclassResponsibility"]}),
  121. smalltalk.HLEnvironment);
  122. smalltalk.addMethod(
  123. smalltalk.method({
  124. selector: "moveClass:toPackage:",
  125. fn: function (aClass,aPackageName){
  126. var self=this;
  127. return smalltalk.withContext(function($ctx1) {
  128. _st(self)._subclassResponsibility();
  129. return self}, function($ctx1) {$ctx1.fill(self,"moveClass:toPackage:",{aClass:aClass,aPackageName:aPackageName},smalltalk.HLEnvironment)})},
  130. messageSends: ["subclassResponsibility"]}),
  131. smalltalk.HLEnvironment);
  132. smalltalk.addMethod(
  133. smalltalk.method({
  134. selector: "moveMethod:toClass:",
  135. fn: function (aMethod,aClassName){
  136. var self=this;
  137. return smalltalk.withContext(function($ctx1) {
  138. _st(self)._subclassResponsibility();
  139. return self}, function($ctx1) {$ctx1.fill(self,"moveMethod:toClass:",{aMethod:aMethod,aClassName:aClassName},smalltalk.HLEnvironment)})},
  140. messageSends: ["subclassResponsibility"]}),
  141. smalltalk.HLEnvironment);
  142. smalltalk.addMethod(
  143. smalltalk.method({
  144. selector: "moveMethod:toProtocol:",
  145. fn: function (aMethod,aProtocol){
  146. var self=this;
  147. return smalltalk.withContext(function($ctx1) {
  148. _st(self)._subclassResponsibility();
  149. return self}, function($ctx1) {$ctx1.fill(self,"moveMethod:toProtocol:",{aMethod:aMethod,aProtocol:aProtocol},smalltalk.HLEnvironment)})},
  150. messageSends: ["subclassResponsibility"]}),
  151. smalltalk.HLEnvironment);
  152. smalltalk.addMethod(
  153. smalltalk.method({
  154. selector: "packages",
  155. fn: function (){
  156. var self=this;
  157. return smalltalk.withContext(function($ctx1) {
  158. var $1;
  159. $1=_st(self)._subclassResponsibility();
  160. return $1;
  161. }, function($ctx1) {$ctx1.fill(self,"packages",{},smalltalk.HLEnvironment)})},
  162. messageSends: ["subclassResponsibility"]}),
  163. smalltalk.HLEnvironment);
  164. smalltalk.addMethod(
  165. smalltalk.method({
  166. selector: "removeClass:",
  167. fn: function (aClass){
  168. var self=this;
  169. return smalltalk.withContext(function($ctx1) {
  170. _st(self)._sublcassResponsibility();
  171. return self}, function($ctx1) {$ctx1.fill(self,"removeClass:",{aClass:aClass},smalltalk.HLEnvironment)})},
  172. messageSends: ["sublcassResponsibility"]}),
  173. smalltalk.HLEnvironment);
  174. smalltalk.addMethod(
  175. smalltalk.method({
  176. selector: "removeMethod:",
  177. fn: function (aMethod){
  178. var self=this;
  179. return smalltalk.withContext(function($ctx1) {
  180. _st(self)._sublcassResponsibility();
  181. return self}, function($ctx1) {$ctx1.fill(self,"removeMethod:",{aMethod:aMethod},smalltalk.HLEnvironment)})},
  182. messageSends: ["sublcassResponsibility"]}),
  183. smalltalk.HLEnvironment);
  184. smalltalk.addMethod(
  185. smalltalk.method({
  186. selector: "systemAnnouncer",
  187. fn: function (){
  188. var self=this;
  189. return smalltalk.withContext(function($ctx1) {
  190. var $1;
  191. $1=_st(self)._subclassResponsibility();
  192. return $1;
  193. }, function($ctx1) {$ctx1.fill(self,"systemAnnouncer",{},smalltalk.HLEnvironment)})},
  194. messageSends: ["subclassResponsibility"]}),
  195. smalltalk.HLEnvironment);
  196. smalltalk.addClass('HLLocalEnvironment', smalltalk.HLEnvironment, [], 'Helios-Environments');
  197. smalltalk.addMethod(
  198. smalltalk.method({
  199. selector: "availableClassNames",
  200. fn: function (){
  201. var self=this;
  202. function $Smalltalk(){return smalltalk.Smalltalk||(typeof Smalltalk=="undefined"?nil:Smalltalk)}
  203. return smalltalk.withContext(function($ctx1) {
  204. var $1;
  205. $1=_st(_st(_st($Smalltalk())._current())._classes())._collect_((function(each){
  206. return smalltalk.withContext(function($ctx2) {
  207. return _st(each)._name();
  208. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  209. return $1;
  210. }, function($ctx1) {$ctx1.fill(self,"availableClassNames",{},smalltalk.HLLocalEnvironment)})},
  211. messageSends: ["collect:", "name", "classes", "current"]}),
  212. smalltalk.HLLocalEnvironment);
  213. smalltalk.addMethod(
  214. smalltalk.method({
  215. selector: "availablePackageNames",
  216. fn: function (){
  217. var self=this;
  218. function $Smalltalk(){return smalltalk.Smalltalk||(typeof Smalltalk=="undefined"?nil:Smalltalk)}
  219. return smalltalk.withContext(function($ctx1) {
  220. var $1;
  221. $1=_st(_st(_st($Smalltalk())._current())._packages())._collect_((function(each){
  222. return smalltalk.withContext(function($ctx2) {
  223. return _st(each)._name();
  224. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  225. return $1;
  226. }, function($ctx1) {$ctx1.fill(self,"availablePackageNames",{},smalltalk.HLLocalEnvironment)})},
  227. messageSends: ["collect:", "name", "packages", "current"]}),
  228. smalltalk.HLLocalEnvironment);
  229. smalltalk.addMethod(
  230. smalltalk.method({
  231. selector: "availableProtocolsFor:",
  232. fn: function (aClass){
  233. var self=this;
  234. var protocols;
  235. return smalltalk.withContext(function($ctx1) {
  236. var $1,$2;
  237. protocols=_st(aClass)._protocols();
  238. $1=_st(aClass)._superclass();
  239. if(($receiver = $1) == nil || $receiver == undefined){
  240. $1;
  241. } else {
  242. _st(protocols)._addAll_(_st(self)._availableProtocolsFor_(_st(aClass)._superclass()));
  243. };
  244. $2=_st(_st(protocols)._asSet())._asArray();
  245. return $2;
  246. }, function($ctx1) {$ctx1.fill(self,"availableProtocolsFor:",{aClass:aClass,protocols:protocols},smalltalk.HLLocalEnvironment)})},
  247. messageSends: ["protocols", "ifNotNil:", "addAll:", "availableProtocolsFor:", "superclass", "asArray", "asSet"]}),
  248. smalltalk.HLLocalEnvironment);
  249. smalltalk.addMethod(
  250. smalltalk.method({
  251. selector: "classBuilder",
  252. fn: function (){
  253. var self=this;
  254. function $ClassBuilder(){return smalltalk.ClassBuilder||(typeof ClassBuilder=="undefined"?nil:ClassBuilder)}
  255. return smalltalk.withContext(function($ctx1) {
  256. var $1;
  257. $1=_st($ClassBuilder())._new();
  258. return $1;
  259. }, function($ctx1) {$ctx1.fill(self,"classBuilder",{},smalltalk.HLLocalEnvironment)})},
  260. messageSends: ["new"]}),
  261. smalltalk.HLLocalEnvironment);
  262. smalltalk.addMethod(
  263. smalltalk.method({
  264. selector: "classNamed:",
  265. fn: function (aString){
  266. var self=this;
  267. function $Smalltalk(){return smalltalk.Smalltalk||(typeof Smalltalk=="undefined"?nil:Smalltalk)}
  268. return smalltalk.withContext(function($ctx1) {
  269. var $2,$1;
  270. $2=_st(_st($Smalltalk())._current())._at_(_st(aString)._asSymbol());
  271. if(($receiver = $2) == nil || $receiver == undefined){
  272. $1=_st(self)._error_("Invalid class name");
  273. } else {
  274. $1=$2;
  275. };
  276. return $1;
  277. }, function($ctx1) {$ctx1.fill(self,"classNamed:",{aString:aString},smalltalk.HLLocalEnvironment)})},
  278. messageSends: ["ifNil:", "error:", "at:", "asSymbol", "current"]}),
  279. smalltalk.HLLocalEnvironment);
  280. smalltalk.addMethod(
  281. smalltalk.method({
  282. selector: "commitPackage:",
  283. fn: function (aPackage){
  284. var self=this;
  285. return smalltalk.withContext(function($ctx1) {
  286. _st(aPackage)._commit();
  287. return self}, function($ctx1) {$ctx1.fill(self,"commitPackage:",{aPackage:aPackage},smalltalk.HLLocalEnvironment)})},
  288. messageSends: ["commit"]}),
  289. smalltalk.HLLocalEnvironment);
  290. smalltalk.addMethod(
  291. smalltalk.method({
  292. selector: "eval:on:",
  293. fn: function (aString,aReceiver){
  294. var self=this;
  295. var compiler;
  296. function $Compiler(){return smalltalk.Compiler||(typeof Compiler=="undefined"?nil:Compiler)}
  297. function $Error(){return smalltalk.Error||(typeof Error=="undefined"?nil:Error)}
  298. return smalltalk.withContext(function($ctx1) {
  299. var $1,$2;
  300. var $early={};
  301. try {
  302. compiler=_st($Compiler())._new();
  303. _st((function(){
  304. return smalltalk.withContext(function($ctx2) {
  305. return _st(compiler)._parseExpression_(aString);
  306. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._on_do_($Error(),(function(ex){
  307. return smalltalk.withContext(function($ctx2) {
  308. $1=_st(window)._alert_(_st(ex)._messageText());
  309. throw $early=[$1];
  310. }, function($ctx2) {$ctx2.fillBlock({ex:ex},$ctx1)})}));
  311. $2=_st(compiler)._evaluateExpression_on_(aString,aReceiver);
  312. return $2;
  313. }
  314. catch(e) {if(e===$early)return e[0]; throw e}
  315. }, function($ctx1) {$ctx1.fill(self,"eval:on:",{aString:aString,aReceiver:aReceiver,compiler:compiler},smalltalk.HLLocalEnvironment)})},
  316. messageSends: ["new", "on:do:", "alert:", "messageText", "parseExpression:", "evaluateExpression:on:"]}),
  317. smalltalk.HLLocalEnvironment);
  318. smalltalk.addMethod(
  319. smalltalk.method({
  320. selector: "moveClass:toPackage:",
  321. fn: function (aClass,aPackageName){
  322. var self=this;
  323. var package_;
  324. function $Package(){return smalltalk.Package||(typeof Package=="undefined"?nil:Package)}
  325. return smalltalk.withContext(function($ctx1) {
  326. var $1,$2,$3;
  327. package_=_st($Package())._named_(aPackageName);
  328. $1=package_;
  329. if(($receiver = $1) == nil || $receiver == undefined){
  330. _st(self)._error_("Invalid package name");
  331. } else {
  332. $1;
  333. };
  334. $2=_st(package_).__eq_eq(_st(aClass)._package());
  335. if(smalltalk.assert($2)){
  336. $3=self;
  337. return $3;
  338. };
  339. _st(package_)._addClass_(aClass);
  340. return self}, function($ctx1) {$ctx1.fill(self,"moveClass:toPackage:",{aClass:aClass,aPackageName:aPackageName,package_:package_},smalltalk.HLLocalEnvironment)})},
  341. messageSends: ["named:", "ifNil:", "error:", "ifTrue:", "==", "package", "addClass:"]}),
  342. smalltalk.HLLocalEnvironment);
  343. smalltalk.addMethod(
  344. smalltalk.method({
  345. selector: "moveMethod:toClass:",
  346. fn: function (aMethod,aClassName){
  347. var self=this;
  348. var destinationClass;
  349. function $Smalltalk(){return smalltalk.Smalltalk||(typeof Smalltalk=="undefined"?nil:Smalltalk)}
  350. return smalltalk.withContext(function($ctx1) {
  351. var $1,$2,$3;
  352. destinationClass=_st(_st($Smalltalk())._current())._at_(_st(aClassName)._asSymbol());
  353. $1=destinationClass;
  354. if(($receiver = $1) == nil || $receiver == undefined){
  355. _st(self)._error_("Invalid class name");
  356. } else {
  357. $1;
  358. };
  359. $2=_st(destinationClass).__eq_eq(_st(aMethod)._methodClass());
  360. if(smalltalk.assert($2)){
  361. $3=self;
  362. return $3;
  363. };
  364. _st(destinationClass)._adoptMethod_(aMethod);
  365. _st(_st(aMethod)._methodClass())._forsakeMethod_(aMethod);
  366. return self}, function($ctx1) {$ctx1.fill(self,"moveMethod:toClass:",{aMethod:aMethod,aClassName:aClassName,destinationClass:destinationClass},smalltalk.HLLocalEnvironment)})},
  367. messageSends: ["at:", "asSymbol", "current", "ifNil:", "error:", "ifTrue:", "==", "methodClass", "adoptMethod:", "forsakeMethod:"]}),
  368. smalltalk.HLLocalEnvironment);
  369. smalltalk.addMethod(
  370. smalltalk.method({
  371. selector: "moveMethod:toProtocol:",
  372. fn: function (aMethod,aProtocol){
  373. var self=this;
  374. return smalltalk.withContext(function($ctx1) {
  375. _st(aMethod)._category_(aProtocol);
  376. return self}, function($ctx1) {$ctx1.fill(self,"moveMethod:toProtocol:",{aMethod:aMethod,aProtocol:aProtocol},smalltalk.HLLocalEnvironment)})},
  377. messageSends: ["category:"]}),
  378. smalltalk.HLLocalEnvironment);
  379. smalltalk.addMethod(
  380. smalltalk.method({
  381. selector: "packages",
  382. fn: function (){
  383. var self=this;
  384. function $Smalltalk(){return smalltalk.Smalltalk||(typeof Smalltalk=="undefined"?nil:Smalltalk)}
  385. return smalltalk.withContext(function($ctx1) {
  386. var $1;
  387. $1=_st(_st($Smalltalk())._current())._packages();
  388. return $1;
  389. }, function($ctx1) {$ctx1.fill(self,"packages",{},smalltalk.HLLocalEnvironment)})},
  390. messageSends: ["packages", "current"]}),
  391. smalltalk.HLLocalEnvironment);
  392. smalltalk.addMethod(
  393. smalltalk.method({
  394. selector: "removeClass:",
  395. fn: function (aClass){
  396. var self=this;
  397. function $Smalltalk(){return smalltalk.Smalltalk||(typeof Smalltalk=="undefined"?nil:Smalltalk)}
  398. return smalltalk.withContext(function($ctx1) {
  399. _st(_st($Smalltalk())._current())._removeClass_(aClass);
  400. return self}, function($ctx1) {$ctx1.fill(self,"removeClass:",{aClass:aClass},smalltalk.HLLocalEnvironment)})},
  401. messageSends: ["removeClass:", "current"]}),
  402. smalltalk.HLLocalEnvironment);
  403. smalltalk.addMethod(
  404. smalltalk.method({
  405. selector: "removeMethod:",
  406. fn: function (aMethod){
  407. var self=this;
  408. return smalltalk.withContext(function($ctx1) {
  409. _st(_st(aMethod)._methodClass())._forsakeMethod_(aMethod);
  410. return self}, function($ctx1) {$ctx1.fill(self,"removeMethod:",{aMethod:aMethod},smalltalk.HLLocalEnvironment)})},
  411. messageSends: ["forsakeMethod:", "methodClass"]}),
  412. smalltalk.HLLocalEnvironment);
  413. smalltalk.addMethod(
  414. smalltalk.method({
  415. selector: "systemAnnouncer",
  416. fn: function (){
  417. var self=this;
  418. function $SystemAnnouncer(){return smalltalk.SystemAnnouncer||(typeof SystemAnnouncer=="undefined"?nil:SystemAnnouncer)}
  419. return smalltalk.withContext(function($ctx1) {
  420. var $1;
  421. $1=_st($SystemAnnouncer())._current();
  422. return $1;
  423. }, function($ctx1) {$ctx1.fill(self,"systemAnnouncer",{},smalltalk.HLLocalEnvironment)})},
  424. messageSends: ["current"]}),
  425. smalltalk.HLLocalEnvironment);
  426. smalltalk.addClass('HLRemoteEnvironment', smalltalk.HLEnvironment, [], 'Helios-Environments');
  427. smalltalk.addMethod(
  428. smalltalk.method({
  429. selector: "eval:on:",
  430. fn: function (someCode,aReceiver){
  431. var self=this;
  432. return smalltalk.withContext(function($ctx1) {
  433. _st(self)._notYetImplemented();
  434. return self}, function($ctx1) {$ctx1.fill(self,"eval:on:",{someCode:someCode,aReceiver:aReceiver},smalltalk.HLRemoteEnvironment)})},
  435. messageSends: ["notYetImplemented"]}),
  436. smalltalk.HLRemoteEnvironment);
  437. smalltalk.addMethod(
  438. smalltalk.method({
  439. selector: "packages",
  440. fn: function (){
  441. var self=this;
  442. return smalltalk.withContext(function($ctx1) {
  443. return self}, function($ctx1) {$ctx1.fill(self,"packages",{},smalltalk.HLRemoteEnvironment)})},
  444. messageSends: []}),
  445. smalltalk.HLRemoteEnvironment);
  446. smalltalk.addClass('HLRemoteObject', smalltalk.Object, [], 'Helios-Environments');
  447. smalltalk.addMethod(
  448. smalltalk.method({
  449. selector: "doesNotUnderstand:",
  450. fn: function (aMessage){
  451. var self=this;
  452. return smalltalk.withContext(function($ctx1) {
  453. return self}, function($ctx1) {$ctx1.fill(self,"doesNotUnderstand:",{aMessage:aMessage},smalltalk.HLRemoteObject)})},
  454. messageSends: []}),
  455. smalltalk.HLRemoteObject);
  456. smalltalk.addMethod(
  457. smalltalk.method({
  458. selector: "inspectOn:",
  459. fn: function (anInspector){
  460. var self=this;
  461. return smalltalk.withContext(function($ctx1) {
  462. return self}, function($ctx1) {$ctx1.fill(self,"inspectOn:",{anInspector:anInspector},smalltalk.HLRemoteObject)})},
  463. messageSends: []}),
  464. smalltalk.HLRemoteObject);
  465. smalltalk.addMethod(
  466. smalltalk.method({
  467. selector: "printString",
  468. fn: function (){
  469. var self=this;
  470. return smalltalk.withContext(function($ctx1) {
  471. return "this is a remote object";
  472. }, function($ctx1) {$ctx1.fill(self,"printString",{},smalltalk.HLRemoteObject)})},
  473. messageSends: []}),
  474. smalltalk.HLRemoteObject);
  475. smalltalk.addMethod(
  476. smalltalk.method({
  477. selector: "adoptMethod:",
  478. fn: function (aMethod){
  479. var self=this;
  480. return smalltalk.withContext(function($ctx1) {
  481. _st(self)._compile_category_(_st(aMethod)._source(),_st(aMethod)._protocol());
  482. return self}, function($ctx1) {$ctx1.fill(self,"adoptMethod:",{aMethod:aMethod},smalltalk.Behavior)})},
  483. messageSends: ["compile:category:", "source", "protocol"]}),
  484. smalltalk.Behavior);
  485. smalltalk.addMethod(
  486. smalltalk.method({
  487. selector: "forsakeMethod:",
  488. fn: function (aMethod){
  489. var self=this;
  490. return smalltalk.withContext(function($ctx1) {
  491. _st(self)._removeCompiledMethod_(aMethod);
  492. return self}, function($ctx1) {$ctx1.fill(self,"forsakeMethod:",{aMethod:aMethod},smalltalk.Behavior)})},
  493. messageSends: ["removeCompiledMethod:"]}),
  494. smalltalk.Behavior);