infraruby-core-runtime 3.7.1 → 4.0.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd88c385827bcafeab1a8e845df0881c8ad1ac27
4
- data.tar.gz: ef5f9de511226caedd0ebd474adc11b872b2febc
3
+ metadata.gz: 2712cda9d0e848a67ef08e1da8f91a32dcea4ee5
4
+ data.tar.gz: e6635a65620a05810ab2181fa7f337c12ec7020e
5
5
  SHA512:
6
- metadata.gz: d8adee5da9ff5265c620da0ae42f00fae1bd6cf233acf47375334ea42b70a6ede0596ea17852c44933b340348bb337943b0b0dbe6f9a934924c3a376ea594777
7
- data.tar.gz: 29dcae53e64ac80a5339131bd722145901948db3cd45d08b88271ec5124ea0f16eb63a2df485bb6181847a8571df0349981a17e9e9142d5b0974a6ce6afb0105
6
+ metadata.gz: 9f0f8db44df18353c878e457652e886394be854e5e760a32c2e1b70f358fb3a58a2c61f046839fba83510fda98d041158cc36d3ecd0ef0d163673c8b39d62f20
7
+ data.tar.gz: f83c3f8484846720b44e746e5ed4d289a49aa5bac7acef40924ba8bbec863cdc476f4e36fbf4614bcd301e55b853e0de76a6e65d31730306e0fe26c87f35927b
data/LICENSE.TXT CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (C) 2011-2015 InfraRuby Vision
1
+ Copyright (C) 2011-2016 InfraRuby Vision
2
2
 
3
3
  This agreement in respect of the InfraRuby runtime (hereinafter "the
4
4
  Runtime") is between InfraRuby Vision (hereinafter "the Vendor") and any
data/README.md CHANGED
@@ -7,9 +7,4 @@ This gem provides the InfraRuby statically typed Ruby runtime.
7
7
  Support
8
8
  -------
9
9
 
10
- InfraRuby Vision
11
- rubygems@infraruby.com
12
-
13
10
  http://infraruby.com/
14
- https://github.com/InfraRuby
15
- https://twitter.com/InfraRuby
@@ -1,178 +1,173 @@
1
1
  ## <>
2
- ## .exit: -> void
3
- ## .exit: int32 -> void
4
- ## .exit: Integer -> void
5
- ## .exit!: -> void
6
- ## .exit!: int32 -> void
7
- ## .exit!: Integer -> void
8
- ## .system: String -> Boolean?
9
- ## .rand: -> Float
10
- ## .rand: int32 -> Fixnum
11
- ## .rand: Integer -> Fixnum
12
- ## .sleep: -> void
13
- ## .sleep: int64 -> void
14
- ## .sleep: float64 -> void
15
- ## .sleep: Integer -> void
16
- ## .sleep: Float -> void
17
- ## :eql?: java.lang.Object? -> boolean
18
- ## :hash: -> Fixnum
19
- ## :to_s: -> String
20
- ## :inspect: -> String
21
- module Kernel
2
+ ## .lambda: &(-> void) -> (-> void)
3
+ module InfraRuby
22
4
  end
23
5
 
24
6
  ## <>
25
- ## .args_to_argv: java.lang.String[] -> Array<String>
26
- ## .init: java.lang.String[] -> void
27
- ## .fini: -> void
28
- ## .lambda: &(-> void) -> (-> void)
29
- module InfraRuby
7
+ ## #to_int32!: -> int32
8
+ module InfraRuby::Index
30
9
  end
31
10
 
32
11
  ## <>
33
- ## #read: -> String
34
- ## #read: int32 -> String?
35
- ## #read: Integer -> String?
36
- ## #write: byte[] -> void
37
- ## #write: String -> void
38
- ## #<<: byte[] -> self
39
- ## #<<: String -> self
40
- ## #flush: -> void
41
- ## #close: -> void
42
- module InfraRuby::IO
12
+ ## #clone: -> java.lang.Object?
13
+ ## #dup: -> java.lang.Object?
14
+ module InfraRuby::Kernel
15
+ ## <>
16
+ include JAVA::java.lang.Cloneable
43
17
  end
44
18
 
45
19
  ## <>
46
- module InfraRuby::Interface
20
+ module InfraRuby::ProtocolJ
47
21
  end
48
22
 
49
23
  ## <>
50
24
  ## #==: java.lang.Object? -> boolean
51
- module InfraRuby::Interface::OPERATOR_EQ
25
+ module InfraRuby::ProtocolJ::OPERATOR_EQ
52
26
  end
53
27
 
54
28
  ## <>
55
29
  ## #!=: java.lang.Object? -> boolean
56
- module InfraRuby::Interface::OPERATOR_NE
30
+ module InfraRuby::ProtocolJ::OPERATOR_NE
57
31
  end
58
32
 
59
33
  ## <>
60
34
  ## #===: java.lang.Object? -> boolean
61
- module InfraRuby::Interface::OPERATOR_EQV
35
+ module InfraRuby::ProtocolJ::OPERATOR_EQV
62
36
  end
63
37
 
64
38
  ## <>
65
- ## #to_f: -> Float
66
- module InfraRuby::Interface::TO_F
39
+ ## TRUE: Boolean
40
+ ## FALSE: Boolean
41
+ ## .[]: boolean -> Boolean
42
+ ## #value: -> boolean
43
+ module Boolean
67
44
  end
68
45
 
69
46
  ## <>
70
- ## #to_i: -> Integer
71
- module InfraRuby::Interface::TO_I
47
+ ## :equals: java.lang.Object? -> boolean
48
+ ## :hashCode: -> int32
49
+ ## :toString: -> java.lang.String
50
+ ## :value: -> boolean
51
+ class TrueClass < JAVA::java.lang.Object
52
+ ## <>
53
+ include Boolean
72
54
  end
73
55
 
74
56
  ## <>
75
- ## #to_json: -> String
76
- module InfraRuby::Interface::TO_JSON
57
+ ## :equals: java.lang.Object? -> boolean
58
+ ## :hashCode: -> int32
59
+ ## :toString: -> java.lang.String
60
+ ## :value: -> boolean
61
+ class FalseClass < JAVA::java.lang.Object
62
+ ## <>
63
+ include Boolean
77
64
  end
78
65
 
79
66
  ## <>
80
- ## #to_yaml: -> String
81
- module InfraRuby::Interface::TO_YAML
67
+ ## .[]: byte -> Byte
68
+ ## :equals: java.lang.Object? -> boolean
69
+ ## :hashCode: -> int32
70
+ ## :toString: -> java.lang.String
71
+ ## :value: -> byte
72
+ class Byte < JAVA::java.lang.Object
82
73
  end
83
74
 
84
75
  ## <>
85
- ## .new: -> InfraRuby::StringBuilder
86
- ## :to_java_bytes: -> byte[]
87
- ## :to_s: -> String
88
- ## :to_s: Encoding -> String
89
- ## :read: -> String
90
- ## :read: int32 -> String?
91
- ## :read: Integer -> String?
92
- ## :write: byte[] -> void
93
- ## :write: String -> void
94
- ## :<<: byte[] -> self
95
- ## :<<: String -> self
96
- ## :flush: -> void
97
- ## :close: -> void
98
- ## :append: byte -> void
99
- ## :append: byte[] -> void
100
- ## :append: String -> void
101
- class InfraRuby::StringBuilder < Java::java.lang.Object
102
- ## <>
103
- include Kernel
104
- ## <>
105
- include InfraRuby::IO
76
+ ## .[]: char -> Char
77
+ ## :equals: java.lang.Object? -> boolean
78
+ ## :hashCode: -> int32
79
+ ## :toString: -> java.lang.String
80
+ ## :value: -> char
81
+ class Char < JAVA::java.lang.Object
106
82
  end
107
83
 
108
84
  ## <>
109
- ## TRUE: TrueClass
110
- ## FALSE: FalseClass
111
- ## .[]: boolean -> Boolean
112
- ## #to_boolean: -> boolean
113
- module Boolean
85
+ ## .[]: int16 -> Int16
86
+ ## :equals: java.lang.Object? -> boolean
87
+ ## :hashCode: -> int32
88
+ ## :toString: -> java.lang.String
89
+ ## :compareTo: Int16 -> int32
90
+ ## :value: -> int16
91
+ class Int16 < JAVA::java.lang.Object
92
+ ## <Int16>
93
+ include JAVA::java.lang.Comparable
114
94
  end
115
95
 
116
96
  ## <>
97
+ ## .[]: int32 -> Int32
117
98
  ## :equals: java.lang.Object? -> boolean
118
99
  ## :hashCode: -> int32
119
100
  ## :toString: -> java.lang.String
120
- ## :==: java.lang.Object? -> boolean
121
- ## :!=: java.lang.Object? -> boolean
122
- ## :===: java.lang.Object? -> boolean
123
- ## :eql?: java.lang.Object? -> boolean
124
- ## :hash: -> Fixnum
125
- ## :to_s: -> String
126
- ## :inspect: -> String
127
- ## :to_boolean: -> boolean
128
- ## :to_json: -> String
129
- ## :to_yaml: -> String
130
- class TrueClass < Java::java.lang.Object
131
- ## <>
132
- include Kernel
133
- ## <>
134
- include Boolean
135
- ## <>
136
- include InfraRuby::Interface::OPERATOR_NE
137
- ## <>
138
- include InfraRuby::Interface::OPERATOR_EQ
139
- ## <>
140
- include InfraRuby::Interface::OPERATOR_EQV
141
- ## <>
142
- include InfraRuby::Interface::TO_JSON
101
+ ## :compareTo: Int32 -> int32
102
+ ## :to_int32!: -> int32
103
+ ## :value: -> int32
104
+ class Int32 < JAVA::java.lang.Object
105
+ ## <Int32>
106
+ include JAVA::java.lang.Comparable
143
107
  ## <>
144
- include InfraRuby::Interface::TO_YAML
108
+ include InfraRuby::Index
145
109
  end
146
110
 
147
111
  ## <>
112
+ ## .[]: int64 -> Int64
148
113
  ## :equals: java.lang.Object? -> boolean
149
114
  ## :hashCode: -> int32
150
115
  ## :toString: -> java.lang.String
151
- ## :==: java.lang.Object? -> boolean
152
- ## :!=: java.lang.Object? -> boolean
153
- ## :===: java.lang.Object? -> boolean
154
- ## :eql?: java.lang.Object? -> boolean
155
- ## :hash: -> Fixnum
156
- ## :to_s: -> String
157
- ## :inspect: -> String
158
- ## :to_boolean: -> boolean
159
- ## :to_json: -> String
160
- ## :to_yaml: -> String
161
- class FalseClass < Java::java.lang.Object
162
- ## <>
163
- include Kernel
164
- ## <>
165
- include Boolean
166
- ## <>
167
- include InfraRuby::Interface::OPERATOR_NE
168
- ## <>
169
- include InfraRuby::Interface::OPERATOR_EQ
170
- ## <>
171
- include InfraRuby::Interface::OPERATOR_EQV
172
- ## <>
173
- include InfraRuby::Interface::TO_JSON
116
+ ## :compareTo: Int64 -> int32
117
+ ## :to_int32!: -> int32
118
+ ## :value: -> int64
119
+ class Int64 < JAVA::java.lang.Object
120
+ ## <Int64>
121
+ include JAVA::java.lang.Comparable
174
122
  ## <>
175
- include InfraRuby::Interface::TO_YAML
123
+ include InfraRuby::Index
124
+ end
125
+
126
+ ## <>
127
+ ## NEGATIVE_INFINITY: Float32
128
+ ## POSITIVE_INFINITY: Float32
129
+ ## .[]: float32 -> Float32
130
+ ## :equals: java.lang.Object? -> boolean
131
+ ## :hashCode: -> int32
132
+ ## :toString: -> java.lang.String
133
+ ## :compareTo: Float32 -> int32
134
+ ## :value: -> float32
135
+ class Float32 < JAVA::java.lang.Object
136
+ ## <Float32>
137
+ include JAVA::java.lang.Comparable
138
+ end
139
+
140
+ ## <>
141
+ ## NEGATIVE_INFINITY: Float64
142
+ ## POSITIVE_INFINITY: Float64
143
+ ## .[]: float64 -> Float64
144
+ ## :equals: java.lang.Object? -> boolean
145
+ ## :hashCode: -> int32
146
+ ## :toString: -> java.lang.String
147
+ ## :compareTo: Float64 -> int32
148
+ ## :value: -> float64
149
+ class Float64 < JAVA::java.lang.Object
150
+ ## <Float64>
151
+ include JAVA::java.lang.Comparable
152
+ end
153
+
154
+ ## <>
155
+ ## .exit: -> void
156
+ ## .exit: int32 -> void
157
+ ## .exit: Integer -> void
158
+ ## .exit!: -> void
159
+ ## .exit!: int32 -> void
160
+ ## .exit!: Integer -> void
161
+ ## .system: String -> Boolean?
162
+ ## .rand: -> Float
163
+ ## .rand: int32 -> Fixnum
164
+ ## .rand: Integer -> Fixnum
165
+ ## .sleep: -> void
166
+ ## .sleep: int64 -> void
167
+ ## .sleep: float64 -> void
168
+ ## .sleep: Integer -> void
169
+ ## .sleep: Float -> void
170
+ module Kernel
176
171
  end
177
172
 
178
173
  ## <>
@@ -189,15 +184,13 @@ end
189
184
  ## :initialize_clone: java.lang.Object? -> void
190
185
  ## :initialize_dup: java.lang.Object? -> void
191
186
  ## :initialize: -> void
192
- class Object < Java::java.lang.Object
187
+ class Object < JAVA::java.lang.Object
193
188
  ## <>
194
- include Kernel
195
- ## <>
196
- include Java::java.lang.Cloneable
189
+ include InfraRuby::Kernel
197
190
  end
198
191
 
199
192
  ## <T: java.lang.Object?>
200
- ## :to_java: -> java.lang.Class<T>
193
+ ## :to_j: -> java.lang.Class<T>
201
194
  ## :name: -> String
202
195
  ## :new: -> T
203
196
  class Class < Object
@@ -215,9 +208,7 @@ end
215
208
  ## :inspect: -> String
216
209
  ## :backtrace: -> Array<String>
217
210
  ## :message: -> String
218
- class Exception < Java::java.lang.Throwable
219
- ## <>
220
- include Kernel
211
+ class Exception < JAVA::java.lang.Throwable
221
212
  end
222
213
 
223
214
  ## <>
@@ -331,7 +322,7 @@ end
331
322
  ## <>
332
323
  ## :initialize: -> void
333
324
  ## :initialize: String -> void
334
- class InfraRuby::ConcurrencyError < ThreadError
325
+ class ConcurrencyError < ThreadError
335
326
  end
336
327
 
337
328
  ## <>
@@ -352,23 +343,155 @@ end
352
343
  class ZeroDivisionError < StandardError
353
344
  end
354
345
 
346
+ ## <T: java.lang.Object>
347
+ ## :compareTo: T -> int32
348
+ ## :==: java.lang.Object? -> boolean
349
+ ## :!=: java.lang.Object? -> boolean
350
+ ## :===: java.lang.Object? -> boolean
351
+ ## :<: T -> boolean
352
+ ## :<=: T -> boolean
353
+ ## :>=: T -> boolean
354
+ ## :>: T -> boolean
355
+ ## :between?: T, T -> boolean
356
+ ## #<=>: T -> Fixnum
357
+ module Comparable
358
+ ## <T>
359
+ include JAVA::java.lang.Comparable
360
+ ## <>
361
+ include InfraRuby::ProtocolJ::OPERATOR_NE
362
+ ## <>
363
+ include InfraRuby::ProtocolJ::OPERATOR_EQ
364
+ ## <>
365
+ include InfraRuby::ProtocolJ::OPERATOR_EQV
366
+ end
367
+
368
+ ## <E: java.lang.Object?>
369
+ ## :iterator: -> java.util.Iterator<E>
370
+ ## :to_enum: -> Enumerator<E>
371
+ ## :to_a: -> Array<E>
372
+ ## :to_set: -> Set<E>
373
+ ## :all?: -> boolean
374
+ ## :all?: &{E -> boolean} -> boolean
375
+ ## :any?: -> boolean
376
+ ## :any?: &{E -> boolean} -> boolean
377
+ ## :none?: -> boolean
378
+ ## :none?: &{E -> boolean} -> boolean
379
+ ## :one?: -> boolean
380
+ ## :one?: &{E -> boolean} -> boolean
381
+ ## :count: java.lang.Object? -> Fixnum
382
+ ## :count: &{E -> boolean} -> Fixnum
383
+ ## :each_with_index: &{E, Fixnum -> void} -> void
384
+ ## :each_with_object: <O: java.lang.Object?> O, &{E, O -> void} -> void
385
+ ## :each_cons: int32, &{Array<E> -> void} -> void
386
+ ## :each_cons: Integer, &{Array<E> -> void} -> void
387
+ ## :each_slice: int32, &{Array<E> -> void} -> void
388
+ ## :each_slice: Integer, &{Array<E> -> void} -> void
389
+ ## :find: &{E -> boolean} -> E?
390
+ ## :find_all: &{E -> boolean} -> Array<E>
391
+ ## :find_index: &{E -> boolean} -> Fixnum?
392
+ ## :grep: Regexp -> Array<E>
393
+ ## :grep: <T: java.lang.Object?> Regexp, &{E -> T} -> Array<T>
394
+ ## :group_by: <T: java.lang.Object?> &{E -> T} -> Hash<T, Array<E>>
395
+ ## :drop: int32 -> Array<E>
396
+ ## :drop: Integer -> Array<E>
397
+ ## :drop_while: &{E -> boolean} -> Array<E>
398
+ ## :take: int32 -> Array<E>
399
+ ## :take: Integer -> Array<E>
400
+ ## :take_while: &{E -> boolean} -> Array<E>
401
+ ## :inject: <T: java.lang.Object?> T, &{T, E -> T} -> T
402
+ ## :reject: &{E -> boolean} -> Array<E>
403
+ ## :select: &{E -> boolean} -> Array<E>
404
+ ## :partition: &{E -> boolean} -> [Array<E>, Array<E>]
405
+ ## :first: -> E?
406
+ ## :first!: -> E
407
+ ## :member?: java.lang.Object? -> boolean
408
+ ## :map: <T: java.lang.Object?> &{E -> T} -> Array<T>
409
+ ## :min: -> E?
410
+ ## :min: &{E, E -> Integer} -> E?
411
+ ## :max: -> E?
412
+ ## :max: &{E, E -> Integer} -> E?
413
+ ## :min_by: <T: java.lang.Comparable<*/T>> &{E -> T} -> E?
414
+ ## :max_by: <T: java.lang.Comparable<*/T>> &{E -> T} -> E?
415
+ ## :minmax: -> [E?, E?]
416
+ ## :minmax: &{E, E -> Integer} -> [E?, E?]
417
+ ## :minmax_by: <T: java.lang.Comparable<*/T>> &{E -> T} -> [E?, E?]
418
+ ## #each: &{E -> void} -> void
419
+ module Enumerable
420
+ ## <E>
421
+ include JAVA::java.lang.Iterable
422
+ end
423
+
424
+ ## <>
425
+ module InfraRuby::ProtocolR
426
+ end
427
+
428
+ ## <>
429
+ ## #to_f: -> Float
430
+ module InfraRuby::ProtocolR::TO_F
431
+ end
432
+
433
+ ## <>
434
+ ## #to_i: -> Integer
435
+ module InfraRuby::ProtocolR::TO_I
436
+ end
437
+
438
+ ## <>
439
+ ## #to_json: -> String
440
+ module InfraRuby::ProtocolR::TO_JSON
441
+ end
442
+
443
+ ## <>
444
+ ## #to_yaml: -> String
445
+ module InfraRuby::ProtocolR::TO_YAML
446
+ end
447
+
355
448
  ## <>
356
- ## #main: -> void
449
+ ## #close: -> void
450
+ ## #closed?: -> boolean
451
+ module InfraRuby::Closer
452
+ end
453
+
454
+ ## <>
455
+ ## #read: -> String
456
+ ## #read: int32 -> String?
457
+ ## #read: Integer -> String?
458
+ ## #readline: -> String
459
+ ## #readline: int32 -> String
460
+ ## #readline: Integer -> String
461
+ module InfraRuby::Reader
462
+ ## <>
463
+ include InfraRuby::Closer
464
+ ## <String>
465
+ include Enumerable
466
+ end
467
+
468
+ ## <>
469
+ ## :<<: byte[] -> self
470
+ ## :<<: String -> self
471
+ ## #flush: -> void
472
+ ## #write: byte[] -> void
473
+ ## #write: String -> void
474
+ module InfraRuby::Writer
475
+ ## <>
476
+ include InfraRuby::Closer
477
+ end
478
+
479
+ ## <>
480
+ ## .init: java.lang.String[] -> void
481
+ ## .fini: -> void
357
482
  module InfraRuby::Main
358
483
  end
359
484
 
360
485
  ## <>
361
486
  ## .new: Mutex -> InfraRuby::Condition
362
487
  ## :await: -> void
363
- ## :await: int64 -> void
364
- ## :await: float64 -> void
365
- ## :await: Integer -> void
366
- ## :await: Float -> void
488
+ ## :await: int64 -> boolean
489
+ ## :await: float64 -> boolean
490
+ ## :await: Integer -> boolean
491
+ ## :await: Float -> boolean
367
492
  ## :broadcast: -> void
368
493
  ## :signal: -> void
369
- class InfraRuby::Condition < Java::java.lang.Object
370
- ## <>
371
- include Kernel
494
+ class InfraRuby::Condition < Object
372
495
  end
373
496
 
374
497
  ## <>
@@ -376,30 +499,46 @@ end
376
499
  module InfraRuby::SipHash
377
500
  end
378
501
 
502
+ ## <>
503
+ ## .new: -> InfraRuby::StringBuilder
504
+ ## :to_j_bytes: -> byte[]
505
+ ## :to_s: -> String
506
+ ## :to_s: Encoding -> String
507
+ ## :write: byte[] -> void
508
+ ## :write: String -> void
509
+ ## :flush: -> void
510
+ ## :close: -> void
511
+ ## :closed?: -> boolean
512
+ ## :append: byte -> void
513
+ ## :append: byte[] -> void
514
+ ## :append: String -> void
515
+ class InfraRuby::StringBuilder < Object
516
+ ## <>
517
+ include InfraRuby::Writer
518
+ end
519
+
379
520
  ## <>
380
521
  ## .get: String -> InfraRuby::Zone?
381
522
  ## :equals: java.lang.Object? -> boolean
382
523
  ## :hashCode: -> int32
383
524
  ## :toString: -> java.lang.String
384
- ## :==: java.lang.Object? -> boolean
385
- ## :!=: java.lang.Object? -> boolean
386
- ## :===: java.lang.Object? -> boolean
387
525
  ## :eql?: java.lang.Object? -> boolean
388
526
  ## :hash: -> Fixnum
389
527
  ## :to_s: -> String
390
528
  ## :inspect: -> String
529
+ ## :==: java.lang.Object? -> boolean
530
+ ## :!=: java.lang.Object? -> boolean
531
+ ## :===: java.lang.Object? -> boolean
391
532
  ## :now: -> Time
392
533
  ## :local_to_utc: Time -> Time
393
534
  ## :utc_to_local: Time -> Time
394
- class InfraRuby::Zone < Java::java.lang.Object
395
- ## <>
396
- include Kernel
535
+ class InfraRuby::Zone < Object
397
536
  ## <>
398
- include InfraRuby::Interface::OPERATOR_NE
537
+ include InfraRuby::ProtocolJ::OPERATOR_NE
399
538
  ## <>
400
- include InfraRuby::Interface::OPERATOR_EQ
539
+ include InfraRuby::ProtocolJ::OPERATOR_EQ
401
540
  ## <>
402
- include InfraRuby::Interface::OPERATOR_EQV
541
+ include InfraRuby::ProtocolJ::OPERATOR_EQV
403
542
  end
404
543
 
405
544
  ## <>
@@ -868,328 +1007,57 @@ end
868
1007
  class Errno::ESRCH < SystemCallError
869
1008
  end
870
1009
 
871
- ## <>
872
- ## :initialize: -> void
873
- ## :initialize: String -> void
874
- class Errno::ESTALE < SystemCallError
875
- end
876
-
877
- ## <>
878
- ## :initialize: -> void
879
- ## :initialize: String -> void
880
- class Errno::ETIME < SystemCallError
881
- end
882
-
883
- ## <>
884
- ## :initialize: -> void
885
- ## :initialize: String -> void
886
- class Errno::ETIMEDOUT < SystemCallError
887
- end
888
-
889
- ## <>
890
- ## :initialize: -> void
891
- ## :initialize: String -> void
892
- class Errno::ETOOMANYREFS < SystemCallError
893
- end
894
-
895
- ## <>
896
- ## :initialize: -> void
897
- ## :initialize: String -> void
898
- class Errno::ETXTBSY < SystemCallError
899
- end
900
-
901
- ## <>
902
- ## :initialize: -> void
903
- ## :initialize: String -> void
904
- class Errno::EUSERS < SystemCallError
905
- end
906
-
907
- ## <>
908
- ## :initialize: -> void
909
- ## :initialize: String -> void
910
- class Errno::EWOULDBLOCK < SystemCallError
911
- end
912
-
913
- ## <>
914
- ## :initialize: -> void
915
- ## :initialize: String -> void
916
- class Errno::EXDEV < SystemCallError
917
- end
918
-
919
- ## <>
920
- ## .[]: String -> String?
921
- class ENV < Object
922
- end
923
-
924
- ## <T: java.lang.Object>
925
- ## :compareTo: T -> int32
926
- ## :==: java.lang.Object? -> boolean
927
- ## :!=: java.lang.Object? -> boolean
928
- ## :===: java.lang.Object? -> boolean
929
- ## :<: T -> boolean
930
- ## :<=: T -> boolean
931
- ## :>=: T -> boolean
932
- ## :>: T -> boolean
933
- ## :between?: T, T -> boolean
934
- ## #<=>: T -> Fixnum
935
- module Comparable
936
- ## <T>
937
- include Java::java.lang.Comparable
938
- ## <>
939
- include InfraRuby::Interface::OPERATOR_NE
940
- ## <>
941
- include InfraRuby::Interface::OPERATOR_EQ
942
- ## <>
943
- include InfraRuby::Interface::OPERATOR_EQV
1010
+ ## <>
1011
+ ## :initialize: -> void
1012
+ ## :initialize: String -> void
1013
+ class Errno::ESTALE < SystemCallError
944
1014
  end
945
1015
 
946
1016
  ## <>
947
- ## .[]: byte -> Byte
948
- ## :equals: java.lang.Object? -> boolean
949
- ## :hashCode: -> int32
950
- ## :toString: -> java.lang.String
951
- ## :compareTo: Byte -> int32
952
- ## :==: java.lang.Object? -> boolean
953
- ## :!=: java.lang.Object? -> boolean
954
- ## :===: java.lang.Object? -> boolean
955
- ## :eql?: java.lang.Object? -> boolean
956
- ## :hash: -> Fixnum
957
- ## :to_s: -> String
958
- ## :inspect: -> String
959
- ## :to_byte: -> byte
960
- class Byte < Java::java.lang.Object
961
- ## <>
962
- include Kernel
963
- ## <Byte>
964
- include Java::java.lang.Comparable
965
- ## <>
966
- include InfraRuby::Interface::OPERATOR_NE
967
- ## <>
968
- include InfraRuby::Interface::OPERATOR_EQ
969
- ## <>
970
- include InfraRuby::Interface::OPERATOR_EQV
1017
+ ## :initialize: -> void
1018
+ ## :initialize: String -> void
1019
+ class Errno::ETIME < SystemCallError
971
1020
  end
972
1021
 
973
1022
  ## <>
974
- ## .[]: char -> Char
975
- ## :equals: java.lang.Object? -> boolean
976
- ## :hashCode: -> int32
977
- ## :toString: -> java.lang.String
978
- ## :compareTo: Char -> int32
979
- ## :==: java.lang.Object? -> boolean
980
- ## :!=: java.lang.Object? -> boolean
981
- ## :===: java.lang.Object? -> boolean
982
- ## :eql?: java.lang.Object? -> boolean
983
- ## :hash: -> Fixnum
984
- ## :to_s: -> String
985
- ## :inspect: -> String
986
- ## :to_char: -> char
987
- class Char < Java::java.lang.Object
988
- ## <>
989
- include Kernel
990
- ## <Char>
991
- include Java::java.lang.Comparable
992
- ## <>
993
- include InfraRuby::Interface::OPERATOR_NE
994
- ## <>
995
- include InfraRuby::Interface::OPERATOR_EQ
996
- ## <>
997
- include InfraRuby::Interface::OPERATOR_EQV
1023
+ ## :initialize: -> void
1024
+ ## :initialize: String -> void
1025
+ class Errno::ETIMEDOUT < SystemCallError
998
1026
  end
999
1027
 
1000
1028
  ## <>
1001
- ## .[]: int16 -> Int16
1002
- ## :equals: java.lang.Object? -> boolean
1003
- ## :hashCode: -> int32
1004
- ## :toString: -> java.lang.String
1005
- ## :compareTo: Int16 -> int32
1006
- ## :==: java.lang.Object? -> boolean
1007
- ## :!=: java.lang.Object? -> boolean
1008
- ## :===: java.lang.Object? -> boolean
1009
- ## :eql?: java.lang.Object? -> boolean
1010
- ## :hash: -> Fixnum
1011
- ## :to_s: -> String
1012
- ## :inspect: -> String
1013
- ## :to_int16: -> int16
1014
- class Int16 < Java::java.lang.Object
1015
- ## <>
1016
- include Kernel
1017
- ## <Int16>
1018
- include Java::java.lang.Comparable
1019
- ## <>
1020
- include InfraRuby::Interface::OPERATOR_NE
1021
- ## <>
1022
- include InfraRuby::Interface::OPERATOR_EQ
1023
- ## <>
1024
- include InfraRuby::Interface::OPERATOR_EQV
1029
+ ## :initialize: -> void
1030
+ ## :initialize: String -> void
1031
+ class Errno::ETOOMANYREFS < SystemCallError
1025
1032
  end
1026
1033
 
1027
1034
  ## <>
1028
- ## .[]: int32 -> Int32
1029
- ## :equals: java.lang.Object? -> boolean
1030
- ## :hashCode: -> int32
1031
- ## :toString: -> java.lang.String
1032
- ## :compareTo: Int32 -> int32
1033
- ## :==: java.lang.Object? -> boolean
1034
- ## :!=: java.lang.Object? -> boolean
1035
- ## :===: java.lang.Object? -> boolean
1036
- ## :eql?: java.lang.Object? -> boolean
1037
- ## :hash: -> Fixnum
1038
- ## :to_s: -> String
1039
- ## :inspect: -> String
1040
- ## :to_int32: -> int32
1041
- class Int32 < Java::java.lang.Object
1042
- ## <>
1043
- include Kernel
1044
- ## <Int32>
1045
- include Java::java.lang.Comparable
1046
- ## <>
1047
- include InfraRuby::Interface::OPERATOR_NE
1048
- ## <>
1049
- include InfraRuby::Interface::OPERATOR_EQ
1050
- ## <>
1051
- include InfraRuby::Interface::OPERATOR_EQV
1035
+ ## :initialize: -> void
1036
+ ## :initialize: String -> void
1037
+ class Errno::ETXTBSY < SystemCallError
1052
1038
  end
1053
1039
 
1054
1040
  ## <>
1055
- ## .[]: int64 -> Int64
1056
- ## :equals: java.lang.Object? -> boolean
1057
- ## :hashCode: -> int32
1058
- ## :toString: -> java.lang.String
1059
- ## :compareTo: Int64 -> int32
1060
- ## :==: java.lang.Object? -> boolean
1061
- ## :!=: java.lang.Object? -> boolean
1062
- ## :===: java.lang.Object? -> boolean
1063
- ## :eql?: java.lang.Object? -> boolean
1064
- ## :hash: -> Fixnum
1065
- ## :to_s: -> String
1066
- ## :inspect: -> String
1067
- ## :to_int64: -> int64
1068
- class Int64 < Java::java.lang.Object
1069
- ## <>
1070
- include Kernel
1071
- ## <Int64>
1072
- include Java::java.lang.Comparable
1073
- ## <>
1074
- include InfraRuby::Interface::OPERATOR_NE
1075
- ## <>
1076
- include InfraRuby::Interface::OPERATOR_EQ
1077
- ## <>
1078
- include InfraRuby::Interface::OPERATOR_EQV
1041
+ ## :initialize: -> void
1042
+ ## :initialize: String -> void
1043
+ class Errno::EUSERS < SystemCallError
1079
1044
  end
1080
1045
 
1081
1046
  ## <>
1082
- ## NEGATIVE_INFINITY: Float32
1083
- ## POSITIVE_INFINITY: Float32
1084
- ## .[]: float32 -> Float32
1085
- ## :equals: java.lang.Object? -> boolean
1086
- ## :hashCode: -> int32
1087
- ## :toString: -> java.lang.String
1088
- ## :compareTo: Float32 -> int32
1089
- ## :==: java.lang.Object? -> boolean
1090
- ## :!=: java.lang.Object? -> boolean
1091
- ## :===: java.lang.Object? -> boolean
1092
- ## :eql?: java.lang.Object? -> boolean
1093
- ## :hash: -> Fixnum
1094
- ## :to_s: -> String
1095
- ## :inspect: -> String
1096
- ## :to_float32: -> float32
1097
- class Float32 < Java::java.lang.Object
1098
- ## <>
1099
- include Kernel
1100
- ## <Float32>
1101
- include Java::java.lang.Comparable
1102
- ## <>
1103
- include InfraRuby::Interface::OPERATOR_NE
1104
- ## <>
1105
- include InfraRuby::Interface::OPERATOR_EQ
1106
- ## <>
1107
- include InfraRuby::Interface::OPERATOR_EQV
1047
+ ## :initialize: -> void
1048
+ ## :initialize: String -> void
1049
+ class Errno::EWOULDBLOCK < SystemCallError
1108
1050
  end
1109
1051
 
1110
1052
  ## <>
1111
- ## NEGATIVE_INFINITY: Float64
1112
- ## POSITIVE_INFINITY: Float64
1113
- ## .[]: float64 -> Float64
1114
- ## :equals: java.lang.Object? -> boolean
1115
- ## :hashCode: -> int32
1116
- ## :toString: -> java.lang.String
1117
- ## :compareTo: Float64 -> int32
1118
- ## :==: java.lang.Object? -> boolean
1119
- ## :!=: java.lang.Object? -> boolean
1120
- ## :===: java.lang.Object? -> boolean
1121
- ## :eql?: java.lang.Object? -> boolean
1122
- ## :hash: -> Fixnum
1123
- ## :to_s: -> String
1124
- ## :inspect: -> String
1125
- ## :to_float64: -> float64
1126
- class Float64 < Java::java.lang.Object
1127
- ## <>
1128
- include Kernel
1129
- ## <Float64>
1130
- include Java::java.lang.Comparable
1131
- ## <>
1132
- include InfraRuby::Interface::OPERATOR_NE
1133
- ## <>
1134
- include InfraRuby::Interface::OPERATOR_EQ
1135
- ## <>
1136
- include InfraRuby::Interface::OPERATOR_EQV
1053
+ ## :initialize: -> void
1054
+ ## :initialize: String -> void
1055
+ class Errno::EXDEV < SystemCallError
1137
1056
  end
1138
1057
 
1139
- ## <E: java.lang.Object?>
1140
- ## :iterator: -> java.util.Iterator<E>
1141
- ## :to_enum: -> Enumerator<E>
1142
- ## :to_a: -> Array<E>
1143
- ## :to_set: -> Set<E>
1144
- ## :all?: -> boolean
1145
- ## :all?: &{E -> boolean} -> boolean
1146
- ## :any?: -> boolean
1147
- ## :any?: &{E -> boolean} -> boolean
1148
- ## :none?: -> boolean
1149
- ## :none?: &{E -> boolean} -> boolean
1150
- ## :one?: -> boolean
1151
- ## :one?: &{E -> boolean} -> boolean
1152
- ## :count: java.lang.Object? -> Fixnum
1153
- ## :count: &{E -> boolean} -> Fixnum
1154
- ## :each_with_index: &{E, Fixnum -> void} -> void
1155
- ## :each_with_object: <O: java.lang.Object?> O, &{E, O -> void} -> void
1156
- ## :each_cons: int32, &{Array<E> -> void} -> void
1157
- ## :each_cons: Integer, &{Array<E> -> void} -> void
1158
- ## :each_slice: int32, &{Array<E> -> void} -> void
1159
- ## :each_slice: Integer, &{Array<E> -> void} -> void
1160
- ## :find: &{E -> boolean} -> E?
1161
- ## :find_all: &{E -> boolean} -> Array<E>
1162
- ## :find_index: &{E -> boolean} -> Fixnum?
1163
- ## :grep: Regexp -> Array<E>
1164
- ## :grep: <T: java.lang.Object?> Regexp, &{E -> T} -> Array<T>
1165
- ## :group_by: <T: java.lang.Object?> &{E -> T} -> Hash<T, Array<E>>
1166
- ## :drop: int32 -> Array<E>
1167
- ## :drop: Integer -> Array<E>
1168
- ## :drop_while: &{E -> boolean} -> Array<E>
1169
- ## :take: int32 -> Array<E>
1170
- ## :take: Integer -> Array<E>
1171
- ## :take_while: &{E -> boolean} -> Array<E>
1172
- ## :inject: <T: java.lang.Object?> T, &{T, E -> T} -> T
1173
- ## :reject: &{E -> boolean} -> Array<E>
1174
- ## :select: &{E -> boolean} -> Array<E>
1175
- ## :partition: &{E -> boolean} -> [Array<E>, Array<E>]
1176
- ## :first: -> E?
1177
- ## :first!: -> E
1178
- ## :member?: java.lang.Object? -> boolean
1179
- ## :map: <T: java.lang.Object?> &{E -> T} -> Array<T>
1180
- ## :min: -> E?
1181
- ## :min: &{E, E -> Integer} -> E?
1182
- ## :max: -> E?
1183
- ## :max: &{E, E -> Integer} -> E?
1184
- ## :min_by: <T: java.lang.Comparable<*/T>> &{E -> T} -> E?
1185
- ## :max_by: <T: java.lang.Comparable<*/T>> &{E -> T} -> E?
1186
- ## :minmax: -> [E?, E?]
1187
- ## :minmax: &{E, E -> Integer} -> [E?, E?]
1188
- ## :minmax_by: <T: java.lang.Comparable<*/T>> &{E -> T} -> [E?, E?]
1189
- ## #each: &{E -> void} -> void
1190
- module Enumerable
1191
- ## <E>
1192
- include Java::java.lang.Iterable
1058
+ ## <>
1059
+ ## .[]: String -> String?
1060
+ class ENV < Object
1193
1061
  end
1194
1062
 
1195
1063
  ## <E: java.lang.Object?>
@@ -1230,11 +1098,11 @@ class Range < Object
1230
1098
  ## <T>
1231
1099
  include Enumerable
1232
1100
  ## <>
1233
- include InfraRuby::Interface::OPERATOR_NE
1101
+ include InfraRuby::ProtocolJ::OPERATOR_NE
1234
1102
  ## <>
1235
- include InfraRuby::Interface::OPERATOR_EQ
1103
+ include InfraRuby::ProtocolJ::OPERATOR_EQ
1236
1104
  ## <>
1237
- include InfraRuby::Interface::OPERATOR_EQV
1105
+ include InfraRuby::ProtocolJ::OPERATOR_EQV
1238
1106
  end
1239
1107
 
1240
1108
  ## <>
@@ -1254,7 +1122,7 @@ end
1254
1122
  ## #%: Numeric -> Numeric
1255
1123
  ## #+: Numeric -> Numeric
1256
1124
  ## #-: Numeric -> Numeric
1257
- ## #to_java: -> java.lang.Number
1125
+ ## #to_j: -> java.lang.Number
1258
1126
  ## #to_f: -> Float
1259
1127
  ## #to_i: -> Integer
1260
1128
  ## #to_float32: -> float32
@@ -1266,13 +1134,13 @@ class Numeric < Object
1266
1134
  ## <Numeric>
1267
1135
  include Comparable
1268
1136
  ## <>
1269
- include InfraRuby::Interface::TO_F
1137
+ include InfraRuby::ProtocolR::TO_F
1270
1138
  ## <>
1271
- include InfraRuby::Interface::TO_I
1139
+ include InfraRuby::ProtocolR::TO_I
1272
1140
  ## <>
1273
- include InfraRuby::Interface::TO_JSON
1141
+ include InfraRuby::ProtocolR::TO_JSON
1274
1142
  ## <>
1275
- include InfraRuby::Interface::TO_YAML
1143
+ include InfraRuby::ProtocolR::TO_YAML
1276
1144
  end
1277
1145
 
1278
1146
  ## <>
@@ -1318,6 +1186,8 @@ end
1318
1186
  ## #odd?: -> boolean
1319
1187
  ## #signum_as_int32: -> int32
1320
1188
  class Integer < Numeric
1189
+ ## <>
1190
+ include InfraRuby::Index
1321
1191
  end
1322
1192
 
1323
1193
  ## <>
@@ -1398,7 +1268,7 @@ end
1398
1268
  ## :^: Bignum -> Integer
1399
1269
  ## :^: Integer -> Integer
1400
1270
  ## :~: -> Fixnum
1401
- ## :to_java: -> java.lang.Long
1271
+ ## :to_j: -> java.lang.Long
1402
1272
  ## :to_byte: -> byte
1403
1273
  ## :to_byte!: -> byte
1404
1274
  ## :to_char: -> char
@@ -1506,7 +1376,7 @@ end
1506
1376
  ## :^: Bignum -> Integer
1507
1377
  ## :^: Integer -> Integer
1508
1378
  ## :~: -> Bignum
1509
- ## :to_java: -> java.math.BigInteger
1379
+ ## :to_j: -> java.math.BigInteger
1510
1380
  ## :to_byte: -> byte
1511
1381
  ## :to_byte!: -> byte
1512
1382
  ## :to_char: -> char
@@ -1603,7 +1473,7 @@ end
1603
1473
  ## :zero?: -> boolean
1604
1474
  ## :positive?: -> boolean
1605
1475
  ## :negative?: -> boolean
1606
- ## :to_java: -> java.lang.Double
1476
+ ## :to_j: -> java.lang.Double
1607
1477
  ## :to_float32: -> float32
1608
1478
  ## :to_float64: -> float64
1609
1479
  ## :to_f: -> Float
@@ -1706,10 +1576,10 @@ class Encoding::InvalidByteSequenceError < EncodingError
1706
1576
  end
1707
1577
 
1708
1578
  ## <>
1709
- ## .from_java_bytes: byte[] -> String
1710
- ## .from_java_bytes: byte[], Encoding -> String
1711
- ## .from_java_bytes_unsafe: byte[] -> String
1712
- ## .from_java_bytes_unsafe: byte[], Encoding -> String
1579
+ ## .from_j_bytes: byte[] -> String
1580
+ ## .from_j_bytes: byte[], Encoding -> String
1581
+ ## .from_j_bytes_unsafe: byte[] -> String
1582
+ ## .from_j_bytes_unsafe: byte[], Encoding -> String
1713
1583
  ## :equals: java.lang.Object? -> boolean
1714
1584
  ## :hashCode: -> int32
1715
1585
  ## :toString: -> java.lang.String
@@ -1745,9 +1615,9 @@ end
1745
1615
  ## :hex: -> Integer
1746
1616
  ## :to_str: -> String
1747
1617
  ## :to_sym: -> Symbol
1748
- ## :to_java_bytes: -> byte[]
1749
- ## :to_java_bytes_unsafe: -> byte[]
1750
- ## :to_java: -> java.lang.String
1618
+ ## :to_j_bytes: -> byte[]
1619
+ ## :to_j_bytes_unsafe: -> byte[]
1620
+ ## :to_j: -> java.lang.String
1751
1621
  ## :ord: -> Fixnum
1752
1622
  ## :timeless_eql?: String -> boolean
1753
1623
  ## :=~: Regexp -> Fixnum?
@@ -1766,30 +1636,30 @@ end
1766
1636
  ## :slice: Integer -> String?
1767
1637
  ## :slice: int32, int32 -> String?
1768
1638
  ## :slice: Integer, Integer -> String?
1769
- ## :slice: Range<*\Integer> -> String?
1639
+ ## :slice: Range<*\InfraRuby::Index> -> String?
1770
1640
  ## :slice: Regexp -> String?
1771
1641
  ## :[]: int32 -> String?
1772
1642
  ## :[]: Integer -> String?
1773
1643
  ## :[]: int32, int32 -> String?
1774
1644
  ## :[]: Integer, Integer -> String?
1775
- ## :[]: Range<*\Integer> -> String?
1645
+ ## :[]: Range<*\InfraRuby::Index> -> String?
1776
1646
  ## :[]: Regexp -> String?
1777
1647
  ## :fetch: int32 -> String
1778
1648
  ## :fetch: Integer -> String
1779
1649
  ## :fetch: int32, int32 -> String
1780
1650
  ## :fetch: Integer, Integer -> String
1781
- ## :fetch: Range<*\Integer> -> String
1651
+ ## :fetch: Range<*\InfraRuby::Index> -> String
1782
1652
  ## :fetch: Regexp -> String
1783
1653
  ## :byteslice: int32 -> String?
1784
1654
  ## :byteslice: Integer -> String?
1785
1655
  ## :byteslice: int32, int32 -> String?
1786
1656
  ## :byteslice: Integer, Integer -> String?
1787
- ## :byteslice: Range<*\Integer> -> String?
1657
+ ## :byteslice: Range<*\InfraRuby::Index> -> String?
1788
1658
  ## :byteslice!: int32 -> String
1789
1659
  ## :byteslice!: Integer -> String
1790
1660
  ## :byteslice!: int32, int32 -> String
1791
1661
  ## :byteslice!: Integer, Integer -> String
1792
- ## :byteslice!: Range<*\Integer> -> String
1662
+ ## :byteslice!: Range<*\InfraRuby::Index> -> String
1793
1663
  ## :getbyte: int32 -> Fixnum?
1794
1664
  ## :getbyte: Integer -> Fixnum?
1795
1665
  ## :getbyte!: int32 -> Fixnum
@@ -1867,13 +1737,13 @@ class String < Object
1867
1737
  ## <String>
1868
1738
  include Comparable
1869
1739
  ## <>
1870
- include InfraRuby::Interface::TO_F
1740
+ include InfraRuby::ProtocolR::TO_F
1871
1741
  ## <>
1872
- include InfraRuby::Interface::TO_I
1742
+ include InfraRuby::ProtocolR::TO_I
1873
1743
  ## <>
1874
- include InfraRuby::Interface::TO_JSON
1744
+ include InfraRuby::ProtocolR::TO_JSON
1875
1745
  ## <>
1876
- include InfraRuby::Interface::TO_YAML
1746
+ include InfraRuby::ProtocolR::TO_YAML
1877
1747
  end
1878
1748
 
1879
1749
  ## <>
@@ -1903,6 +1773,9 @@ end
1903
1773
  ## MULTILINE: Fixnum
1904
1774
  ## FIXEDENCODING: Fixnum
1905
1775
  ## NOENCODING: Fixnum
1776
+ ## .new: String -> Regexp
1777
+ ## .new: String, int32 -> Regexp
1778
+ ## .new: String, Integer -> Regexp
1906
1779
  ## :equals: java.lang.Object? -> boolean
1907
1780
  ## :hashCode: -> int32
1908
1781
  ## :==: java.lang.Object? -> boolean
@@ -1920,11 +1793,11 @@ end
1920
1793
  ## :names: -> Array<String>
1921
1794
  class Regexp < Object
1922
1795
  ## <>
1923
- include InfraRuby::Interface::OPERATOR_NE
1796
+ include InfraRuby::ProtocolJ::OPERATOR_NE
1924
1797
  ## <>
1925
- include InfraRuby::Interface::OPERATOR_EQ
1798
+ include InfraRuby::ProtocolJ::OPERATOR_EQ
1926
1799
  ## <>
1927
- include InfraRuby::Interface::OPERATOR_EQV
1800
+ include InfraRuby::ProtocolJ::OPERATOR_EQV
1928
1801
  end
1929
1802
 
1930
1803
  ## <>
@@ -1957,6 +1830,8 @@ end
1957
1830
  ## .new: <E: java.lang.Object?> -> Array<E>
1958
1831
  ## .new: <E: java.lang.Object?> int32 -> Array<E>
1959
1832
  ## .new: <E: java.lang.Object?> Integer -> Array<E>
1833
+ ## .new: <E: java.lang.Object?> int32, E -> Array<E>
1834
+ ## .new: <E: java.lang.Object?> Integer, E -> Array<E>
1960
1835
  ## .new: <T: java.lang.Object?> int32, &{-> T} -> Array<T>
1961
1836
  ## .new: <T: java.lang.Object?> Integer, &{-> T} -> Array<T>
1962
1837
  ## .new: <T: java.lang.Object?> int32, &{Fixnum -> T} -> Array<T>
@@ -2030,14 +1905,14 @@ end
2030
1905
  ## :slice: Integer -> E?
2031
1906
  ## :slice: int32, int32 -> Array<E>?
2032
1907
  ## :slice: Integer, Integer -> Array<E>?
2033
- ## :slice: Range<*\Integer> -> Array<E>?
1908
+ ## :slice: Range<*\InfraRuby::Index> -> Array<E>?
2034
1909
  ## :at: int32 -> E?
2035
1910
  ## :at: Integer -> E?
2036
1911
  ## :[]: int32 -> E?
2037
1912
  ## :[]: Integer -> E?
2038
1913
  ## :[]: int32, int32 -> Array<E>?
2039
1914
  ## :[]: Integer, Integer -> Array<E>?
2040
- ## :[]: Range<*\Integer> -> Array<E>?
1915
+ ## :[]: Range<*\InfraRuby::Index> -> Array<E>?
2041
1916
  ## :[]=: int32, E -> void
2042
1917
  ## :[]=: Integer, E -> void
2043
1918
  ## :fetch: int32 -> E
@@ -2093,15 +1968,15 @@ class Array < Object
2093
1968
  ## <E>
2094
1969
  include Enumerable
2095
1970
  ## <>
2096
- include InfraRuby::Interface::OPERATOR_NE
1971
+ include InfraRuby::ProtocolJ::OPERATOR_NE
2097
1972
  ## <>
2098
- include InfraRuby::Interface::OPERATOR_EQ
1973
+ include InfraRuby::ProtocolJ::OPERATOR_EQ
2099
1974
  ## <>
2100
- include InfraRuby::Interface::OPERATOR_EQV
1975
+ include InfraRuby::ProtocolJ::OPERATOR_EQV
2101
1976
  ## <>
2102
- include InfraRuby::Interface::TO_JSON
1977
+ include InfraRuby::ProtocolR::TO_JSON
2103
1978
  ## <>
2104
- include InfraRuby::Interface::TO_YAML
1979
+ include InfraRuby::ProtocolR::TO_YAML
2105
1980
  end
2106
1981
 
2107
1982
  ## <K: java.lang.Object?, V: java.lang.Object?>
@@ -2166,15 +2041,15 @@ end
2166
2041
  ## :merge!: Hash<*\K, *\V> -> void
2167
2042
  class Hash < Object
2168
2043
  ## <>
2169
- include InfraRuby::Interface::OPERATOR_NE
2044
+ include InfraRuby::ProtocolJ::OPERATOR_NE
2170
2045
  ## <>
2171
- include InfraRuby::Interface::OPERATOR_EQ
2046
+ include InfraRuby::ProtocolJ::OPERATOR_EQ
2172
2047
  ## <>
2173
- include InfraRuby::Interface::OPERATOR_EQV
2048
+ include InfraRuby::ProtocolJ::OPERATOR_EQV
2174
2049
  ## <>
2175
- include InfraRuby::Interface::TO_JSON
2050
+ include InfraRuby::ProtocolR::TO_JSON
2176
2051
  ## <>
2177
- include InfraRuby::Interface::TO_YAML
2052
+ include InfraRuby::ProtocolR::TO_YAML
2178
2053
  end
2179
2054
 
2180
2055
  ## <>
@@ -2195,35 +2070,35 @@ end
2195
2070
  ## BINARY: Fixnum
2196
2071
  ## .pipe: -> [IO, IO]
2197
2072
  ## .pipe: &{IO, IO -> void} -> void
2198
- ## .popen: String, {mode: Integer, encoding: Encoding} -> IO
2199
- ## .popen: String, {mode: Integer, encoding: Encoding}, &{IO -> void} -> void
2073
+ ## .popen: String, {encoding: Encoding, mode: Integer} -> IO
2074
+ ## .popen: String, {encoding: Encoding, mode: Integer}, &{IO -> void} -> void
2200
2075
  ## :clone: -> java.lang.Object?
2201
2076
  ## :dup: -> java.lang.Object?
2202
2077
  ## :to_enum: -> Enumerator<String>
2203
2078
  ## :each: -> Enumerator<String>
2204
2079
  ## :each: &{String -> void} -> void
2080
+ ## :to_j_channel: -> java.nio.channels.Channel
2081
+ ## :to_j_inputstream: -> java.io.InputStream
2082
+ ## :to_j_outputstream: -> java.io.OutputStream
2205
2083
  ## :autoclose=: boolean -> void
2206
2084
  ## :autoclose?: -> boolean
2207
2085
  ## :sync=: boolean -> void
2208
2086
  ## :sync: -> boolean
2209
- ## :to_channel: -> java.nio.channels.Channel
2210
2087
  ## :read: -> String
2211
2088
  ## :read: int32 -> String?
2212
2089
  ## :read: Integer -> String?
2213
2090
  ## :write: byte[] -> void
2214
2091
  ## :write: String -> void
2215
- ## :<<: byte[] -> self
2216
- ## :<<: String -> self
2217
2092
  ## :flush: -> void
2218
2093
  ## :close: -> void
2219
2094
  ## :closed?: -> boolean
2220
2095
  ## :each_line: -> Enumerator<String>
2221
2096
  ## :each_line: &{String -> void} -> void
2222
- ## :readpartial: int32 -> String
2223
- ## :readpartial: Integer -> String
2224
2097
  ## :sysread: int32 -> String
2225
2098
  ## :sysread: Integer -> String
2226
2099
  ## :syswrite: String -> void
2100
+ ## :readpartial: int32 -> String
2101
+ ## :readpartial: Integer -> String
2227
2102
  ## :gets: -> String?
2228
2103
  ## :gets: int32 -> String?
2229
2104
  ## :gets: Integer -> String?
@@ -2231,18 +2106,22 @@ end
2231
2106
  ## :readline: int32 -> String
2232
2107
  ## :readline: Integer -> String
2233
2108
  ## :readlines: -> Array<String>
2109
+ ## :readline_nonblock: -> String
2110
+ ## :readline_nonblock: int32 -> String
2111
+ ## :readline_nonblock: Integer -> String
2234
2112
  ## :puts: -> void
2235
- ## :puts: String -> void
2236
2113
  ## :puts: Array<*> -> void
2114
+ ## :puts: byte[] -> void
2115
+ ## :puts: String -> void
2237
2116
  ## :puts: java.lang.Object? -> void
2238
2117
  ## :read_nonblock: int32 -> String
2239
2118
  ## :read_nonblock: Integer -> String
2240
2119
  ## :write_nonblock: String -> Fixnum
2241
2120
  class IO < Object
2242
- ## <String>
2243
- include Enumerable
2244
2121
  ## <>
2245
- include InfraRuby::IO
2122
+ include InfraRuby::Reader
2123
+ ## <>
2124
+ include InfraRuby::Writer
2246
2125
  end
2247
2126
 
2248
2127
  ## <>
@@ -2318,13 +2197,15 @@ end
2318
2197
  ## .readlink: String -> String
2319
2198
  ## .rename: String, String -> void
2320
2199
  ## .unlink: String -> void
2321
- ## .open: String, {mode: Integer, encoding: Encoding} -> File
2322
- ## .open: String, {mode: Integer, encoding: Encoding}, &{File -> void} -> void
2200
+ ## .open: String, {encoding: Encoding, mode: Integer} -> File
2201
+ ## .open: String, {encoding: Encoding, mode: Integer}, &{File -> void} -> void
2323
2202
  ## .foreach: String, {encoding: Encoding}, &{String -> void} -> void
2324
2203
  ## .read: String, {encoding: Encoding} -> String
2325
2204
  ## .readlines: String, {encoding: Encoding} -> Array<String>
2326
2205
  ## .write: String, String, {encoding: Encoding} -> void
2206
+ ## :flock: int32 -> boolean
2327
2207
  ## :flock: Integer -> boolean
2208
+ ## :seek: int64, int64 -> void
2328
2209
  ## :seek: Integer, Integer -> void
2329
2210
  class File < IO
2330
2211
  end
@@ -2400,6 +2281,8 @@ end
2400
2281
  ## <>
2401
2282
  ## .new: -> Mutex
2402
2283
  ## :locked?: -> boolean
2284
+ ## :owned?: -> boolean
2285
+ ## :try_lock: -> boolean
2403
2286
  ## :lock: -> void
2404
2287
  ## :unlock: -> void
2405
2288
  ## :synchronize: &{-> void} -> void
@@ -2456,11 +2339,11 @@ class Set < Object
2456
2339
  ## <E>
2457
2340
  include Enumerable
2458
2341
  ## <>
2459
- include InfraRuby::Interface::OPERATOR_NE
2342
+ include InfraRuby::ProtocolJ::OPERATOR_NE
2460
2343
  ## <>
2461
- include InfraRuby::Interface::OPERATOR_EQ
2344
+ include InfraRuby::ProtocolJ::OPERATOR_EQ
2462
2345
  ## <>
2463
- include InfraRuby::Interface::OPERATOR_EQV
2346
+ include InfraRuby::ProtocolJ::OPERATOR_EQV
2464
2347
  end
2465
2348
 
2466
2349
  ## <>
@@ -2470,15 +2353,15 @@ end
2470
2353
  ## :equals: java.lang.Object? -> boolean
2471
2354
  ## :hashCode: -> int32
2472
2355
  ## :toString: -> java.lang.String
2473
- ## :==: java.lang.Object? -> boolean
2474
- ## :!=: java.lang.Object? -> boolean
2475
- ## :===: java.lang.Object? -> boolean
2476
2356
  ## :eql?: java.lang.Object? -> boolean
2477
2357
  ## :hash: -> Fixnum
2478
2358
  ## :to_s: -> String
2479
2359
  ## :inspect: -> String
2480
2360
  ## :compareTo: Date -> int32
2481
2361
  ## :<=>: Date -> Fixnum
2362
+ ## :==: java.lang.Object? -> boolean
2363
+ ## :!=: java.lang.Object? -> boolean
2364
+ ## :===: java.lang.Object? -> boolean
2482
2365
  ## :to_time: -> Time
2483
2366
  ## :to_time_in_utc: -> Time
2484
2367
  ## :monday?: -> boolean
@@ -2525,15 +2408,15 @@ end
2525
2408
  ## :equals: java.lang.Object? -> boolean
2526
2409
  ## :hashCode: -> int32
2527
2410
  ## :toString: -> java.lang.String
2528
- ## :==: java.lang.Object? -> boolean
2529
- ## :!=: java.lang.Object? -> boolean
2530
- ## :===: java.lang.Object? -> boolean
2531
2411
  ## :eql?: java.lang.Object? -> boolean
2532
2412
  ## :hash: -> Fixnum
2533
2413
  ## :to_s: -> String
2534
2414
  ## :inspect: -> String
2535
2415
  ## :compareTo: Time -> int32
2536
2416
  ## :<=>: Time -> Fixnum
2417
+ ## :==: java.lang.Object? -> boolean
2418
+ ## :!=: java.lang.Object? -> boolean
2419
+ ## :===: java.lang.Object? -> boolean
2537
2420
  ## :to_f: -> Float
2538
2421
  ## :to_fixnum: -> Fixnum
2539
2422
  ## :to_i: -> Integer
@@ -2567,15 +2450,28 @@ class Time < Object
2567
2450
  ## <Time>
2568
2451
  include Comparable
2569
2452
  ## <>
2570
- include InfraRuby::Interface::TO_F
2453
+ include InfraRuby::ProtocolR::TO_F
2571
2454
  ## <>
2572
- include InfraRuby::Interface::TO_I
2455
+ include InfraRuby::ProtocolR::TO_I
2456
+ end
2457
+
2458
+ ## <E: java.lang.Object?>
2459
+ ## .new: <E: java.lang.Object?> -> Thread::Queue<E>
2460
+ ## :<<: E -> self
2461
+ ## :empty?: -> boolean
2462
+ ## :clear: -> void
2463
+ ## :deq: -> E
2464
+ ## :deq: boolean -> E
2465
+ ## :enq: E -> void
2466
+ ## :size: -> Fixnum
2467
+ ## :size_as_int32: -> int32
2468
+ class Thread::Queue < Object
2573
2469
  end
2574
2470
 
2575
2471
  ## <>
2576
- ## .random_java_bytes: -> byte[]
2577
- ## .random_java_bytes: int32 -> byte[]
2578
- ## .random_java_bytes: Integer -> byte[]
2472
+ ## .random_j_bytes: -> byte[]
2473
+ ## .random_j_bytes: int32 -> byte[]
2474
+ ## .random_j_bytes: Integer -> byte[]
2579
2475
  ## .hex: -> String
2580
2476
  ## .hex: int32 -> String
2581
2477
  ## .hex: Integer -> String
@@ -2631,6 +2527,7 @@ end
2631
2527
  ## <>
2632
2528
  ## .bm: &{Benchmark::Report -> void} -> void
2633
2529
  ## .bm: Integer, &{Benchmark::Report -> void} -> void
2530
+ ## .measure: &{-> void} -> Benchmark::Tms
2634
2531
  ## .measure: String, &{-> void} -> Benchmark::Tms
2635
2532
  module Benchmark
2636
2533
  end
@@ -2642,22 +2539,21 @@ class Benchmark::Report < Object
2642
2539
  end
2643
2540
 
2644
2541
  ## <>
2542
+ ## :utime: -> Float
2543
+ ## :stime: -> Float
2544
+ ## :cutime: -> Float
2545
+ ## :cstime: -> Float
2546
+ ## :real: -> Float
2547
+ ## :label: -> String
2548
+ ## :to_s: -> String
2549
+ ## :*: Float -> Benchmark::Tms
2550
+ ## :/: Float -> Benchmark::Tms
2551
+ ## :+: Benchmark::Tms -> Benchmark::Tms
2552
+ ## :-: Benchmark::Tms -> Benchmark::Tms
2645
2553
  ## :format: -> String
2646
2554
  class Benchmark::Tms < Object
2647
2555
  end
2648
2556
 
2649
- ## <E: java.lang.Object?>
2650
- ## .new: <E: java.lang.Object?> -> Queue<E>
2651
- ## :<<: E -> self
2652
- ## :empty?: -> boolean
2653
- ## :clear: -> void
2654
- ## :deq: -> E
2655
- ## :enq: E -> void
2656
- ## :size: -> Fixnum
2657
- ## :size_as_int32: -> int32
2658
- class Queue < Object
2659
- end
2660
-
2661
2557
  ## <>
2662
2558
  ## .new: -> StringIO
2663
2559
  ## .new: String -> StringIO
@@ -2674,14 +2570,16 @@ class IPSocket < BasicSocket
2674
2570
  end
2675
2571
 
2676
2572
  ## <>
2573
+ ## .new: String, int32 -> TCPSocket
2677
2574
  ## .new: String, Integer -> TCPSocket
2678
2575
  class TCPSocket < IPSocket
2679
2576
  end
2680
2577
 
2681
2578
  ## <>
2682
- ## .new: Integer -> TCPServer
2579
+ ## .new: String, int32 -> TCPServer
2683
2580
  ## .new: String, Integer -> TCPServer
2684
2581
  ## :accept: -> TCPSocket
2582
+ ## :accept_nonblock: -> TCPSocket
2685
2583
  class TCPServer < TCPSocket
2686
2584
  end
2687
2585
 
@@ -2742,11 +2640,11 @@ end
2742
2640
  ## :read: {encoding: Encoding} -> String
2743
2641
  class Pathname < Object
2744
2642
  ## <>
2745
- include InfraRuby::Interface::OPERATOR_NE
2643
+ include InfraRuby::ProtocolJ::OPERATOR_NE
2746
2644
  ## <>
2747
- include InfraRuby::Interface::OPERATOR_EQ
2645
+ include InfraRuby::ProtocolJ::OPERATOR_EQ
2748
2646
  ## <>
2749
- include InfraRuby::Interface::OPERATOR_EQV
2647
+ include InfraRuby::ProtocolJ::OPERATOR_EQV
2750
2648
  end
2751
2649
 
2752
2650
  ## <>