Browse Source

Fixing generation

JNI-44
Edouard Tisserant 9 years ago
parent
commit
a873524f8c
  1. 2
      src/gen_java_Engine.ysl2
  2. 1
      src/pEp.yml2
  3. 4
      src/types_java.ysl2

2
src/gen_java_Engine.ysl2

@ -40,6 +40,8 @@ tstylesheet {
choose { choose {
when "$ptype = 'string'" when "$ptype = 'string'"
|> «$pitype» _«$pname» = «$pname».getBytes(); |> «$pitype» _«$pname» = «$pname».getBytes();
when "$ptype = 'bool'"
|> «$pitype» _«$pname» = «$pname».booleanValue();
otherwise otherwise
|> «$pitype» _«$pname» = new «$pitype»(«$pname»); |> «$pitype» _«$pname» = new «$pitype»(«$pname»);
} }

1
src/pEp.yml2

@ -100,7 +100,6 @@ namespace pEp {
returns Color color returns Color color
); );
// method blacklist_retrive( // method blacklist_retrive(
// creates stringlist blacklist // creates stringlist blacklist
// ); // );

4
src/types_java.ysl2

@ -34,7 +34,7 @@ function "toJavaDeclare" {
when "$type='stringpairlist'" | # cannot declare "stringpairlist" when "$type='stringpairlist'" | # cannot declare "stringpairlist"
when "$type='message'" > Message when "$type='message'" > Message
when "$type='Color'" > Color when "$type='Color'" > Color
when "$type='bool'" > Boolean //when "$type='bool'" > boolean
otherwise error | # cannot declare "«$type»" otherwise error | # cannot declare "«$type»"
} }
@ -45,6 +45,7 @@ function "toSig" {
choose { choose {
when "$type='string'" error | # cannot declare "string" when "$type='string'" error | # cannot declare "string"
when "$type='bool'" > Z
otherwise { otherwise {
> L > L
choose { choose {
@ -75,6 +76,7 @@ function "toIntermediate" {
when "$type='identity'" > _Identity when "$type='identity'" > _Identity
when "$type='identitylist'" > Vector<_Identity> when "$type='identitylist'" > Vector<_Identity>
when "$type='bloblist'" > Vector<_Blob> when "$type='bloblist'" > Vector<_Blob>
when "$type='bool'" > boolean
otherwise call "toJava" with "type", "$type"; otherwise call "toJava" with "type", "$type";
} }

Loading…
Cancel
Save