diff options
Diffstat (limited to 'src/expr')
-rw-r--r-- | src/expr/command.i | 6 | ||||
-rw-r--r-- | src/expr/expr.i | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/expr/command.i b/src/expr/command.i index 6085a444f..76c8fa674 100644 --- a/src/expr/command.i +++ b/src/expr/command.i @@ -54,6 +54,12 @@ // getNext() just allows C++ iterator access from Java-side next(), make it private %javamethodmodifiers CVC4::JavaIteratorAdapter<CVC4::CommandSequence>::getNext() "private"; +// map the types appropriately +%typemap(jni) CVC4::CommandSequence::const_iterator::value_type "jobject"; +%typemap(jtype) CVC4::CommandSequence::const_iterator::value_type "edu.nyu.acsys.CVC4.Command"; +%typemap(jstype) CVC4::CommandSequence::const_iterator::value_type "edu.nyu.acsys.CVC4.Command"; +%typemap(javaout) CVC4::CommandSequence::const_iterator::value_type { return $jnicall; } + #endif /* SWIGJAVA */ %include "expr/command.h" diff --git a/src/expr/expr.i b/src/expr/expr.i index 92ab517b1..977345a63 100644 --- a/src/expr/expr.i +++ b/src/expr/expr.i @@ -72,6 +72,12 @@ namespace CVC4 { // getNext() just allows C++ iterator access from Java-side next(), make it private %javamethodmodifiers CVC4::JavaIteratorAdapter<CVC4::Expr>::getNext() "private"; +// map the types appropriately +%typemap(jni) CVC4::Expr::const_iterator::value_type "jobject"; +%typemap(jtype) CVC4::Expr::const_iterator::value_type "edu.nyu.acsys.CVC4.Expr"; +%typemap(jstype) CVC4::Expr::const_iterator::value_type "edu.nyu.acsys.CVC4.Expr"; +%typemap(javaout) CVC4::Expr::const_iterator::value_type { return $jnicall; } + #endif /* SWIGJAVA */ %include "expr/expr.h" |