
8 changed files with 239 additions and 115 deletions
@ -1,32 +0,0 @@ |
|||
include yslt.yml2 |
|||
|
|||
tstylesheet { |
|||
include ./types_java.ysl2 |
|||
|
|||
template "/" |
|||
|| |
|||
package org.pEp.jniadapter; |
|||
|
|||
final public class Engine extends AbstractEngine { |
|||
public Engine() throws pEpException { } |
|||
|
|||
`` apply "namespace/interface/method"; |
|||
} |
|||
|| |
|||
|
|||
template "method" |
|||
|| |
|||
public native void «@name»( |
|||
`` apply "parm", 2 |
|||
) throws pEpException;`if "position()!=last()" > \n` |
|||
|| |
|||
|
|||
template "parm" { |
|||
const "dir", "name(*[1])"; |
|||
const "type", "name(*[2])"; |
|||
const "name", "name(*[3])"; |
|||
|
|||
| `call "toJava" with "type", "$type"` «translate($name,'-','_')»`if "position()!=last()" > ,` |
|||
} |
|||
} |
|||
|
@ -1,7 +1,7 @@ |
|||
package org.pEp.jniadapter; |
|||
|
|||
public class Pair<F, S> { |
|||
private F first; |
|||
private S second; |
|||
public F first; |
|||
public S second; |
|||
} |
|||
|
|||
|
Loading…
Reference in new issue