naether 0.11.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,606 +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::s Ja::s Ru
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 (s)</a> &raquo;
35
- <span class='title'><span class='object_link'><a href="../../Naether.html" title="Naether (module)">Naether</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../s_20Ja.html" title="Naether::s Ja (class)">s Ja</a></span></span>
36
- &raquo;
37
- <span class="title">s Ru</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::s Ja::s Ru
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::s Ja::s Ru</li>
82
-
83
- </ul>
84
- <a href="#" class="inheritanceTree">show all</a>
85
-
86
- </dd>
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
- <dt class="r2 last">Defined in:</dt>
97
- <dd class="r2 last">lib/naether/java/ruby.rb</dd>
98
-
99
- </dl>
100
- <div class="clear"></div>
101
-
102
-
103
-
104
-
105
-
106
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
107
- <ul class="summary">
108
-
109
- <li class="public ">
110
- <span class="summary_signature">
111
-
112
- <a href="#reader+%3Aload-instance_method" title="#reader :load (instance method)">- (Object) <strong>reader :load</strong> </a>
113
-
114
-
115
-
116
- </span>
117
-
118
-
119
-
120
-
121
- <span class="note title readonly">readonly</span>
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
- <span class="summary_desc"><div class='inline'>
132
- <p>Returns the value of attribute reader :load.</p>
133
- </div></span>
134
-
135
- </li>
136
-
137
-
138
- </ul>
139
-
140
-
141
-
142
-
143
-
144
- <h2>
145
- Instance Method Summary
146
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
147
- </h2>
148
-
149
- <ul class="summary">
150
-
151
- <li class="public ">
152
- <span class="summary_signature">
153
-
154
- <a href="#convert_to_java_list-instance_method" title="#convert_to_java_list (instance method)">- (Object) <strong>convert_to_java_list</strong>(do |path| ) </a>
155
-
156
-
157
-
158
- </span>
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
- <span class="summary_desc"><div class='inline'></div></span>
169
-
170
- </li>
171
-
172
-
173
- <li class="public ">
174
- <span class="summary_signature">
175
-
176
- <a href="#create-instance_method" title="#create (instance method)">- (Object) <strong>create</strong>(String] targ, *clas) </a>
177
-
178
-
179
-
180
- </span>
181
-
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
-
190
- <span class="summary_desc"><div class='inline'></div></span>
191
-
192
- </li>
193
-
194
-
195
- <li class="public ">
196
- <span class="summary_signature">
197
-
198
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (s Ru) <strong>initialize</strong> </a>
199
-
200
-
201
-
202
- </span>
203
-
204
-
205
- <span class="note title constructor">constructor</span>
206
-
207
-
208
-
209
-
210
-
211
-
212
-
213
-
214
- <span class="summary_desc"><div class='inline'>
215
- <p>A new instance of s Ru.</p>
216
- </div></span>
217
-
218
- </li>
219
-
220
-
221
- <li class="public ">
222
- <span class="summary_signature">
223
-
224
- <a href="#internal_load_paths-instance_method" title="#internal_load_paths (instance method)">- (Object) <strong>internal_load_paths</strong>(esult) </a>
225
-
226
-
227
-
228
- </span>
229
-
230
-
231
-
232
-
233
-
234
-
235
-
236
-
237
-
238
- <span class="summary_desc"><div class='inline'></div></span>
239
-
240
- </li>
241
-
242
-
243
- <li class="public ">
244
- <span class="summary_signature">
245
-
246
- <a href="#load_paths-instance_method" title="#load_paths (instance method)">- (Object) <strong>load_paths</strong>( ) </a>
247
-
248
-
249
-
250
- </span>
251
-
252
-
253
-
254
-
255
-
256
-
257
-
258
-
259
-
260
- <span class="summary_desc"><div class='inline'></div></span>
261
-
262
- </li>
263
-
264
-
265
- </ul>
266
-
267
-
268
- <div id="constructor_details" class="method_details_list">
269
- <h2>Constructor Details</h2>
270
-
271
- <div class="method_details first">
272
- <h3 class="signature first" id="initialize-instance_method">
273
-
274
- - (<tt>s Ru</tt>) <strong>initialize</strong>
275
-
276
-
277
-
278
-
279
-
280
- </h3><div class="docstring">
281
- <div class="discussion">
282
-
283
- <p>A new instance of s Ru</p>
284
-
285
-
286
- </div>
287
- </div>
288
- <div class="tags">
289
-
290
-
291
- </div><table class="source_code">
292
- <tr>
293
- <td>
294
- <pre class="lines">
295
-
296
-
297
- 19
298
- 20
299
- 21
300
- 22
301
- 23
302
- 24
303
- 25
304
- 26
305
- 27
306
- 28
307
- 29
308
- 30
309
- 31
310
- 32
311
- 33</pre>
312
- </td>
313
- <td>
314
- <pre class="code"><span class="info file"># File 'lib/naether/java/ruby.rb', line 19</span>
315
-
316
- #
317
- def initialize
318
- require 'rjb'
319
-
320
- naether_jar = Naether::Configuration.naether_jar
321
-
322
- # Call Rjb::load with an empty classpath, incase Rjb::load has already been called
323
- java_opts = (ENV['JAVA_OPTS'] || ENV['JAVA_OPTIONS']).to_s.split
324
- Rjb::load(&quot;&quot;, java_opts)
325
-
326
- @loaded_paths = []
327
- load_paths( naether_jar )
328
-
329
- class_loader_class = Rjb::import( &quot;com.tobedevoured.naether.PathClassLoader&quot; )
330
- @class_load</pre>
331
- </td>
332
- </tr>
333
- </table>
334
- </div>
335
-
336
- </div>
337
-
338
- <div id="instance_attr_details" class="attr_details">
339
- <h2>Instance Attribute Details</h2>
340
-
341
-
342
- <span id=""></span>
343
- <div class="method_details first">
344
- <h3 class="signature first" id="reader :load-instance_method">
345
-
346
- - (<tt>Object</tt>) <strong>reader :load</strong> <span class="extras">(readonly)</span>
347
-
348
-
349
-
350
-
351
-
352
- </h3><div class="docstring">
353
- <div class="discussion">
354
-
355
- <p>Returns the value of attribute reader :load</p>
356
-
357
-
358
- </div>
359
- </div>
360
- <div class="tags">
361
-
362
-
363
- </div><table class="source_code">
364
- <tr>
365
- <td>
366
- <pre class="lines">
367
-
368
-
369
- 13
370
- 14
371
- 15</pre>
372
- </td>
373
- <td>
374
- <pre class="code"><span class="info file"># File 'lib/naether/java/ruby.rb', line 13</span>
375
-
376
- def reader :load
377
- @reader :load
378
- end</pre>
379
- </td>
380
- </tr>
381
- </table>
382
- </div>
383
-
384
- </div>
385
-
386
-
387
- <div id="instance_method_details" class="method_details_list">
388
- <h2>Instance Method Details</h2>
389
-
390
-
391
- <div class="method_details first">
392
- <h3 class="signature first" id="convert_to_java_list-instance_method">
393
-
394
- - (<tt>Object</tt>) <strong>convert_to_java_list</strong>(do |path|
395
- )
396
-
397
-
398
-
399
-
400
-
401
- </h3><table class="source_code">
402
- <tr>
403
- <td>
404
- <pre class="lines">
405
-
406
-
407
- 140
408
- 141
409
- 142</pre>
410
- </td>
411
- <td>
412
- <pre class="code"><span class="info file"># File 'lib/naether/java/ruby.rb', line 140</span>
413
-
414
- paths.each do |path|
415
- expanded_path = File.expand_path(path)
416
- if !@loaded_paths.include?(expanded_path) &amp;&amp; File.exists?( expanded_path</pre>
417
- </td>
418
- </tr>
419
- </table>
420
- </div>
421
-
422
- <div class="method_details ">
423
- <h3 class="signature " id="create-instance_method">
424
-
425
- - (<tt>Object</tt>) <strong>create</strong>(String] targ, *clas)
426
-
427
-
428
-
429
-
430
-
431
- </h3><div class="docstring">
432
- <div class="discussion">
433
-
434
-
435
- </div>
436
- </div>
437
- <div class="tags">
438
- <p class="tag_title">Parameters:</p>
439
- <ul class="param">
440
-
441
- <li>
442
-
443
- <span class='name'>args</span>
444
-
445
-
446
- <span class='type'>(<tt>Array</tt>)</span>
447
-
448
-
449
-
450
- &mdash;
451
- <div class='inline'>
452
- <p>Array of constructor arguments</p>
453
- </div>
454
-
455
- </li>
456
-
457
- </ul>
458
-
459
-
460
- </div><table class="source_code">
461
- <tr>
462
- <td>
463
- <pre class="lines">
464
-
465
-
466
- 43
467
- 44
468
- 45
469
- 46
470
- 47
471
- 48</pre>
472
- </td>
473
- <td>
474
- <pre class="code"><span class="info file"># File 'lib/naether/java/ruby.rb', line 43</span>
475
-
476
- # @param [String] target_class to create
477
- # @param [Array] args Array of constructor arguments
478
- def create( target_class, *args )
479
- #@class_loader.newInstance(target_class, *args )
480
- if args.size &gt; 0
481
- @class_loader._invoke('newInstance', 'Ljava.lang.String;[Ljava.lang.Object;', tar</pre>
482
- </td>
483
- </tr>
484
- </table>
485
- </div>
486
-
487
- <div class="method_details ">
488
- <h3 class="signature " id="internal_load_paths-instance_method">
489
-
490
- - (<tt>Object</tt>) <strong>internal_load_paths</strong>(esult)
491
-
492
-
493
-
494
-
495
-
496
- </h3><table class="source_code">
497
- <tr>
498
- <td>
499
- <pre class="lines">
500
-
501
-
502
- 94
503
- 95
504
- 96
505
- 97
506
- 98
507
- 99
508
- 100
509
- 101
510
- 102
511
- 103
512
- 104
513
- 105
514
- 106</pre>
515
- </td>
516
- <td>
517
- <pre class="code"><span class="info file"># File 'lib/naether/java/ruby.rb', line 94</span>
518
-
519
- jb::Proxy
520
- if result.getClass().getName() == 'java.lang.String'
521
- result.toString()
522
- else
523
- result
524
- end
525
- end
526
- end
527
-
528
- #
529
- # Load a path into the internal Naether ClassLoader
530
- #
531
- # @param [Array] paths as an Array of String paths or</pre>
532
- </td>
533
- </tr>
534
- </table>
535
- </div>
536
-
537
- <div class="method_details ">
538
- <h3 class="signature " id="load_paths-instance_method">
539
-
540
- - (<tt>Object</tt>) <strong>load_paths</strong>( )
541
-
542
-
543
-
544
-
545
-
546
- </h3><table class="source_code">
547
- <tr>
548
- <td>
549
- <pre class="lines">
550
-
551
-
552
- 116
553
- 117
554
- 118
555
- 119
556
- 120
557
- 121
558
- 122
559
- 123
560
- 124
561
- 125
562
- 126
563
- 127
564
- 128
565
- 129
566
- 130
567
- 131
568
- 132</pre>
569
- </td>
570
- <td>
571
- <pre class="code"><span class="info file"># File 'lib/naether/java/ruby.rb', line 116</span>
572
-
573
- end
574
-
575
- paths.each do |path|
576
- expanded_path = File.expand_path(path)
577
- if File.exists?( expanded_path )
578
- @class_loader.addPath( path )
579
- loadable_paths &lt;&lt; expanded_path
580
- end
581
- end
582
-
583
- loadable_paths
584
- end
585
-
586
- #
587
- # Load a path onto the parent ClassLoader
588
- #
589
- # @param [Ar</pre>
590
- </td>
591
- </tr>
592
- </table>
593
- </div>
594
-
595
- </div>
596
-
597
- </div>
598
-
599
- <div id="footer">
600
- Generated on Fri Sep 27 17:38:19 2013 by
601
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
602
- 0.8.2.1 (ruby-1.9.3).
603
- </div>
604
-
605
- </body>
606
- </html>