naether 0.9.0-java → 0.9.1-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/doc/Naether.html +3165 -0
- data/doc/Naether/Bootstrap.html +804 -0
- data/doc/Naether/Configurator.html +495 -0
- data/doc/Naether/Java.html +805 -0
- data/doc/Naether/Java/JRuby.html +936 -0
- data/doc/Naether/Java/Ruby.html +941 -0
- data/doc/Naether/Maven.html +1154 -0
- data/doc/_index.html +192 -0
- data/doc/class_list.html +53 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +328 -0
- data/doc/file.README.html +195 -0
- data/doc/file_list.html +55 -0
- data/doc/frames.html +28 -0
- data/doc/index.html +195 -0
- data/doc/js/app.js +214 -0
- data/doc/js/full_list.js +173 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +708 -0
- data/doc/top-level-namespace.html +112 -0
- data/lib/naether.rb +1 -1
- data/lib/naether/configuration.rb +1 -1
- data/lib/naether/maven.rb +2 -2
- data/naether-0.9.1.jar +0 -0
- data/naether.gemspec +24 -3
- data/pom.xml +6 -1
- metadata +24 -3
- data/naether-0.9.0.jar +0 -0
@@ -0,0 +1,936 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: Naether::Java::JRuby
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.2.1
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '../../';
|
20
|
+
framesUrl = "../../frames.html#!" + escape(window.location.href);
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="../../_index.html">Index (J)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../../Naether.html" title="Naether (class)">Naether</a></span></span> » <span class='title'><span class='object_link'><a href="../Java.html" title="Naether::Java (class)">Java</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">JRuby</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="../../method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="../../file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: Naether::Java::JRuby
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName">Object</span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next">Naether::Java::JRuby</li>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
85
|
+
|
86
|
+
</dd>
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
<dt class="r2">Includes:</dt>
|
94
|
+
<dd class="r2">Singleton</dd>
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
<dt class="r1 last">Defined in:</dt>
|
101
|
+
<dd class="r1 last">lib/naether/java/jruby.rb</dd>
|
102
|
+
|
103
|
+
</dl>
|
104
|
+
<div class="clear"></div>
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
111
|
+
<ul class="summary">
|
112
|
+
|
113
|
+
<li class="public ">
|
114
|
+
<span class="summary_signature">
|
115
|
+
|
116
|
+
<a href="#class_loader-instance_method" title="#class_loader (instance method)">- (Object) <strong>class_loader</strong> </a>
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
</span>
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
<span class="note title readonly">readonly</span>
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
<span class="summary_desc"><div class='inline'>
|
136
|
+
<p>Returns the value of attribute class_loader.</p>
|
137
|
+
</div></span>
|
138
|
+
|
139
|
+
</li>
|
140
|
+
|
141
|
+
|
142
|
+
<li class="public ">
|
143
|
+
<span class="summary_signature">
|
144
|
+
|
145
|
+
<a href="#loaded_paths-instance_method" title="#loaded_paths (instance method)">- (Object) <strong>loaded_paths</strong> </a>
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
</span>
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
<span class="note title readonly">readonly</span>
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
<span class="summary_desc"><div class='inline'>
|
165
|
+
<p>Returns the value of attribute loaded_paths.</p>
|
166
|
+
</div></span>
|
167
|
+
|
168
|
+
</li>
|
169
|
+
|
170
|
+
|
171
|
+
</ul>
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
<h2>
|
178
|
+
Instance Method Summary
|
179
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
180
|
+
</h2>
|
181
|
+
|
182
|
+
<ul class="summary">
|
183
|
+
|
184
|
+
<li class="public ">
|
185
|
+
<span class="summary_signature">
|
186
|
+
|
187
|
+
<a href="#convert_to_java_list-instance_method" title="#convert_to_java_list (instance method)">- (Object) <strong>convert_to_java_list</strong>(ruby_array) </a>
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
</span>
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
<span class="summary_desc"><div class='inline'>
|
202
|
+
<p>Convert a Ruby Array to a Java ArrayList.</p>
|
203
|
+
</div></span>
|
204
|
+
|
205
|
+
</li>
|
206
|
+
|
207
|
+
|
208
|
+
<li class="public ">
|
209
|
+
<span class="summary_signature">
|
210
|
+
|
211
|
+
<a href="#convert_to_ruby_array-instance_method" title="#convert_to_ruby_array (instance method)">- (Object) <strong>convert_to_ruby_array</strong>(java_array, to_string = false) </a>
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
</span>
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
<span class="summary_desc"><div class='inline'>
|
226
|
+
<p>Convert a Java List to a Ruby Array.</p>
|
227
|
+
</div></span>
|
228
|
+
|
229
|
+
</li>
|
230
|
+
|
231
|
+
|
232
|
+
<li class="public ">
|
233
|
+
<span class="summary_signature">
|
234
|
+
|
235
|
+
<a href="#convert_to_ruby_hash-instance_method" title="#convert_to_ruby_hash (instance method)">- (Object) <strong>convert_to_ruby_hash</strong>(java_hash, to_string = false) </a>
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
</span>
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
<span class="summary_desc"><div class='inline'>
|
250
|
+
<p>Convert a Java Map to a Ruby Hash.</p>
|
251
|
+
</div></span>
|
252
|
+
|
253
|
+
</li>
|
254
|
+
|
255
|
+
|
256
|
+
<li class="public ">
|
257
|
+
<span class="summary_signature">
|
258
|
+
|
259
|
+
<a href="#create-instance_method" title="#create (instance method)">- (Object) <strong>create</strong>(target_class, *args) </a>
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
</span>
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
<span class="summary_desc"><div class='inline'>
|
274
|
+
<p>Create a Java Object.</p>
|
275
|
+
</div></span>
|
276
|
+
|
277
|
+
</li>
|
278
|
+
|
279
|
+
|
280
|
+
<li class="public ">
|
281
|
+
<span class="summary_signature">
|
282
|
+
|
283
|
+
<a href="#exec_static_method-instance_method" title="#exec_static_method (instance method)">- (Object) <strong>exec_static_method</strong>(target_class, target_method, params, types = nil) </a>
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
</span>
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
<span class="summary_desc"><div class='inline'>
|
298
|
+
<p>Execute a Staic method on a Java class.</p>
|
299
|
+
</div></span>
|
300
|
+
|
301
|
+
</li>
|
302
|
+
|
303
|
+
|
304
|
+
<li class="public ">
|
305
|
+
<span class="summary_signature">
|
306
|
+
|
307
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (JRuby) <strong>initialize</strong> </a>
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
</span>
|
312
|
+
|
313
|
+
|
314
|
+
<span class="note title constructor">constructor</span>
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
<span class="summary_desc"><div class='inline'>
|
324
|
+
<p>Creates new instance by loading the Naether jar to the global ClassLoader
|
325
|
+
and creating the internal Naether ClassLoader.</p>
|
326
|
+
</div></span>
|
327
|
+
|
328
|
+
</li>
|
329
|
+
|
330
|
+
|
331
|
+
<li class="public ">
|
332
|
+
<span class="summary_signature">
|
333
|
+
|
334
|
+
<a href="#internal_load_paths-instance_method" title="#internal_load_paths (instance method)">- (Object) <strong>internal_load_paths</strong>(paths) </a>
|
335
|
+
|
336
|
+
|
337
|
+
|
338
|
+
</span>
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
<span class="summary_desc"><div class='inline'>
|
349
|
+
<p>Load a path into the internal Naether ClassLoader.</p>
|
350
|
+
</div></span>
|
351
|
+
|
352
|
+
</li>
|
353
|
+
|
354
|
+
|
355
|
+
<li class="public ">
|
356
|
+
<span class="summary_signature">
|
357
|
+
|
358
|
+
<a href="#load_paths-instance_method" title="#load_paths (instance method)">- (Object) <strong>load_paths</strong>(paths) </a>
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
</span>
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
<span class="summary_desc"><div class='inline'>
|
373
|
+
<p>Load a path onto the Global ClassLoader.</p>
|
374
|
+
</div></span>
|
375
|
+
|
376
|
+
</li>
|
377
|
+
|
378
|
+
|
379
|
+
</ul>
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
<div id="constructor_details" class="method_details_list">
|
384
|
+
<h2>Constructor Details</h2>
|
385
|
+
|
386
|
+
<div class="method_details first">
|
387
|
+
<h3 class="signature first" id="initialize-instance_method">
|
388
|
+
|
389
|
+
- (<tt><span class='object_link'><a href="" title="Naether::Java::JRuby (class)">JRuby</a></span></tt>) <strong>initialize</strong>
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
</h3><div class="docstring">
|
396
|
+
<div class="discussion">
|
397
|
+
|
398
|
+
<p>Creates new instance by loading the Naether jar to the global ClassLoader
|
399
|
+
and creating the internal Naether ClassLoader</p>
|
400
|
+
|
401
|
+
|
402
|
+
</div>
|
403
|
+
</div>
|
404
|
+
<div class="tags">
|
405
|
+
|
406
|
+
|
407
|
+
</div><table class="source_code">
|
408
|
+
<tr>
|
409
|
+
<td>
|
410
|
+
<pre class="lines">
|
411
|
+
|
412
|
+
|
413
|
+
23
|
414
|
+
24
|
415
|
+
25
|
416
|
+
26
|
417
|
+
27
|
418
|
+
28
|
419
|
+
29
|
420
|
+
30
|
421
|
+
31
|
422
|
+
32
|
423
|
+
33</pre>
|
424
|
+
</td>
|
425
|
+
<td>
|
426
|
+
<pre class="code"><span class="info file"># File 'lib/naether/java/jruby.rb', line 23</span>
|
427
|
+
|
428
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_initialize identifier id'>initialize</span>
|
429
|
+
<span class='rubyid_require identifier id'>require</span> <span class='string val'>'java'</span>
|
430
|
+
|
431
|
+
<span class='rubyid_naether_jar identifier id'>naether_jar</span> <span class='assign token'>=</span> <span class='rubyid_Naether constant id'>Naether</span><span class='colon2 op'>::</span><span class='rubyid_Configuration constant id'>Configuration</span><span class='dot token'>.</span><span class='rubyid_naether_jar identifier id'>naether_jar</span>
|
432
|
+
|
433
|
+
<span class='rubyid_@loaded_paths ivar id'>@loaded_paths</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
|
434
|
+
|
435
|
+
<span class='rubyid_load_paths identifier id'>load_paths</span><span class='lparen token'>(</span><span class='rubyid_naether_jar identifier id'>naether_jar</span><span class='rparen token'>)</span>
|
436
|
+
<span class='rubyid_@class_loader ivar id'>@class_loader</span> <span class='assign token'>=</span> <span class='rubyid_com identifier id'>com</span><span class='dot token'>.</span><span class='rubyid_tobedevoured identifier id'>tobedevoured</span><span class='dot token'>.</span><span class='rubyid_naether identifier id'>naether</span><span class='dot token'>.</span><span class='rubyid_PathClassLoader constant id'>PathClassLoader</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span><span class='lparen token'>(</span><span class='rparen token'>)</span>
|
437
|
+
<span class='rubyid_internal_load_paths identifier id'>internal_load_paths</span><span class='lparen token'>(</span><span class='rubyid_naether_jar identifier id'>naether_jar</span><span class='rparen token'>)</span>
|
438
|
+
<span class='rubyid_end end kw'>end</span>
|
439
|
+
</pre>
|
440
|
+
</td>
|
441
|
+
</tr>
|
442
|
+
</table>
|
443
|
+
</div>
|
444
|
+
|
445
|
+
</div>
|
446
|
+
|
447
|
+
<div id="instance_attr_details" class="attr_details">
|
448
|
+
<h2>Instance Attribute Details</h2>
|
449
|
+
|
450
|
+
|
451
|
+
<span id=""></span>
|
452
|
+
<div class="method_details first">
|
453
|
+
<h3 class="signature first" id="class_loader-instance_method">
|
454
|
+
|
455
|
+
- (<tt>Object</tt>) <strong>class_loader</strong> <span class="extras">(readonly)</span>
|
456
|
+
|
457
|
+
|
458
|
+
|
459
|
+
|
460
|
+
|
461
|
+
</h3><div class="docstring">
|
462
|
+
<div class="discussion">
|
463
|
+
|
464
|
+
<p>Returns the value of attribute class_loader</p>
|
465
|
+
|
466
|
+
|
467
|
+
</div>
|
468
|
+
</div>
|
469
|
+
<div class="tags">
|
470
|
+
|
471
|
+
|
472
|
+
</div><table class="source_code">
|
473
|
+
<tr>
|
474
|
+
<td>
|
475
|
+
<pre class="lines">
|
476
|
+
|
477
|
+
|
478
|
+
17
|
479
|
+
18
|
480
|
+
19</pre>
|
481
|
+
</td>
|
482
|
+
<td>
|
483
|
+
<pre class="code"><span class="info file"># File 'lib/naether/java/jruby.rb', line 17</span>
|
484
|
+
|
485
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_class_loader identifier id'>class_loader</span>
|
486
|
+
<span class='rubyid_@class_loader ivar id'>@class_loader</span>
|
487
|
+
<span class='rubyid_end end kw'>end</span>
|
488
|
+
</pre>
|
489
|
+
</td>
|
490
|
+
</tr>
|
491
|
+
</table>
|
492
|
+
</div>
|
493
|
+
|
494
|
+
|
495
|
+
<span id=""></span>
|
496
|
+
<div class="method_details ">
|
497
|
+
<h3 class="signature " id="loaded_paths-instance_method">
|
498
|
+
|
499
|
+
- (<tt>Object</tt>) <strong>loaded_paths</strong> <span class="extras">(readonly)</span>
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
|
504
|
+
|
505
|
+
</h3><div class="docstring">
|
506
|
+
<div class="discussion">
|
507
|
+
|
508
|
+
<p>Returns the value of attribute loaded_paths</p>
|
509
|
+
|
510
|
+
|
511
|
+
</div>
|
512
|
+
</div>
|
513
|
+
<div class="tags">
|
514
|
+
|
515
|
+
|
516
|
+
</div><table class="source_code">
|
517
|
+
<tr>
|
518
|
+
<td>
|
519
|
+
<pre class="lines">
|
520
|
+
|
521
|
+
|
522
|
+
17
|
523
|
+
18
|
524
|
+
19</pre>
|
525
|
+
</td>
|
526
|
+
<td>
|
527
|
+
<pre class="code"><span class="info file"># File 'lib/naether/java/jruby.rb', line 17</span>
|
528
|
+
|
529
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_loaded_paths identifier id'>loaded_paths</span>
|
530
|
+
<span class='rubyid_@loaded_paths ivar id'>@loaded_paths</span>
|
531
|
+
<span class='rubyid_end end kw'>end</span>
|
532
|
+
</pre>
|
533
|
+
</td>
|
534
|
+
</tr>
|
535
|
+
</table>
|
536
|
+
</div>
|
537
|
+
|
538
|
+
</div>
|
539
|
+
|
540
|
+
|
541
|
+
<div id="instance_method_details" class="method_details_list">
|
542
|
+
<h2>Instance Method Details</h2>
|
543
|
+
|
544
|
+
|
545
|
+
<div class="method_details first">
|
546
|
+
<h3 class="signature first" id="convert_to_java_list-instance_method">
|
547
|
+
|
548
|
+
- (<tt>Object</tt>) <strong>convert_to_java_list</strong>(ruby_array)
|
549
|
+
|
550
|
+
|
551
|
+
|
552
|
+
|
553
|
+
|
554
|
+
</h3><div class="docstring">
|
555
|
+
<div class="discussion">
|
556
|
+
|
557
|
+
<p>Convert a Ruby Array to a Java ArrayList</p>
|
558
|
+
|
559
|
+
|
560
|
+
</div>
|
561
|
+
</div>
|
562
|
+
<div class="tags">
|
563
|
+
|
564
|
+
|
565
|
+
</div><table class="source_code">
|
566
|
+
<tr>
|
567
|
+
<td>
|
568
|
+
<pre class="lines">
|
569
|
+
|
570
|
+
|
571
|
+
104
|
572
|
+
105
|
573
|
+
106
|
574
|
+
107
|
575
|
+
108
|
576
|
+
109
|
577
|
+
110
|
578
|
+
111</pre>
|
579
|
+
</td>
|
580
|
+
<td>
|
581
|
+
<pre class="code"><span class="info file"># File 'lib/naether/java/jruby.rb', line 104</span>
|
582
|
+
|
583
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_convert_to_java_list identifier id'>convert_to_java_list</span><span class='lparen token'>(</span> <span class='rubyid_ruby_array identifier id'>ruby_array</span> <span class='rparen token'>)</span>
|
584
|
+
<span class='rubyid_list identifier id'>list</span> <span class='assign token'>=</span> <span class='rubyid_java identifier id'>java</span><span class='dot token'>.</span><span class='rubyid_util identifier id'>util</span><span class='dot token'>.</span><span class='rubyid_ArrayList constant id'>ArrayList</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span>
|
585
|
+
<span class='rubyid_ruby_array identifier id'>ruby_array</span><span class='dot token'>.</span><span class='rubyid_each identifier id'>each</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_item identifier id'>item</span><span class='bitor op'>|</span>
|
586
|
+
<span class='rubyid_list identifier id'>list</span><span class='dot token'>.</span><span class='rubyid_add identifier id'>add</span><span class='lparen token'>(</span> <span class='rubyid_item identifier id'>item</span> <span class='rparen token'>)</span>
|
587
|
+
<span class='rubyid_end end kw'>end</span>
|
588
|
+
|
589
|
+
<span class='rubyid_list identifier id'>list</span>
|
590
|
+
<span class='rubyid_end end kw'>end</span>
|
591
|
+
</pre>
|
592
|
+
</td>
|
593
|
+
</tr>
|
594
|
+
</table>
|
595
|
+
</div>
|
596
|
+
|
597
|
+
<div class="method_details ">
|
598
|
+
<h3 class="signature " id="convert_to_ruby_array-instance_method">
|
599
|
+
|
600
|
+
- (<tt>Object</tt>) <strong>convert_to_ruby_array</strong>(java_array, to_string = false)
|
601
|
+
|
602
|
+
|
603
|
+
|
604
|
+
|
605
|
+
|
606
|
+
</h3><div class="docstring">
|
607
|
+
<div class="discussion">
|
608
|
+
|
609
|
+
<p>Convert a Java List to a Ruby Array</p>
|
610
|
+
|
611
|
+
|
612
|
+
</div>
|
613
|
+
</div>
|
614
|
+
<div class="tags">
|
615
|
+
|
616
|
+
|
617
|
+
</div><table class="source_code">
|
618
|
+
<tr>
|
619
|
+
<td>
|
620
|
+
<pre class="lines">
|
621
|
+
|
622
|
+
|
623
|
+
116
|
624
|
+
117
|
625
|
+
118</pre>
|
626
|
+
</td>
|
627
|
+
<td>
|
628
|
+
<pre class="code"><span class="info file"># File 'lib/naether/java/jruby.rb', line 116</span>
|
629
|
+
|
630
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_convert_to_ruby_array identifier id'>convert_to_ruby_array</span><span class='lparen token'>(</span> <span class='rubyid_java_array identifier id'>java_array</span><span class='comma token'>,</span> <span class='rubyid_to_string identifier id'>to_string</span> <span class='assign token'>=</span> <span class='rubyid_false false kw'>false</span> <span class='rparen token'>)</span>
|
631
|
+
<span class='rubyid_java_array identifier id'>java_array</span><span class='dot token'>.</span><span class='rubyid_to_a identifier id'>to_a</span>
|
632
|
+
<span class='rubyid_end end kw'>end</span>
|
633
|
+
</pre>
|
634
|
+
</td>
|
635
|
+
</tr>
|
636
|
+
</table>
|
637
|
+
</div>
|
638
|
+
|
639
|
+
<div class="method_details ">
|
640
|
+
<h3 class="signature " id="convert_to_ruby_hash-instance_method">
|
641
|
+
|
642
|
+
- (<tt>Object</tt>) <strong>convert_to_ruby_hash</strong>(java_hash, to_string = false)
|
643
|
+
|
644
|
+
|
645
|
+
|
646
|
+
|
647
|
+
|
648
|
+
</h3><div class="docstring">
|
649
|
+
<div class="discussion">
|
650
|
+
|
651
|
+
<p>Convert a Java Map to a Ruby Hash</p>
|
652
|
+
|
653
|
+
|
654
|
+
</div>
|
655
|
+
</div>
|
656
|
+
<div class="tags">
|
657
|
+
|
658
|
+
|
659
|
+
</div><table class="source_code">
|
660
|
+
<tr>
|
661
|
+
<td>
|
662
|
+
<pre class="lines">
|
663
|
+
|
664
|
+
|
665
|
+
123
|
666
|
+
124
|
667
|
+
125</pre>
|
668
|
+
</td>
|
669
|
+
<td>
|
670
|
+
<pre class="code"><span class="info file"># File 'lib/naether/java/jruby.rb', line 123</span>
|
671
|
+
|
672
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_convert_to_ruby_hash identifier id'>convert_to_ruby_hash</span><span class='lparen token'>(</span> <span class='rubyid_java_hash identifier id'>java_hash</span><span class='comma token'>,</span> <span class='rubyid_to_string identifier id'>to_string</span> <span class='assign token'>=</span> <span class='rubyid_false false kw'>false</span> <span class='rparen token'>)</span>
|
673
|
+
<span class='rubyid_java_hash identifier id'>java_hash</span><span class='dot token'>.</span><span class='rubyid_to_hash identifier id'>to_hash</span>
|
674
|
+
<span class='rubyid_end end kw'>end</span>
|
675
|
+
</pre>
|
676
|
+
</td>
|
677
|
+
</tr>
|
678
|
+
</table>
|
679
|
+
</div>
|
680
|
+
|
681
|
+
<div class="method_details ">
|
682
|
+
<h3 class="signature " id="create-instance_method">
|
683
|
+
|
684
|
+
- (<tt>Object</tt>) <strong>create</strong>(target_class, *args)
|
685
|
+
|
686
|
+
|
687
|
+
|
688
|
+
|
689
|
+
|
690
|
+
</h3><div class="docstring">
|
691
|
+
<div class="discussion">
|
692
|
+
|
693
|
+
<p>Create a Java Object</p>
|
694
|
+
|
695
|
+
|
696
|
+
</div>
|
697
|
+
</div>
|
698
|
+
<div class="tags">
|
699
|
+
|
700
|
+
|
701
|
+
</div><table class="source_code">
|
702
|
+
<tr>
|
703
|
+
<td>
|
704
|
+
<pre class="lines">
|
705
|
+
|
706
|
+
|
707
|
+
38
|
708
|
+
39
|
709
|
+
40</pre>
|
710
|
+
</td>
|
711
|
+
<td>
|
712
|
+
<pre class="code"><span class="info file"># File 'lib/naether/java/jruby.rb', line 38</span>
|
713
|
+
|
714
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_create identifier id'>create</span><span class='lparen token'>(</span> <span class='rubyid_target_class identifier id'>target_class</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='rubyid_args identifier id'>args</span> <span class='rparen token'>)</span>
|
715
|
+
<span class='rubyid_@class_loader ivar id'>@class_loader</span><span class='dot token'>.</span><span class='rubyid_newInstance identifier id'>newInstance</span><span class='lparen token'>(</span><span class='rubyid_target_class identifier id'>target_class</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='rubyid_args identifier id'>args</span> <span class='rparen token'>)</span>
|
716
|
+
<span class='rubyid_end end kw'>end</span>
|
717
|
+
</pre>
|
718
|
+
</td>
|
719
|
+
</tr>
|
720
|
+
</table>
|
721
|
+
</div>
|
722
|
+
|
723
|
+
<div class="method_details ">
|
724
|
+
<h3 class="signature " id="exec_static_method-instance_method">
|
725
|
+
|
726
|
+
- (<tt>Object</tt>) <strong>exec_static_method</strong>(target_class, target_method, params, types = nil)
|
727
|
+
|
728
|
+
|
729
|
+
|
730
|
+
|
731
|
+
|
732
|
+
</h3><div class="docstring">
|
733
|
+
<div class="discussion">
|
734
|
+
|
735
|
+
<p>Execute a Staic method on a Java class</p>
|
736
|
+
|
737
|
+
|
738
|
+
</div>
|
739
|
+
</div>
|
740
|
+
<div class="tags">
|
741
|
+
|
742
|
+
|
743
|
+
</div><table class="source_code">
|
744
|
+
<tr>
|
745
|
+
<td>
|
746
|
+
<pre class="lines">
|
747
|
+
|
748
|
+
|
749
|
+
45
|
750
|
+
46
|
751
|
+
47
|
752
|
+
48
|
753
|
+
49
|
754
|
+
50
|
755
|
+
51
|
756
|
+
52
|
757
|
+
53
|
758
|
+
54
|
759
|
+
55
|
760
|
+
56
|
761
|
+
57</pre>
|
762
|
+
</td>
|
763
|
+
<td>
|
764
|
+
<pre class="code"><span class="info file"># File 'lib/naether/java/jruby.rb', line 45</span>
|
765
|
+
|
766
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_exec_static_method identifier id'>exec_static_method</span><span class='lparen token'>(</span> <span class='rubyid_target_class identifier id'>target_class</span><span class='comma token'>,</span> <span class='rubyid_target_method identifier id'>target_method</span><span class='comma token'>,</span> <span class='rubyid_params identifier id'>params</span><span class='comma token'>,</span> <span class='rubyid_types identifier id'>types</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span> <span class='rparen token'>)</span>
|
767
|
+
<span class='rubyid_unless unless kw'>unless</span> <span class='rubyid_params identifier id'>params</span><span class='dot token'>.</span><span class='rubyid_is_a? fid id'>is_a?</span> <span class='rubyid_Array constant id'>Array</span>
|
768
|
+
<span class='rubyid_params identifier id'>params</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rubyid_params identifier id'>params</span><span class='rbrack token'>]</span>
|
769
|
+
<span class='rubyid_end end kw'>end</span>
|
770
|
+
|
771
|
+
<span class='rubyid_if if kw'>if</span> <span class='rubyid_types identifier id'>types</span>
|
772
|
+
<span class='rubyid_unless unless kw'>unless</span> <span class='rubyid_types identifier id'>types</span><span class='dot token'>.</span><span class='rubyid_is_a? fid id'>is_a?</span> <span class='rubyid_Array constant id'>Array</span>
|
773
|
+
<span class='rubyid_types identifier id'>types</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rubyid_types identifier id'>types</span><span class='rbrack token'>]</span>
|
774
|
+
<span class='rubyid_end end kw'>end</span>
|
775
|
+
<span class='rubyid_end end kw'>end</span>
|
776
|
+
|
777
|
+
<span class='rubyid_@class_loader ivar id'>@class_loader</span><span class='dot token'>.</span><span class='rubyid_execStaticMethod identifier id'>execStaticMethod</span><span class='lparen token'>(</span> <span class='rubyid_target_class identifier id'>target_class</span><span class='comma token'>,</span> <span class='rubyid_target_method identifier id'>target_method</span><span class='comma token'>,</span> <span class='rubyid_params identifier id'>params</span><span class='comma token'>,</span> <span class='rubyid_types identifier id'>types</span> <span class='rparen token'>)</span>
|
778
|
+
<span class='rubyid_end end kw'>end</span>
|
779
|
+
</pre>
|
780
|
+
</td>
|
781
|
+
</tr>
|
782
|
+
</table>
|
783
|
+
</div>
|
784
|
+
|
785
|
+
<div class="method_details ">
|
786
|
+
<h3 class="signature " id="internal_load_paths-instance_method">
|
787
|
+
|
788
|
+
- (<tt>Object</tt>) <strong>internal_load_paths</strong>(paths)
|
789
|
+
|
790
|
+
|
791
|
+
|
792
|
+
|
793
|
+
|
794
|
+
</h3><div class="docstring">
|
795
|
+
<div class="discussion">
|
796
|
+
|
797
|
+
<p>Load a path into the internal Naether ClassLoader</p>
|
798
|
+
|
799
|
+
|
800
|
+
</div>
|
801
|
+
</div>
|
802
|
+
<div class="tags">
|
803
|
+
|
804
|
+
|
805
|
+
</div><table class="source_code">
|
806
|
+
<tr>
|
807
|
+
<td>
|
808
|
+
<pre class="lines">
|
809
|
+
|
810
|
+
|
811
|
+
62
|
812
|
+
63
|
813
|
+
64
|
814
|
+
65
|
815
|
+
66
|
816
|
+
67
|
817
|
+
68
|
818
|
+
69
|
819
|
+
70
|
820
|
+
71
|
821
|
+
72
|
822
|
+
73
|
823
|
+
74
|
824
|
+
75
|
825
|
+
76
|
826
|
+
77
|
827
|
+
78</pre>
|
828
|
+
</td>
|
829
|
+
<td>
|
830
|
+
<pre class="code"><span class="info file"># File 'lib/naether/java/jruby.rb', line 62</span>
|
831
|
+
|
832
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_internal_load_paths identifier id'>internal_load_paths</span><span class='lparen token'>(</span><span class='rubyid_paths identifier id'>paths</span><span class='rparen token'>)</span>
|
833
|
+
<span class='rubyid_load_paths identifier id'>load_paths</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
|
834
|
+
<span class='rubyid_unless unless kw'>unless</span> <span class='rubyid_paths identifier id'>paths</span><span class='dot token'>.</span><span class='rubyid_is_a? fid id'>is_a?</span> <span class='rubyid_Array constant id'>Array</span>
|
835
|
+
<span class='rubyid_paths identifier id'>paths</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rubyid_paths identifier id'>paths</span><span class='rbrack token'>]</span>
|
836
|
+
<span class='rubyid_end end kw'>end</span>
|
837
|
+
|
838
|
+
<span class='rubyid_paths identifier id'>paths</span><span class='dot token'>.</span><span class='rubyid_each identifier id'>each</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_path identifier id'>path</span><span class='bitor op'>|</span>
|
839
|
+
<span class='rubyid_expanded_path identifier id'>expanded_path</span> <span class='assign token'>=</span> <span class='rubyid_File constant id'>File</span><span class='dot token'>.</span><span class='rubyid_expand_path identifier id'>expand_path</span><span class='lparen token'>(</span><span class='rubyid_path identifier id'>path</span><span class='rparen token'>)</span>
|
840
|
+
<span class='rubyid_if if kw'>if</span> <span class='rubyid_File constant id'>File</span><span class='dot token'>.</span><span class='rubyid_exists? fid id'>exists?</span><span class='lparen token'>(</span> <span class='rubyid_expanded_path identifier id'>expanded_path</span> <span class='rparen token'>)</span>
|
841
|
+
<span class='rubyid_@class_loader ivar id'>@class_loader</span><span class='dot token'>.</span><span class='rubyid_addPath identifier id'>addPath</span><span class='lparen token'>(</span> <span class='rubyid_expanded_path identifier id'>expanded_path</span> <span class='rparen token'>)</span>
|
842
|
+
|
843
|
+
<span class='rubyid_load_paths identifier id'>load_paths</span> <span class='lshft op'><<</span> <span class='rubyid_expanded_path identifier id'>expanded_path</span>
|
844
|
+
<span class='rubyid_end end kw'>end</span>
|
845
|
+
<span class='rubyid_end end kw'>end</span>
|
846
|
+
|
847
|
+
<span class='rubyid_load_paths identifier id'>load_paths</span>
|
848
|
+
<span class='rubyid_end end kw'>end</span>
|
849
|
+
</pre>
|
850
|
+
</td>
|
851
|
+
</tr>
|
852
|
+
</table>
|
853
|
+
</div>
|
854
|
+
|
855
|
+
<div class="method_details ">
|
856
|
+
<h3 class="signature " id="load_paths-instance_method">
|
857
|
+
|
858
|
+
- (<tt>Object</tt>) <strong>load_paths</strong>(paths)
|
859
|
+
|
860
|
+
|
861
|
+
|
862
|
+
|
863
|
+
|
864
|
+
</h3><div class="docstring">
|
865
|
+
<div class="discussion">
|
866
|
+
|
867
|
+
<p>Load a path onto the Global ClassLoader</p>
|
868
|
+
|
869
|
+
|
870
|
+
</div>
|
871
|
+
</div>
|
872
|
+
<div class="tags">
|
873
|
+
|
874
|
+
|
875
|
+
</div><table class="source_code">
|
876
|
+
<tr>
|
877
|
+
<td>
|
878
|
+
<pre class="lines">
|
879
|
+
|
880
|
+
|
881
|
+
83
|
882
|
+
84
|
883
|
+
85
|
884
|
+
86
|
885
|
+
87
|
886
|
+
88
|
887
|
+
89
|
888
|
+
90
|
889
|
+
91
|
890
|
+
92
|
891
|
+
93
|
892
|
+
94
|
893
|
+
95
|
894
|
+
96
|
895
|
+
97
|
896
|
+
98
|
897
|
+
99</pre>
|
898
|
+
</td>
|
899
|
+
<td>
|
900
|
+
<pre class="code"><span class="info file"># File 'lib/naether/java/jruby.rb', line 83</span>
|
901
|
+
|
902
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_load_paths identifier id'>load_paths</span><span class='lparen token'>(</span><span class='rubyid_paths identifier id'>paths</span><span class='rparen token'>)</span>
|
903
|
+
<span class='rubyid_load_paths identifier id'>load_paths</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
|
904
|
+
<span class='rubyid_unless unless kw'>unless</span> <span class='rubyid_paths identifier id'>paths</span><span class='dot token'>.</span><span class='rubyid_is_a? fid id'>is_a?</span> <span class='rubyid_Array constant id'>Array</span>
|
905
|
+
<span class='rubyid_paths identifier id'>paths</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rubyid_paths identifier id'>paths</span><span class='rbrack token'>]</span>
|
906
|
+
<span class='rubyid_end end kw'>end</span>
|
907
|
+
|
908
|
+
<span class='rubyid_paths identifier id'>paths</span><span class='dot token'>.</span><span class='rubyid_each identifier id'>each</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_path identifier id'>path</span><span class='bitor op'>|</span>
|
909
|
+
<span class='rubyid_expanded_path identifier id'>expanded_path</span> <span class='assign token'>=</span> <span class='rubyid_File constant id'>File</span><span class='dot token'>.</span><span class='rubyid_expand_path identifier id'>expand_path</span><span class='lparen token'>(</span><span class='rubyid_path identifier id'>path</span><span class='rparen token'>)</span>
|
910
|
+
<span class='rubyid_if if kw'>if</span> <span class='notop op'>!</span><span class='rubyid_@loaded_paths ivar id'>@loaded_paths</span><span class='dot token'>.</span><span class='rubyid_include? fid id'>include?</span><span class='lparen token'>(</span> <span class='rubyid_expanded_path identifier id'>expanded_path</span> <span class='rparen token'>)</span> <span class='andop op'>&&</span> <span class='rubyid_File constant id'>File</span><span class='dot token'>.</span><span class='rubyid_exists? fid id'>exists?</span><span class='lparen token'>(</span> <span class='rubyid_expanded_path identifier id'>expanded_path</span> <span class='rparen token'>)</span>
|
911
|
+
<span class='rubyid_$CLASSPATH gvar id'>$CLASSPATH</span> <span class='lshft op'><<</span> <span class='rubyid_expanded_path identifier id'>expanded_path</span>
|
912
|
+
<span class='rubyid_load_paths identifier id'>load_paths</span> <span class='lshft op'><<</span> <span class='rubyid_expanded_path identifier id'>expanded_path</span>
|
913
|
+
<span class='rubyid_@loaded_paths ivar id'>@loaded_paths</span> <span class='lshft op'><<</span> <span class='rubyid_expanded_path identifier id'>expanded_path</span>
|
914
|
+
<span class='rubyid_end end kw'>end</span>
|
915
|
+
<span class='rubyid_end end kw'>end</span>
|
916
|
+
|
917
|
+
<span class='rubyid_load_paths identifier id'>load_paths</span>
|
918
|
+
<span class='rubyid_end end kw'>end</span>
|
919
|
+
</pre>
|
920
|
+
</td>
|
921
|
+
</tr>
|
922
|
+
</table>
|
923
|
+
</div>
|
924
|
+
|
925
|
+
</div>
|
926
|
+
|
927
|
+
</div>
|
928
|
+
|
929
|
+
<div id="footer">
|
930
|
+
Generated on Mon Sep 17 21:48:47 2012 by
|
931
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
932
|
+
0.8.2.1 (ruby-1.8.7).
|
933
|
+
</div>
|
934
|
+
|
935
|
+
</body>
|
936
|
+
</html>
|