|
@ -13,6 +13,7 @@ function "toJava" { |
|
|
when "$type='stringpairlist'" > ArrayList<Pair<String, String>> |
|
|
when "$type='stringpairlist'" > ArrayList<Pair<String, String>> |
|
|
when "$type='message'" > Message |
|
|
when "$type='message'" > Message |
|
|
when "$type='void'" > void |
|
|
when "$type='void'" > void |
|
|
|
|
|
when "$type='bool'" > boolean |
|
|
|
|
|
|
|
|
otherwise call "CamelCase" with "text", "$type"; |
|
|
otherwise call "CamelCase" with "text", "$type"; |
|
|
} |
|
|
} |
|
@ -33,6 +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 |
|
|
|
|
|
|
|
|
otherwise error | # cannot declare "«$type»" |
|
|
otherwise error | # cannot declare "«$type»" |
|
|
} |
|
|
} |
|
|