|
|
@ -176,12 +176,10 @@ tstylesheet { |
|
|
|
} |
|
|
|
|
|
|
|
template "method", mode=plain { |
|
|
|
const "convert", "1"; |
|
|
|
const "singlereturn", "count(parm/creates|parm/returns|parm/inout[../int]) = 1"; |
|
|
|
const "multireturn", "count(parm/creates|parm/returns|parm/inout[../int]) > 1"; |
|
|
|
|
|
|
|
if "$multireturn" { |
|
|
|
if "$convert" |
|
|
|
|| |
|
|
|
private class _«@name»_Return { |
|
|
|
`` apply "parm[creates|returns|inout[../int]]", 1, mode=intermediate with "public", 1; |
|
|
@ -190,22 +188,17 @@ tstylesheet { |
|
|
|
|| |
|
|
|
} |
|
|
|
|
|
|
|
if "$convert" |
|
|
|
|| |
|
|
|
private native `call "returnInter"` _«@name»( |
|
|
|
`` apply "parm[in|inout]", 2, mode=intermediate |
|
|
|
) throws pEpException; |
|
|
|
|
|
|
|
|| |
|
|
|
|
|
|
|
|| |
|
|
|
public `if "not($convert)" > native ``call "returnJava"` «@name»( |
|
|
|
public `call "returnJava"` «@name»( |
|
|
|
`` apply "parm[in|inout]", 2, mode=java |
|
|
|
) throws pEpException`if "not($convert)" > ;` |
|
|
|
) throws pEpException |
|
|
|
{ |
|
|
|
|| |
|
|
|
|
|
|
|
if "$convert" { |
|
|
|
| { |
|
|
|
apply "parm", mode=convertIn; |
|
|
|
|
|
|
|
if "$singlereturn" choose { |
|
|
@ -262,18 +255,13 @@ tstylesheet { |
|
|
|
} |
|
|
|
|| |
|
|
|
} |
|
|
|
|| |
|
|
|
|
|
|
|
|| |
|
|
|
} |
|
|
|
|
|
|
|
template "method", mode=java_interface { |
|
|
|
const "convert", "count(parm/stringlist|parm/stringpairlist|parm/string|parm/identity|parm/identitylist) > 0"; |
|
|
|
const "singlereturn", "count(parm/creates|parm/returns|parm/inout[../int]) = 1"; |
|
|
|
const "multireturn", "count(parm/creates|parm/returns|parm/inout[../int]) > 1"; |
|
|
|
|
|
|
|
|| |
|
|
|
public `if "not($convert)" > native ``call "returnJava"` «@name»( |
|
|
|
public `call "returnJava"` «@name»( |
|
|
|
`` apply "parm[in|inout]", 2, mode=java |
|
|
|
) throws pEpException; |
|
|
|
|
|
|
|