naether 0.13.7 → 0.13.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,1207 +0,0 @@
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
8
-
9
- &mdash; Documentation by YARD 0.8.7.3
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" 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 (module)">Naether</a></span></span>
36
- &raquo;
37
- <span class="title">Java</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
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</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.rb<span class="defines">,<br />
102
- lib/naether/java/ruby.rb,<br /> lib/naether/java/jruby.rb</span>
103
- </dd>
104
-
105
- </dl>
106
- <div class="clear"></div>
107
-
108
- <h2>Defined Under Namespace</h2>
109
- <p class="children">
110
-
111
-
112
-
113
-
114
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="Java/JRuby.html" title="Naether::Java::JRuby (class)">JRuby</a></span>, <span class='object_link'><a href="Java/Ruby.html" title="Naether::Java::Ruby (class)">Ruby</a></span>
115
-
116
-
117
- </p>
118
-
119
-
120
-
121
-
122
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
123
- <ul class="summary">
124
-
125
- <li class="public ">
126
- <span class="summary_signature">
127
-
128
- <a href="#java-instance_method" title="#java (instance method)">- (Object) <strong>java</strong> </a>
129
-
130
-
131
-
132
- </span>
133
-
134
-
135
-
136
-
137
- <span class="note title readonly">readonly</span>
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
-
146
-
147
- <span class="summary_desc"><div class='inline'>
148
- <p>Returns the value of attribute java.</p>
149
- </div></span>
150
-
151
- </li>
152
-
153
-
154
- </ul>
155
-
156
-
157
-
158
-
159
-
160
- <h2>
161
- Class Method Summary
162
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
163
- </h2>
164
-
165
- <ul class="summary">
166
-
167
- <li class="public ">
168
- <span class="summary_signature">
169
-
170
- <a href="#convert_to_java_list-class_method" title="convert_to_java_list (class method)">+ (java.util.ArrayList) <strong>convert_to_java_list</strong>(ruby_array) </a>
171
-
172
-
173
-
174
- </span>
175
-
176
-
177
-
178
-
179
-
180
-
181
-
182
-
183
-
184
- <span class="summary_desc"><div class='inline'>
185
- <p>Convert a Ruby Array to a java.util.ArrayList.</p>
186
- </div></span>
187
-
188
- </li>
189
-
190
-
191
- <li class="public ">
192
- <span class="summary_signature">
193
-
194
- <a href="#convert_to_ruby_array-class_method" title="convert_to_ruby_array (class method)">+ (Array) <strong>convert_to_ruby_array</strong>(java_array, to_string = false) </a>
195
-
196
-
197
-
198
- </span>
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
-
208
- <span class="summary_desc"><div class='inline'>
209
- <p>Convert a java,util.List to a Ruby Array.</p>
210
- </div></span>
211
-
212
- </li>
213
-
214
-
215
- <li class="public ">
216
- <span class="summary_signature">
217
-
218
- <a href="#convert_to_ruby_hash-class_method" title="convert_to_ruby_hash (class method)">+ (Hash) <strong>convert_to_ruby_hash</strong>(java_hash, to_string = false) </a>
219
-
220
-
221
-
222
- </span>
223
-
224
-
225
-
226
-
227
-
228
-
229
-
230
-
231
-
232
- <span class="summary_desc"><div class='inline'>
233
- <p>Convert a java.util.Map to a Ruby Hash.</p>
234
- </div></span>
235
-
236
- </li>
237
-
238
-
239
- <li class="public ">
240
- <span class="summary_signature">
241
-
242
- <a href="#create-class_method" title="create (class method)">+ (Object) <strong>create</strong>(target_class, *args) </a>
243
-
244
-
245
-
246
- </span>
247
-
248
-
249
-
250
-
251
-
252
-
253
-
254
-
255
-
256
- <span class="summary_desc"><div class='inline'>
257
- <p>Create a Java Object from the Naether Class Loader.</p>
258
- </div></span>
259
-
260
- </li>
261
-
262
-
263
- <li class="public ">
264
- <span class="summary_signature">
265
-
266
- <a href="#exec_static_method-class_method" title="exec_static_method (class method)">+ (Object) <strong>exec_static_method</strong>(target_class, target_method, params, types = nil) </a>
267
-
268
-
269
-
270
- </span>
271
-
272
-
273
-
274
-
275
-
276
-
277
-
278
-
279
-
280
- <span class="summary_desc"><div class='inline'>
281
- <p>Execute a Staic method on a Java class from the Naether Class Loader.</p>
282
- </div></span>
283
-
284
- </li>
285
-
286
-
287
- <li class="public ">
288
- <span class="summary_signature">
289
-
290
- <a href="#internal_load_paths-class_method" title="internal_load_paths (class method)">+ (Object) <strong>internal_load_paths</strong>(paths) </a>
291
-
292
-
293
-
294
- </span>
295
-
296
-
297
-
298
-
299
-
300
-
301
-
302
-
303
-
304
- <span class="summary_desc"><div class='inline'>
305
- <p>Load a path into the internal Naether ClassLoader.</p>
306
- </div></span>
307
-
308
- </li>
309
-
310
-
311
- <li class="public ">
312
- <span class="summary_signature">
313
-
314
- <a href="#internal_loaded_paths-class_method" title="internal_loaded_paths (class method)">+ (Object) <strong>internal_loaded_paths</strong> </a>
315
-
316
-
317
-
318
- </span>
319
-
320
-
321
-
322
-
323
-
324
-
325
-
326
-
327
-
328
- <span class="summary_desc"><div class='inline'></div></span>
329
-
330
- </li>
331
-
332
-
333
- <li class="public ">
334
- <span class="summary_signature">
335
-
336
- <a href="#load_paths-class_method" title="load_paths (class method)">+ (Object) <strong>load_paths</strong>(paths) </a>
337
-
338
-
339
-
340
- </span>
341
-
342
-
343
-
344
-
345
-
346
-
347
-
348
-
349
-
350
- <span class="summary_desc"><div class='inline'>
351
- <p>Load a path onto the parent ClassLoader.</p>
352
- </div></span>
353
-
354
- </li>
355
-
356
-
357
- <li class="public ">
358
- <span class="summary_signature">
359
-
360
- <a href="#loaded_paths-class_method" title="loaded_paths (class method)">+ (Array) <strong>loaded_paths</strong> </a>
361
-
362
-
363
-
364
- </span>
365
-
366
-
367
-
368
-
369
-
370
-
371
-
372
-
373
-
374
- <span class="summary_desc"><div class='inline'>
375
- <p>Paths loaded.</p>
376
- </div></span>
377
-
378
- </li>
379
-
380
-
381
- </ul>
382
-
383
- <h2>
384
- Instance Method Summary
385
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
386
- </h2>
387
-
388
- <ul class="summary">
389
-
390
- <li class="public ">
391
- <span class="summary_signature">
392
-
393
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (Java) <strong>initialize</strong> </a>
394
-
395
-
396
-
397
- </span>
398
-
399
-
400
- <span class="note title constructor">constructor</span>
401
-
402
-
403
-
404
-
405
-
406
-
407
-
408
-
409
- <span class="summary_desc"><div class='inline'>
410
- <p>Creates new instance by loading the Naether jar to the parent ClassLoader
411
- and creating the internal Naether ClassLoader.</p>
412
- </div></span>
413
-
414
- </li>
415
-
416
-
417
- </ul>
418
-
419
-
420
-
421
- <div id="constructor_details" class="method_details_list">
422
- <h2>Constructor Details</h2>
423
-
424
- <div class="method_details first">
425
- <h3 class="signature first" id="initialize-instance_method">
426
-
427
- - (<tt><span class='object_link'><a href="" title="Naether::Java (class)">Java</a></span></tt>) <strong>initialize</strong>
428
-
429
-
430
-
431
-
432
-
433
- </h3><div class="docstring">
434
- <div class="discussion">
435
-
436
- <p>Creates new instance by loading the Naether jar to the parent ClassLoader
437
- and creating the internal Naether ClassLoader</p>
438
-
439
-
440
- </div>
441
- </div>
442
- <div class="tags">
443
-
444
-
445
- </div><table class="source_code">
446
- <tr>
447
- <td>
448
- <pre class="lines">
449
-
450
-
451
- 20
452
- 21
453
- 22
454
- 23
455
- 24
456
- 25
457
- 26
458
- 27
459
- 28
460
- 29
461
- 30
462
- 31
463
- 32
464
- 33
465
- 34</pre>
466
- </td>
467
- <td>
468
- <pre class="code"><span class="info file"># File 'lib/naether/java.rb', line 20</span>
469
-
470
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='rparen'>)</span>
471
- <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>
472
-
473
- <span class='kw'>unless</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exists?'>exists?</span> <span class='id identifier rubyid_naether_jar'>naether_jar</span>
474
- <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Cannot create Naether::Java: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_naether_jar'>naether_jar</span><span class='rbrace'>}</span><span class='tstring_content'> does not exist</span><span class='tstring_end'>&quot;</span></span>
475
- <span class='kw'>end</span>
476
-
477
- <span class='kw'>if</span> <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Configuration</span><span class='period'>.</span><span class='id identifier rubyid_platform'>platform</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>java</span><span class='tstring_end'>'</span></span>
478
- <span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rbrace'>}</span><span class='tstring_content'>/java/jruby</span><span class='tstring_end'>&quot;</span></span>
479
- <span class='ivar'>@java</span> <span class='op'>=</span> <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='op'>::</span><span class='const'>JRuby</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
480
- <span class='kw'>else</span>
481
- <span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rbrace'>}</span><span class='tstring_content'>/java/ruby</span><span class='tstring_end'>&quot;</span></span>
482
- <span class='ivar'>@java</span> <span class='op'>=</span> <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='op'>::</span><span class='const'>Ruby</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
483
- <span class='kw'>end</span>
484
- <span class='kw'>end</span></pre>
485
- </td>
486
- </tr>
487
- </table>
488
- </div>
489
-
490
- </div>
491
-
492
- <div id="instance_attr_details" class="attr_details">
493
- <h2>Instance Attribute Details</h2>
494
-
495
-
496
- <span id=""></span>
497
- <div class="method_details first">
498
- <h3 class="signature first" id="java-instance_method">
499
-
500
- - (<tt>Object</tt>) <strong>java</strong> <span class="extras">(readonly)</span>
501
-
502
-
503
-
504
-
505
-
506
- </h3><div class="docstring">
507
- <div class="discussion">
508
-
509
- <p>Returns the value of attribute java</p>
510
-
511
-
512
- </div>
513
- </div>
514
- <div class="tags">
515
-
516
-
517
- </div><table class="source_code">
518
- <tr>
519
- <td>
520
- <pre class="lines">
521
-
522
-
523
- 14
524
- 15
525
- 16</pre>
526
- </td>
527
- <td>
528
- <pre class="code"><span class="info file"># File 'lib/naether/java.rb', line 14</span>
529
-
530
- <span class='kw'>def</span> <span class='id identifier rubyid_java'>java</span>
531
- <span class='ivar'>@java</span>
532
- <span class='kw'>end</span></pre>
533
- </td>
534
- </tr>
535
- </table>
536
- </div>
537
-
538
- </div>
539
-
540
-
541
- <div id="class_method_details" class="method_details_list">
542
- <h2>Class Method Details</h2>
543
-
544
-
545
- <div class="method_details first">
546
- <h3 class="signature first" id="convert_to_java_list-class_method">
547
-
548
- + (<tt>java.util.ArrayList</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.util.ArrayList</p>
558
-
559
-
560
- </div>
561
- </div>
562
- <div class="tags">
563
- <p class="tag_title">Parameters:</p>
564
- <ul class="param">
565
-
566
- <li>
567
-
568
- <span class='name'>ruby_array</span>
569
-
570
-
571
- <span class='type'>(<tt>Array</tt>)</span>
572
-
573
-
574
-
575
- &mdash;
576
- <div class='inline'>
577
- <p>to convert to Java.util.ArrayList</p>
578
- </div>
579
-
580
- </li>
581
-
582
- </ul>
583
-
584
- <p class="tag_title">Returns:</p>
585
- <ul class="return">
586
-
587
- <li>
588
-
589
-
590
- <span class='type'>(<tt>java.util.ArrayList</tt>)</span>
591
-
592
-
593
-
594
- </li>
595
-
596
- </ul>
597
-
598
- </div><table class="source_code">
599
- <tr>
600
- <td>
601
- <pre class="lines">
602
-
603
-
604
- 94
605
- 95
606
- 96</pre>
607
- </td>
608
- <td>
609
- <pre class="code"><span class="info file"># File 'lib/naether/java.rb', line 94</span>
610
-
611
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</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>
612
- <span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_java'>java</span><span class='period'>.</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>
613
- <span class='kw'>end</span></pre>
614
- </td>
615
- </tr>
616
- </table>
617
- </div>
618
-
619
- <div class="method_details ">
620
- <h3 class="signature " id="convert_to_ruby_array-class_method">
621
-
622
- + (<tt>Array</tt>) <strong>convert_to_ruby_array</strong>(java_array, to_string = false)
623
-
624
-
625
-
626
-
627
-
628
- </h3><div class="docstring">
629
- <div class="discussion">
630
-
631
- <p>Convert a java,util.List to a Ruby Array</p>
632
-
633
-
634
- </div>
635
- </div>
636
- <div class="tags">
637
- <p class="tag_title">Parameters:</p>
638
- <ul class="param">
639
-
640
- <li>
641
-
642
- <span class='name'>java_array</span>
643
-
644
-
645
- <span class='type'>(<tt>java.util.ArrayList</tt>)</span>
646
-
647
-
648
-
649
- </li>
650
-
651
- <li>
652
-
653
- <span class='name'>to_string</span>
654
-
655
-
656
- <span class='type'>(<tt>Boolean</tt>)</span>
657
-
658
-
659
- <em class="default">(defaults to: <tt>false</tt>)</em>
660
-
661
-
662
- &mdash;
663
- <div class='inline'>
664
- <p>platform dependent helper</p>
665
- </div>
666
-
667
- </li>
668
-
669
- </ul>
670
-
671
- <p class="tag_title">Returns:</p>
672
- <ul class="return">
673
-
674
- <li>
675
-
676
-
677
- <span class='type'>(<tt>Array</tt>)</span>
678
-
679
-
680
-
681
- </li>
682
-
683
- </ul>
684
-
685
- </div><table class="source_code">
686
- <tr>
687
- <td>
688
- <pre class="lines">
689
-
690
-
691
- 105
692
- 106
693
- 107</pre>
694
- </td>
695
- <td>
696
- <pre class="code"><span class="info file"># File 'lib/naether/java.rb', line 105</span>
697
-
698
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</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>
699
- <span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_java'>java</span><span class='period'>.</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='rparen'>)</span>
700
- <span class='kw'>end</span></pre>
701
- </td>
702
- </tr>
703
- </table>
704
- </div>
705
-
706
- <div class="method_details ">
707
- <h3 class="signature " id="convert_to_ruby_hash-class_method">
708
-
709
- + (<tt>Hash</tt>) <strong>convert_to_ruby_hash</strong>(java_hash, to_string = false)
710
-
711
-
712
-
713
-
714
-
715
- </h3><div class="docstring">
716
- <div class="discussion">
717
-
718
- <p>Convert a java.util.Map to a Ruby Hash</p>
719
-
720
-
721
- </div>
722
- </div>
723
- <div class="tags">
724
- <p class="tag_title">Parameters:</p>
725
- <ul class="param">
726
-
727
- <li>
728
-
729
- <span class='name'>java_hash</span>
730
-
731
-
732
- <span class='type'>(<tt>java.util.Map</tt>)</span>
733
-
734
-
735
-
736
- </li>
737
-
738
- <li>
739
-
740
- <span class='name'>to_string</span>
741
-
742
-
743
- <span class='type'>(<tt>Boolean</tt>)</span>
744
-
745
-
746
- <em class="default">(defaults to: <tt>false</tt>)</em>
747
-
748
-
749
- &mdash;
750
- <div class='inline'>
751
- <p>platform dependent helper</p>
752
- </div>
753
-
754
- </li>
755
-
756
- </ul>
757
-
758
- <p class="tag_title">Returns:</p>
759
- <ul class="return">
760
-
761
- <li>
762
-
763
-
764
- <span class='type'>(<tt>Hash</tt>)</span>
765
-
766
-
767
-
768
- </li>
769
-
770
- </ul>
771
-
772
- </div><table class="source_code">
773
- <tr>
774
- <td>
775
- <pre class="lines">
776
-
777
-
778
- 116
779
- 117
780
- 118</pre>
781
- </td>
782
- <td>
783
- <pre class="code"><span class="info file"># File 'lib/naether/java.rb', line 116</span>
784
-
785
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</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>
786
- <span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_java'>java</span><span class='period'>.</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='rparen'>)</span>
787
- <span class='kw'>end</span></pre>
788
- </td>
789
- </tr>
790
- </table>
791
- </div>
792
-
793
- <div class="method_details ">
794
- <h3 class="signature " id="create-class_method">
795
-
796
- + (<tt>Object</tt>) <strong>create</strong>(target_class, *args)
797
-
798
-
799
-
800
-
801
-
802
- </h3><div class="docstring">
803
- <div class="discussion">
804
-
805
- <p>Create a Java Object from the Naether Class Loader</p>
806
-
807
-
808
- </div>
809
- </div>
810
- <div class="tags">
811
- <p class="tag_title">Parameters:</p>
812
- <ul class="param">
813
-
814
- <li>
815
-
816
- <span class='name'>target_class</span>
817
-
818
-
819
- <span class='type'>(<tt>String</tt>)</span>
820
-
821
-
822
-
823
- &mdash;
824
- <div class='inline'>
825
- <p>to create</p>
826
- </div>
827
-
828
- </li>
829
-
830
- <li>
831
-
832
- <span class='name'>args</span>
833
-
834
-
835
- <span class='type'>(<tt>Array</tt>)</span>
836
-
837
-
838
-
839
- &mdash;
840
- <div class='inline'>
841
- <p>Array of constructor arguments</p>
842
- </div>
843
-
844
- </li>
845
-
846
- </ul>
847
-
848
-
849
- </div><table class="source_code">
850
- <tr>
851
- <td>
852
- <pre class="lines">
853
-
854
-
855
- 72
856
- 73
857
- 74</pre>
858
- </td>
859
- <td>
860
- <pre class="code"><span class="info file"># File 'lib/naether/java.rb', line 72</span>
861
-
862
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</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>
863
- <span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_java'>java</span><span class='period'>.</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>
864
- <span class='kw'>end</span></pre>
865
- </td>
866
- </tr>
867
- </table>
868
- </div>
869
-
870
- <div class="method_details ">
871
- <h3 class="signature " id="exec_static_method-class_method">
872
-
873
- + (<tt>Object</tt>) <strong>exec_static_method</strong>(target_class, target_method, params, types = nil)
874
-
875
-
876
-
877
-
878
-
879
- </h3><div class="docstring">
880
- <div class="discussion">
881
-
882
- <p>Execute a Staic method on a Java class from the Naether Class Loader</p>
883
-
884
-
885
- </div>
886
- </div>
887
- <div class="tags">
888
- <p class="tag_title">Parameters:</p>
889
- <ul class="param">
890
-
891
- <li>
892
-
893
- <span class='name'>target_class</span>
894
-
895
-
896
- <span class='type'>(<tt>String</tt>)</span>
897
-
898
-
899
-
900
- </li>
901
-
902
- <li>
903
-
904
- <span class='name'>target_method</span>
905
-
906
-
907
- <span class='type'>(<tt>String</tt>)</span>
908
-
909
-
910
-
911
- </li>
912
-
913
- <li>
914
-
915
- <span class='name'>params</span>
916
-
917
-
918
- <span class='type'>(<tt>Array</tt>)</span>
919
-
920
-
921
-
922
- &mdash;
923
- <div class='inline'>
924
- <p>Array of method parameters</p>
925
- </div>
926
-
927
- </li>
928
-
929
- <li>
930
-
931
- <span class='name'>types</span>
932
-
933
-
934
- <span class='type'>(<tt>Array</tt>)</span>
935
-
936
-
937
- <em class="default">(defaults to: <tt>nil</tt>)</em>
938
-
939
-
940
- &mdash;
941
- <div class='inline'>
942
- <p>if defined, a Array of String classes of params type that lines up with
943
- params one to one.</p>
944
- </div>
945
-
946
- </li>
947
-
948
- </ul>
949
-
950
- <p class="tag_title">Returns:</p>
951
- <ul class="return">
952
-
953
- <li>
954
-
955
-
956
- <span class='type'>(<tt>Object</tt>)</span>
957
-
958
-
959
-
960
- </li>
961
-
962
- </ul>
963
-
964
- </div><table class="source_code">
965
- <tr>
966
- <td>
967
- <pre class="lines">
968
-
969
-
970
- 84
971
- 85
972
- 86</pre>
973
- </td>
974
- <td>
975
- <pre class="code"><span class="info file"># File 'lib/naether/java.rb', line 84</span>
976
-
977
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</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>
978
- <span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_java'>java</span><span class='period'>.</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='rparen'>)</span>
979
- <span class='kw'>end</span></pre>
980
- </td>
981
- </tr>
982
- </table>
983
- </div>
984
-
985
- <div class="method_details ">
986
- <h3 class="signature " id="internal_load_paths-class_method">
987
-
988
- + (<tt>Object</tt>) <strong>internal_load_paths</strong>(paths)
989
-
990
-
991
-
992
-
993
-
994
- </h3><div class="docstring">
995
- <div class="discussion">
996
-
997
- <p>Load a path into the internal Naether ClassLoader</p>
998
-
999
-
1000
- </div>
1001
- </div>
1002
- <div class="tags">
1003
- <p class="tag_title">Parameters:</p>
1004
- <ul class="param">
1005
-
1006
- <li>
1007
-
1008
- <span class='name'>paths</span>
1009
-
1010
-
1011
- <span class='type'>(<tt>Array</tt>)</span>
1012
-
1013
-
1014
-
1015
- &mdash;
1016
- <div class='inline'>
1017
- <p>as an Array of String paths or a String path</p>
1018
- </div>
1019
-
1020
- </li>
1021
-
1022
- </ul>
1023
-
1024
-
1025
- </div><table class="source_code">
1026
- <tr>
1027
- <td>
1028
- <pre class="lines">
1029
-
1030
-
1031
- 63
1032
- 64
1033
- 65</pre>
1034
- </td>
1035
- <td>
1036
- <pre class="code"><span class="info file"># File 'lib/naether/java.rb', line 63</span>
1037
-
1038
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</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>
1039
- <span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_java'>java</span><span class='period'>.</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>
1040
- <span class='kw'>end</span></pre>
1041
- </td>
1042
- </tr>
1043
- </table>
1044
- </div>
1045
-
1046
- <div class="method_details ">
1047
- <h3 class="signature " id="internal_loaded_paths-class_method">
1048
-
1049
- + (<tt>Object</tt>) <strong>internal_loaded_paths</strong>
1050
-
1051
-
1052
-
1053
-
1054
-
1055
- </h3><table class="source_code">
1056
- <tr>
1057
- <td>
1058
- <pre class="lines">
1059
-
1060
-
1061
- 54
1062
- 55
1063
- 56</pre>
1064
- </td>
1065
- <td>
1066
- <pre class="code"><span class="info file"># File 'lib/naether/java.rb', line 54</span>
1067
-
1068
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_internal_loaded_paths'>internal_loaded_paths</span>
1069
- <span class='id identifier rubyid_convert_to_ruby_array'>convert_to_ruby_array</span><span class='lparen'>(</span> <span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_java'>java</span><span class='period'>.</span><span class='id identifier rubyid_class_loader'>class_loader</span><span class='period'>.</span><span class='id identifier rubyid_getLoadedPaths'>getLoadedPaths</span><span class='comma'>,</span> <span class='kw'>true</span> <span class='rparen'>)</span>
1070
- <span class='kw'>end</span></pre>
1071
- </td>
1072
- </tr>
1073
- </table>
1074
- </div>
1075
-
1076
- <div class="method_details ">
1077
- <h3 class="signature " id="load_paths-class_method">
1078
-
1079
- + (<tt>Object</tt>) <strong>load_paths</strong>(paths)
1080
-
1081
-
1082
-
1083
-
1084
-
1085
- </h3><div class="docstring">
1086
- <div class="discussion">
1087
-
1088
- <p>Load a path onto the parent ClassLoader</p>
1089
-
1090
-
1091
- </div>
1092
- </div>
1093
- <div class="tags">
1094
- <p class="tag_title">Parameters:</p>
1095
- <ul class="param">
1096
-
1097
- <li>
1098
-
1099
- <span class='name'>paths</span>
1100
-
1101
-
1102
- <span class='type'>(<tt>Array</tt>)</span>
1103
-
1104
-
1105
-
1106
- &mdash;
1107
- <div class='inline'>
1108
- <p>as an Array of String paths or a String path</p>
1109
- </div>
1110
-
1111
- </li>
1112
-
1113
- </ul>
1114
-
1115
-
1116
- </div><table class="source_code">
1117
- <tr>
1118
- <td>
1119
- <pre class="lines">
1120
-
1121
-
1122
- 50
1123
- 51
1124
- 52</pre>
1125
- </td>
1126
- <td>
1127
- <pre class="code"><span class="info file"># File 'lib/naether/java.rb', line 50</span>
1128
-
1129
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</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>
1130
- <span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_java'>java</span><span class='period'>.</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>
1131
- <span class='kw'>end</span></pre>
1132
- </td>
1133
- </tr>
1134
- </table>
1135
- </div>
1136
-
1137
- <div class="method_details ">
1138
- <h3 class="signature " id="loaded_paths-class_method">
1139
-
1140
- + (<tt>Array</tt>) <strong>loaded_paths</strong>
1141
-
1142
-
1143
-
1144
-
1145
-
1146
- </h3><div class="docstring">
1147
- <div class="discussion">
1148
-
1149
- <p>Paths loaded</p>
1150
-
1151
-
1152
- </div>
1153
- </div>
1154
- <div class="tags">
1155
-
1156
- <p class="tag_title">Returns:</p>
1157
- <ul class="return">
1158
-
1159
- <li>
1160
-
1161
-
1162
- <span class='type'>(<tt>Array</tt>)</span>
1163
-
1164
-
1165
-
1166
- &mdash;
1167
- <div class='inline'>
1168
- <p>of String paths</p>
1169
- </div>
1170
-
1171
- </li>
1172
-
1173
- </ul>
1174
-
1175
- </div><table class="source_code">
1176
- <tr>
1177
- <td>
1178
- <pre class="lines">
1179
-
1180
-
1181
- 41
1182
- 42
1183
- 43</pre>
1184
- </td>
1185
- <td>
1186
- <pre class="code"><span class="info file"># File 'lib/naether/java.rb', line 41</span>
1187
-
1188
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_loaded_paths'>loaded_paths</span>
1189
- <span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_java'>java</span><span class='period'>.</span><span class='id identifier rubyid_loaded_paths'>loaded_paths</span>
1190
- <span class='kw'>end</span></pre>
1191
- </td>
1192
- </tr>
1193
- </table>
1194
- </div>
1195
-
1196
- </div>
1197
-
1198
- </div>
1199
-
1200
- <div id="footer">
1201
- Generated on Fri Mar 14 09:39:49 2014 by
1202
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1203
- 0.8.7.3 (ruby-1.9.3).
1204
- </div>
1205
-
1206
- </body>
1207
- </html>