naether 0.8.6 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,926 @@
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
+ &mdash; 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> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../../Naether.html" title="Naether (class)">Naether</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Java.html" title="Naether::Java (class)">Java</a></span></span>
36
+ &raquo;
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='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
429
+ <span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>java</span><span class='tstring_end'>'</span></span>
430
+
431
+ <span class='id identifier rubyid_naether_jar'>naether_jar</span> <span class='op'>=</span> <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Configuration</span><span class='period'>.</span><span class='id identifier rubyid_naether_jar'>naether_jar</span>
432
+
433
+ <span class='ivar'>@loaded_paths</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
434
+
435
+ <span class='id identifier rubyid_load_paths'>load_paths</span><span class='lparen'>(</span><span class='id identifier rubyid_naether_jar'>naether_jar</span><span class='rparen'>)</span>
436
+ <span class='ivar'>@class_loader</span> <span class='op'>=</span> <span class='id identifier rubyid_com'>com</span><span class='period'>.</span><span class='id identifier rubyid_tobedevoured'>tobedevoured</span><span class='period'>.</span><span class='id identifier rubyid_naether'>naether</span><span class='period'>.</span><span class='const'>PathClassLoader</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='rparen'>)</span>
437
+ <span class='id identifier rubyid_internal_load_paths'>internal_load_paths</span><span class='lparen'>(</span><span class='id identifier rubyid_naether_jar'>naether_jar</span><span class='rparen'>)</span>
438
+ <span class='kw'>end</span></pre>
439
+ </td>
440
+ </tr>
441
+ </table>
442
+ </div>
443
+
444
+ </div>
445
+
446
+ <div id="instance_attr_details" class="attr_details">
447
+ <h2>Instance Attribute Details</h2>
448
+
449
+
450
+ <span id=""></span>
451
+ <div class="method_details first">
452
+ <h3 class="signature first" id="class_loader-instance_method">
453
+
454
+ - (<tt>Object</tt>) <strong>class_loader</strong> <span class="extras">(readonly)</span>
455
+
456
+
457
+
458
+
459
+
460
+ </h3><div class="docstring">
461
+ <div class="discussion">
462
+
463
+ <p>Returns the value of attribute class_loader</p>
464
+
465
+
466
+ </div>
467
+ </div>
468
+ <div class="tags">
469
+
470
+
471
+ </div><table class="source_code">
472
+ <tr>
473
+ <td>
474
+ <pre class="lines">
475
+
476
+
477
+ 17
478
+ 18
479
+ 19</pre>
480
+ </td>
481
+ <td>
482
+ <pre class="code"><span class="info file"># File 'lib/naether/java/jruby.rb', line 17</span>
483
+
484
+ <span class='kw'>def</span> <span class='id identifier rubyid_class_loader'>class_loader</span>
485
+ <span class='ivar'>@class_loader</span>
486
+ <span class='kw'>end</span></pre>
487
+ </td>
488
+ </tr>
489
+ </table>
490
+ </div>
491
+
492
+
493
+ <span id=""></span>
494
+ <div class="method_details ">
495
+ <h3 class="signature " id="loaded_paths-instance_method">
496
+
497
+ - (<tt>Object</tt>) <strong>loaded_paths</strong> <span class="extras">(readonly)</span>
498
+
499
+
500
+
501
+
502
+
503
+ </h3><div class="docstring">
504
+ <div class="discussion">
505
+
506
+ <p>Returns the value of attribute loaded_paths</p>
507
+
508
+
509
+ </div>
510
+ </div>
511
+ <div class="tags">
512
+
513
+
514
+ </div><table class="source_code">
515
+ <tr>
516
+ <td>
517
+ <pre class="lines">
518
+
519
+
520
+ 17
521
+ 18
522
+ 19</pre>
523
+ </td>
524
+ <td>
525
+ <pre class="code"><span class="info file"># File 'lib/naether/java/jruby.rb', line 17</span>
526
+
527
+ <span class='kw'>def</span> <span class='id identifier rubyid_loaded_paths'>loaded_paths</span>
528
+ <span class='ivar'>@loaded_paths</span>
529
+ <span class='kw'>end</span></pre>
530
+ </td>
531
+ </tr>
532
+ </table>
533
+ </div>
534
+
535
+ </div>
536
+
537
+
538
+ <div id="instance_method_details" class="method_details_list">
539
+ <h2>Instance Method Details</h2>
540
+
541
+
542
+ <div class="method_details first">
543
+ <h3 class="signature first" id="convert_to_java_list-instance_method">
544
+
545
+ - (<tt>Object</tt>) <strong>convert_to_java_list</strong>(ruby_array)
546
+
547
+
548
+
549
+
550
+
551
+ </h3><div class="docstring">
552
+ <div class="discussion">
553
+
554
+ <p>Convert a Ruby Array to a Java ArrayList</p>
555
+
556
+
557
+ </div>
558
+ </div>
559
+ <div class="tags">
560
+
561
+
562
+ </div><table class="source_code">
563
+ <tr>
564
+ <td>
565
+ <pre class="lines">
566
+
567
+
568
+ 104
569
+ 105
570
+ 106
571
+ 107
572
+ 108
573
+ 109
574
+ 110
575
+ 111</pre>
576
+ </td>
577
+ <td>
578
+ <pre class="code"><span class="info file"># File 'lib/naether/java/jruby.rb', line 104</span>
579
+
580
+ <span class='kw'>def</span> <span class='id identifier rubyid_convert_to_java_list'>convert_to_java_list</span><span class='lparen'>(</span> <span class='id identifier rubyid_ruby_array'>ruby_array</span> <span class='rparen'>)</span>
581
+ <span class='id identifier rubyid_list'>list</span> <span class='op'>=</span> <span class='id identifier rubyid_java'>java</span><span class='period'>.</span><span class='id identifier rubyid_util'>util</span><span class='period'>.</span><span class='const'>ArrayList</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
582
+ <span class='id identifier rubyid_ruby_array'>ruby_array</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_item'>item</span><span class='op'>|</span>
583
+ <span class='id identifier rubyid_list'>list</span><span class='period'>.</span><span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span> <span class='id identifier rubyid_item'>item</span> <span class='rparen'>)</span>
584
+ <span class='kw'>end</span>
585
+
586
+ <span class='id identifier rubyid_list'>list</span>
587
+ <span class='kw'>end</span></pre>
588
+ </td>
589
+ </tr>
590
+ </table>
591
+ </div>
592
+
593
+ <div class="method_details ">
594
+ <h3 class="signature " id="convert_to_ruby_array-instance_method">
595
+
596
+ - (<tt>Object</tt>) <strong>convert_to_ruby_array</strong>(java_array, to_string = false)
597
+
598
+
599
+
600
+
601
+
602
+ </h3><div class="docstring">
603
+ <div class="discussion">
604
+
605
+ <p>Convert a Java List to a Ruby Array</p>
606
+
607
+
608
+ </div>
609
+ </div>
610
+ <div class="tags">
611
+
612
+
613
+ </div><table class="source_code">
614
+ <tr>
615
+ <td>
616
+ <pre class="lines">
617
+
618
+
619
+ 116
620
+ 117
621
+ 118</pre>
622
+ </td>
623
+ <td>
624
+ <pre class="code"><span class="info file"># File 'lib/naether/java/jruby.rb', line 116</span>
625
+
626
+ <span class='kw'>def</span> <span class='id identifier rubyid_convert_to_ruby_array'>convert_to_ruby_array</span><span class='lparen'>(</span> <span class='id identifier rubyid_java_array'>java_array</span><span class='comma'>,</span> <span class='id identifier rubyid_to_string'>to_string</span> <span class='op'>=</span> <span class='kw'>false</span> <span class='rparen'>)</span>
627
+ <span class='id identifier rubyid_java_array'>java_array</span><span class='period'>.</span><span class='id identifier rubyid_to_a'>to_a</span>
628
+ <span class='kw'>end</span></pre>
629
+ </td>
630
+ </tr>
631
+ </table>
632
+ </div>
633
+
634
+ <div class="method_details ">
635
+ <h3 class="signature " id="convert_to_ruby_hash-instance_method">
636
+
637
+ - (<tt>Object</tt>) <strong>convert_to_ruby_hash</strong>(java_hash, to_string = false)
638
+
639
+
640
+
641
+
642
+
643
+ </h3><div class="docstring">
644
+ <div class="discussion">
645
+
646
+ <p>Convert a Java Map to a Ruby Hash</p>
647
+
648
+
649
+ </div>
650
+ </div>
651
+ <div class="tags">
652
+
653
+
654
+ </div><table class="source_code">
655
+ <tr>
656
+ <td>
657
+ <pre class="lines">
658
+
659
+
660
+ 123
661
+ 124
662
+ 125</pre>
663
+ </td>
664
+ <td>
665
+ <pre class="code"><span class="info file"># File 'lib/naether/java/jruby.rb', line 123</span>
666
+
667
+ <span class='kw'>def</span> <span class='id identifier rubyid_convert_to_ruby_hash'>convert_to_ruby_hash</span><span class='lparen'>(</span> <span class='id identifier rubyid_java_hash'>java_hash</span><span class='comma'>,</span> <span class='id identifier rubyid_to_string'>to_string</span> <span class='op'>=</span> <span class='kw'>false</span> <span class='rparen'>)</span>
668
+ <span class='id identifier rubyid_java_hash'>java_hash</span><span class='period'>.</span><span class='id identifier rubyid_to_hash'>to_hash</span>
669
+ <span class='kw'>end</span></pre>
670
+ </td>
671
+ </tr>
672
+ </table>
673
+ </div>
674
+
675
+ <div class="method_details ">
676
+ <h3 class="signature " id="create-instance_method">
677
+
678
+ - (<tt>Object</tt>) <strong>create</strong>(target_class, *args)
679
+
680
+
681
+
682
+
683
+
684
+ </h3><div class="docstring">
685
+ <div class="discussion">
686
+
687
+ <p>Create a Java Object</p>
688
+
689
+
690
+ </div>
691
+ </div>
692
+ <div class="tags">
693
+
694
+
695
+ </div><table class="source_code">
696
+ <tr>
697
+ <td>
698
+ <pre class="lines">
699
+
700
+
701
+ 38
702
+ 39
703
+ 40</pre>
704
+ </td>
705
+ <td>
706
+ <pre class="code"><span class="info file"># File 'lib/naether/java/jruby.rb', line 38</span>
707
+
708
+ <span class='kw'>def</span> <span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span> <span class='id identifier rubyid_target_class'>target_class</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
709
+ <span class='ivar'>@class_loader</span><span class='period'>.</span><span class='id identifier rubyid_newInstance'>newInstance</span><span class='lparen'>(</span><span class='id identifier rubyid_target_class'>target_class</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span> <span class='rparen'>)</span>
710
+ <span class='kw'>end</span></pre>
711
+ </td>
712
+ </tr>
713
+ </table>
714
+ </div>
715
+
716
+ <div class="method_details ">
717
+ <h3 class="signature " id="exec_static_method-instance_method">
718
+
719
+ - (<tt>Object</tt>) <strong>exec_static_method</strong>(target_class, target_method, params, types = nil)
720
+
721
+
722
+
723
+
724
+
725
+ </h3><div class="docstring">
726
+ <div class="discussion">
727
+
728
+ <p>Execute a Staic method on a Java class</p>
729
+
730
+
731
+ </div>
732
+ </div>
733
+ <div class="tags">
734
+
735
+
736
+ </div><table class="source_code">
737
+ <tr>
738
+ <td>
739
+ <pre class="lines">
740
+
741
+
742
+ 45
743
+ 46
744
+ 47
745
+ 48
746
+ 49
747
+ 50
748
+ 51
749
+ 52
750
+ 53
751
+ 54
752
+ 55
753
+ 56
754
+ 57</pre>
755
+ </td>
756
+ <td>
757
+ <pre class="code"><span class="info file"># File 'lib/naether/java/jruby.rb', line 45</span>
758
+
759
+ <span class='kw'>def</span> <span class='id identifier rubyid_exec_static_method'>exec_static_method</span><span class='lparen'>(</span> <span class='id identifier rubyid_target_class'>target_class</span><span class='comma'>,</span> <span class='id identifier rubyid_target_method'>target_method</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='id identifier rubyid_types'>types</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
760
+ <span class='kw'>unless</span> <span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Array</span>
761
+ <span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_params'>params</span><span class='rbracket'>]</span>
762
+ <span class='kw'>end</span>
763
+
764
+ <span class='kw'>if</span> <span class='id identifier rubyid_types'>types</span>
765
+ <span class='kw'>unless</span> <span class='id identifier rubyid_types'>types</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Array</span>
766
+ <span class='id identifier rubyid_types'>types</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_types'>types</span><span class='rbracket'>]</span>
767
+ <span class='kw'>end</span>
768
+ <span class='kw'>end</span>
769
+
770
+ <span class='ivar'>@class_loader</span><span class='period'>.</span><span class='id identifier rubyid_execStaticMethod'>execStaticMethod</span><span class='lparen'>(</span> <span class='id identifier rubyid_target_class'>target_class</span><span class='comma'>,</span> <span class='id identifier rubyid_target_method'>target_method</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='id identifier rubyid_types'>types</span> <span class='rparen'>)</span>
771
+ <span class='kw'>end</span></pre>
772
+ </td>
773
+ </tr>
774
+ </table>
775
+ </div>
776
+
777
+ <div class="method_details ">
778
+ <h3 class="signature " id="internal_load_paths-instance_method">
779
+
780
+ - (<tt>Object</tt>) <strong>internal_load_paths</strong>(paths)
781
+
782
+
783
+
784
+
785
+
786
+ </h3><div class="docstring">
787
+ <div class="discussion">
788
+
789
+ <p>Load a path into the internal Naether ClassLoader</p>
790
+
791
+
792
+ </div>
793
+ </div>
794
+ <div class="tags">
795
+
796
+
797
+ </div><table class="source_code">
798
+ <tr>
799
+ <td>
800
+ <pre class="lines">
801
+
802
+
803
+ 62
804
+ 63
805
+ 64
806
+ 65
807
+ 66
808
+ 67
809
+ 68
810
+ 69
811
+ 70
812
+ 71
813
+ 72
814
+ 73
815
+ 74
816
+ 75
817
+ 76
818
+ 77
819
+ 78</pre>
820
+ </td>
821
+ <td>
822
+ <pre class="code"><span class="info file"># File 'lib/naether/java/jruby.rb', line 62</span>
823
+
824
+ <span class='kw'>def</span> <span class='id identifier rubyid_internal_load_paths'>internal_load_paths</span><span class='lparen'>(</span><span class='id identifier rubyid_paths'>paths</span><span class='rparen'>)</span>
825
+ <span class='id identifier rubyid_load_paths'>load_paths</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
826
+ <span class='kw'>unless</span> <span class='id identifier rubyid_paths'>paths</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Array</span>
827
+ <span class='id identifier rubyid_paths'>paths</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_paths'>paths</span><span class='rbracket'>]</span>
828
+ <span class='kw'>end</span>
829
+
830
+ <span class='id identifier rubyid_paths'>paths</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_path'>path</span><span class='op'>|</span>
831
+ <span class='id identifier rubyid_expanded_path'>expanded_path</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_expand_path'>expand_path</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
832
+ <span class='kw'>if</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exists?'>exists?</span><span class='lparen'>(</span> <span class='id identifier rubyid_expanded_path'>expanded_path</span> <span class='rparen'>)</span>
833
+ <span class='ivar'>@class_loader</span><span class='period'>.</span><span class='id identifier rubyid_addPath'>addPath</span><span class='lparen'>(</span> <span class='id identifier rubyid_expanded_path'>expanded_path</span> <span class='rparen'>)</span>
834
+
835
+ <span class='id identifier rubyid_load_paths'>load_paths</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_expanded_path'>expanded_path</span>
836
+ <span class='kw'>end</span>
837
+ <span class='kw'>end</span>
838
+
839
+ <span class='id identifier rubyid_load_paths'>load_paths</span>
840
+ <span class='kw'>end</span></pre>
841
+ </td>
842
+ </tr>
843
+ </table>
844
+ </div>
845
+
846
+ <div class="method_details ">
847
+ <h3 class="signature " id="load_paths-instance_method">
848
+
849
+ - (<tt>Object</tt>) <strong>load_paths</strong>(paths)
850
+
851
+
852
+
853
+
854
+
855
+ </h3><div class="docstring">
856
+ <div class="discussion">
857
+
858
+ <p>Load a path onto the Global ClassLoader</p>
859
+
860
+
861
+ </div>
862
+ </div>
863
+ <div class="tags">
864
+
865
+
866
+ </div><table class="source_code">
867
+ <tr>
868
+ <td>
869
+ <pre class="lines">
870
+
871
+
872
+ 83
873
+ 84
874
+ 85
875
+ 86
876
+ 87
877
+ 88
878
+ 89
879
+ 90
880
+ 91
881
+ 92
882
+ 93
883
+ 94
884
+ 95
885
+ 96
886
+ 97
887
+ 98
888
+ 99</pre>
889
+ </td>
890
+ <td>
891
+ <pre class="code"><span class="info file"># File 'lib/naether/java/jruby.rb', line 83</span>
892
+
893
+ <span class='kw'>def</span> <span class='id identifier rubyid_load_paths'>load_paths</span><span class='lparen'>(</span><span class='id identifier rubyid_paths'>paths</span><span class='rparen'>)</span>
894
+ <span class='id identifier rubyid_load_paths'>load_paths</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
895
+ <span class='kw'>unless</span> <span class='id identifier rubyid_paths'>paths</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Array</span>
896
+ <span class='id identifier rubyid_paths'>paths</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_paths'>paths</span><span class='rbracket'>]</span>
897
+ <span class='kw'>end</span>
898
+
899
+ <span class='id identifier rubyid_paths'>paths</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_path'>path</span><span class='op'>|</span>
900
+ <span class='id identifier rubyid_expanded_path'>expanded_path</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_expand_path'>expand_path</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
901
+ <span class='kw'>if</span> <span class='op'>!</span><span class='ivar'>@loaded_paths</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span> <span class='id identifier rubyid_expanded_path'>expanded_path</span> <span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exists?'>exists?</span><span class='lparen'>(</span> <span class='id identifier rubyid_expanded_path'>expanded_path</span> <span class='rparen'>)</span>
902
+ <span class='gvar'>$CLASSPATH</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_expanded_path'>expanded_path</span>
903
+ <span class='id identifier rubyid_load_paths'>load_paths</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_expanded_path'>expanded_path</span>
904
+ <span class='ivar'>@loaded_paths</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_expanded_path'>expanded_path</span>
905
+ <span class='kw'>end</span>
906
+ <span class='kw'>end</span>
907
+
908
+ <span class='id identifier rubyid_load_paths'>load_paths</span>
909
+ <span class='kw'>end</span></pre>
910
+ </td>
911
+ </tr>
912
+ </table>
913
+ </div>
914
+
915
+ </div>
916
+
917
+ </div>
918
+
919
+ <div id="footer">
920
+ Generated on Wed Sep 12 14:18:13 2012 by
921
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
922
+ 0.8.2.1 (ruby-1.9.3).
923
+ </div>
924
+
925
+ </body>
926
+ </html>