msgpack-idl-java 0.1.0 → 0.1.1
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.
@@ -30,11 +30,11 @@ public class #{@name} implements Dispatcher {
|
|
30
30
|
<?rb sv.functions.each {|f| ?>
|
31
31
|
private class Default_#{s.name}_#{sv.version}_#{f.name} implements #{s.name}_#{sv.version}.I#{f.name} {
|
32
32
|
public #{format_type(f.return_type)} #{f.name}(#{format_message_class(s, sv.version)}.A#{f.name} args) {
|
33
|
-
<?rb if f.
|
33
|
+
<?rb if f.inherited? ?>
|
34
34
|
<?rb if f.return_type.void_type? ?>
|
35
|
-
#{@name}.this.#{c.name}_#{f.
|
35
|
+
#{@name}.this.#{c.name}_#{f.inherit_version}.get#{f.name.capitalize}().#{f.name}(args);
|
36
36
|
<?rb else ?>
|
37
|
-
return #{@name}.this.#{c.name}_#{f.
|
37
|
+
return #{@name}.this.#{c.name}_#{f.inherit_version}.get#{f.name.capitalize}().#{f.name}(args);
|
38
38
|
<?rb end ?>
|
39
39
|
<?rb else ?>
|
40
40
|
throw new RPCError(".NotImplemented"); // TODO
|
@@ -15,8 +15,25 @@ import org.msgpack.MessageConvertable;
|
|
15
15
|
|
16
16
|
public abstract class #{@name} {
|
17
17
|
<?rb @functions.each {|f| ?>
|
18
|
-
<?rb if f.
|
19
|
-
public static class A#{f.name} extends #{@service.name}_#{f.
|
18
|
+
<?rb if f.inherited? ?>
|
19
|
+
public static class A#{f.name} extends #{@service.name}_#{f.inherit_version}.A#{f.name} {
|
20
|
+
public A#{f.name}() {
|
21
|
+
super();
|
22
|
+
}
|
23
|
+
|
24
|
+
<?rb fields = f.all_fields ?>
|
25
|
+
<?rb unless fields.empty? ?>
|
26
|
+
public A#{f.name}(#{ fields.map {|f| format_type(f.type)+" "+f.name }.join(', ') }) {
|
27
|
+
super(#{fields.map {|f| f.name }.join(', ') });
|
28
|
+
}
|
29
|
+
<?rb end ?>
|
30
|
+
|
31
|
+
<?rb if f.max_id != f.max_required_id && f.max_required_id > 0 ?>
|
32
|
+
<?rb fields = f.all_fields[0, f.max_required_id] ?>
|
33
|
+
public A#{f.name}(#{ fields.map {|f| format_type(f.type)+" "+f.name }.join(', ') }) {
|
34
|
+
super(#{fields.map {|f| f.name }.join(', ') });
|
35
|
+
}
|
36
|
+
<?rb end ?>
|
20
37
|
}
|
21
38
|
<?rb else ?>
|
22
39
|
public static #{format_message(f, "A#{f.name}")}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: msgpack-idl-java
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- FURUHASHI Sadayuki
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-04-
|
18
|
+
date: 2011-04-26 00:00:00 +09:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -26,12 +26,12 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 25
|
30
30
|
segments:
|
31
31
|
- 0
|
32
32
|
- 1
|
33
|
-
-
|
34
|
-
version: 0.1.
|
33
|
+
- 1
|
34
|
+
version: 0.1.1
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: *id001
|
37
37
|
- !ruby/object:Gem::Dependency
|