| 1 | /* This file is part of the FaCT++ DL reasoner |
| 2 | Copyright (C) 2006-2015 Dmitry Tsarkov and The University of Manchester |
| 3 | Copyright (C) 2015-2017 Dmitry Tsarkov |
| 4 | |
| 5 | This library is free software; you can redistribute it and/or |
| 6 | modify it under the terms of the GNU Lesser General Public |
| 7 | License as published by the Free Software Foundation; either |
| 8 | version 2.1 of the License, or (at your option) any later version. |
| 9 | |
| 10 | This library is distributed in the hope that it will be useful, |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | Lesser General Public License for more details. |
| 14 | |
| 15 | You should have received a copy of the GNU Lesser General Public |
| 16 | License along with this library; if not, write to the Free Software |
| 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | */ |
| 19 | |
| 20 | // this file contains implementation of DL expression-related methods of FaCT++ JNI interface |
| 21 | |
| 22 | #include <sstream> |
| 23 | |
| 24 | #include "uk_ac_manchester_cs_factplusplus_FaCTPlusPlus.h" |
| 25 | #include "Kernel.h" |
| 26 | #include "tJNICache.h" |
| 27 | |
| 28 | #ifdef __cplusplus |
| 29 | extern "C" { |
| 30 | #endif |
| 31 | |
| 32 | //------------------------------------------------------------- |
| 33 | // Concept/role/datatype language |
| 34 | //------------------------------------------------------------- |
| 35 | |
| 36 | /* |
| 37 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 38 | * Method: getThing |
| 39 | * Signature: ()Luk/ac/manchester/cs/factplusplus/ClassPointer; |
| 40 | */ |
| 41 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getThing |
| 42 | (JNIEnv * env, jobject obj) |
| 43 | { |
| 44 | TRACE_JNI("getThing"); |
| 45 | TJNICache* J = getJ(env,obj); |
| 46 | return J->Class(J->EM->Top()); |
| 47 | } |
| 48 | |
| 49 | /* |
| 50 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 51 | * Method: getNothing |
| 52 | * Signature: ()Luk/ac/manchester/cs/factplusplus/ClassPointer; |
| 53 | */ |
| 54 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getNothing |
| 55 | (JNIEnv * env, jobject obj) |
| 56 | { |
| 57 | TRACE_JNI("getNothing"); |
| 58 | TJNICache* J = getJ(env,obj); |
| 59 | return J->Class(J->EM->Bottom()); |
| 60 | } |
| 61 | |
| 62 | /* |
| 63 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 64 | * Method: getNamedClass |
| 65 | * Signature: (Ljava/lang/String;)Luk/ac/manchester/cs/factplusplus/ClassPointer; |
| 66 | */ |
| 67 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getNamedClass |
| 68 | (JNIEnv * env, jobject obj, jstring str) |
| 69 | { |
| 70 | TRACE_JNI("getNamedClass"); |
| 71 | TRACE_STR(env,str); |
| 72 | TJNICache* J = getJ(env,obj); |
| 73 | JString name(env,str); |
| 74 | jobject ret = nullptr; |
| 75 | try |
| 76 | { |
| 77 | ret = J->Class(J->getCName(name())); |
| 78 | } |
| 79 | catch (const EFPPCantRegName&) |
| 80 | { |
| 81 | Throw ( env, "FaCT++ Kernel: Can not register new class name" ); |
| 82 | } |
| 83 | return ret; |
| 84 | } |
| 85 | |
| 86 | /* |
| 87 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 88 | * Method: getTopObjectProperty |
| 89 | * Signature: ()Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer; |
| 90 | */ |
| 91 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getTopObjectProperty |
| 92 | (JNIEnv * env, jobject obj) |
| 93 | { |
| 94 | TRACE_JNI("getTopObjectProperty"); |
| 95 | TJNICache* J = getJ(env,obj); |
| 96 | return J->ObjectProperty(J->getOName("http://www.w3.org/2002/07/owl#topObjectProperty")); |
| 97 | } |
| 98 | |
| 99 | /* |
| 100 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 101 | * Method: getBottomObjectProperty |
| 102 | * Signature: ()Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer; |
| 103 | */ |
| 104 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getBottomObjectProperty |
| 105 | (JNIEnv * env, jobject obj) |
| 106 | { |
| 107 | TRACE_JNI("getBottomObjectProperty"); |
| 108 | TJNICache* J = getJ(env,obj); |
| 109 | return J->ObjectProperty(J->getOName("http://www.w3.org/2002/07/owl#bottomObjectProperty")); |
| 110 | } |
| 111 | |
| 112 | /* |
| 113 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 114 | * Method: getObjectProperty |
| 115 | * Signature: (Ljava/lang/String;)Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer; |
| 116 | */ |
| 117 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getObjectProperty |
| 118 | (JNIEnv * env, jobject obj, jstring str) |
| 119 | { |
| 120 | TRACE_JNI("getObjectProperty"); |
| 121 | TRACE_STR(env,str); |
| 122 | TJNICache* J = getJ(env,obj); |
| 123 | JString name(env,str); |
| 124 | jobject ret = nullptr; |
| 125 | try |
| 126 | { |
| 127 | ret = J->ObjectProperty(J->getOName(name())); |
| 128 | } |
| 129 | catch (const EFPPCantRegName&) |
| 130 | { |
| 131 | Throw ( env, "FaCT++ Kernel: Can not register new object property name" ); |
| 132 | } |
| 133 | return ret; |
| 134 | } |
| 135 | |
| 136 | /* |
| 137 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 138 | * Method: getTopDataProperty |
| 139 | * Signature: ()Luk/ac/manchester/cs/factplusplus/DataPropertyPointer; |
| 140 | */ |
| 141 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getTopDataProperty |
| 142 | (JNIEnv * env, jobject obj) |
| 143 | { |
| 144 | TRACE_JNI("getTopDataProperty"); |
| 145 | TJNICache* J = getJ(env,obj); |
| 146 | return J->DataProperty(J->getDName("http://www.w3.org/2002/07/owl#topDataProperty")); |
| 147 | } |
| 148 | |
| 149 | /* |
| 150 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 151 | * Method: getBottomDataProperty |
| 152 | * Signature: ()Luk/ac/manchester/cs/factplusplus/DataPropertyPointer; |
| 153 | */ |
| 154 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getBottomDataProperty |
| 155 | (JNIEnv * env, jobject obj) |
| 156 | { |
| 157 | TRACE_JNI("getBottomDataProperty"); |
| 158 | TJNICache* J = getJ(env,obj); |
| 159 | return J->DataProperty(J->getDName("http://www.w3.org/2002/07/owl#bottomDataProperty")); |
| 160 | } |
| 161 | |
| 162 | /* |
| 163 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 164 | * Method: getDataProperty |
| 165 | * Signature: (Ljava/lang/String;)Luk/ac/manchester/cs/factplusplus/DataPropertyPointer; |
| 166 | */ |
| 167 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getDataProperty |
| 168 | (JNIEnv * env, jobject obj, jstring str) |
| 169 | { |
| 170 | TRACE_JNI("getDataProperty"); |
| 171 | TRACE_STR(env,str); |
| 172 | TJNICache* J = getJ(env,obj); |
| 173 | JString name(env,str); |
| 174 | jobject ret = nullptr; |
| 175 | try |
| 176 | { |
| 177 | ret = J->DataProperty(J->getDName(name())); |
| 178 | } |
| 179 | catch (const EFPPCantRegName&) |
| 180 | { |
| 181 | Throw ( env, "FaCT++ Kernel: Can not register new data property name" ); |
| 182 | } |
| 183 | return ret; |
| 184 | } |
| 185 | |
| 186 | /* |
| 187 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 188 | * Method: getIndividual |
| 189 | * Signature: (Ljava/lang/String;)Luk/ac/manchester/cs/factplusplus/IndividualPointer; |
| 190 | */ |
| 191 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getIndividual |
| 192 | (JNIEnv * env, jobject obj, jstring str) |
| 193 | { |
| 194 | TRACE_JNI("getIndividual"); |
| 195 | TRACE_STR(env,str); |
| 196 | TJNICache* J = getJ(env,obj); |
| 197 | JString name(env,str); |
| 198 | jobject ret = nullptr; |
| 199 | try |
| 200 | { |
| 201 | ret = J->Individual(J->getIName(name())); |
| 202 | } |
| 203 | catch (const EFPPCantRegName&) |
| 204 | { |
| 205 | Throw ( env, "FaCT++ Kernel: Can not register new individual name" ); |
| 206 | } |
| 207 | return ret; |
| 208 | } |
| 209 | |
| 210 | /* |
| 211 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 212 | * Method: getBuiltInDataType |
| 213 | * Signature: (Ljava/lang/String;)Luk/ac/manchester/cs/factplusplus/DataTypePointer; |
| 214 | */ |
| 215 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getBuiltInDataType |
| 216 | (JNIEnv * env, jobject obj, jstring str) |
| 217 | { |
| 218 | TRACE_JNI("getBuiltInDataType"); |
| 219 | TRACE_STR(env,str); |
| 220 | TJNICache* J = getJ(env,obj); |
| 221 | JString name(env,str); |
| 222 | std::string DTName(name()); |
| 223 | if ( DTName == "http://www.w3.org/2000/01/rdf-schema#Literal" || |
| 224 | DTName == "http://www.w3.org/2000/01/rdf-schema#anySimpleType" || |
| 225 | DTName == "http://www.w3.org/2001/XMLSchema#anyType" || |
| 226 | DTName == "http://www.w3.org/2001/XMLSchema#anySimpleType" ) |
| 227 | return J->DataType(J->EM->DataTop()); |
| 228 | |
| 229 | if ( DTName == "http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral" || |
| 230 | DTName == "http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral" || |
| 231 | DTName == "http://www.w3.org/2001/XMLSchema#string" || |
| 232 | DTName == "http://www.w3.org/2001/XMLSchema#anyURI" || |
| 233 | DTName == "http://www.w3.org/2001/XMLSchema#ID" ) |
| 234 | return J->DataType(J->EM->getStrDataType()); |
| 235 | |
| 236 | if ( DTName == "http://www.w3.org/2001/XMLSchema#integer" || |
| 237 | DTName == "http://www.w3.org/2001/XMLSchema#int" || |
| 238 | DTName == "http://www.w3.org/2001/XMLSchema#long" || |
| 239 | DTName == "http://www.w3.org/2001/XMLSchema#nonNegativeInteger" || |
| 240 | DTName == "http://www.w3.org/2001/XMLSchema#positiveInteger" || |
| 241 | DTName == "http://www.w3.org/2001/XMLSchema#negativeInteger" || |
| 242 | DTName == "http://www.w3.org/2001/XMLSchema#short" || |
| 243 | DTName == "http://www.w3.org/2001/XMLSchema#byte" ) |
| 244 | return J->DataType(J->EM->getIntDataType()); |
| 245 | |
| 246 | if ( DTName == "http://www.w3.org/2001/XMLSchema#float" || |
| 247 | DTName == "http://www.w3.org/2001/XMLSchema#double" || |
| 248 | DTName == "http://www.w3.org/2002/07/owl#real" || |
| 249 | DTName == "http://www.w3.org/2001/XMLSchema#decimal" ) |
| 250 | return J->DataType(J->EM->getRealDataType()); |
| 251 | |
| 252 | if ( DTName == "http://www.w3.org/2001/XMLSchema#boolean" ) |
| 253 | return J->DataType(J->EM->getBoolDataType()); |
| 254 | |
| 255 | if ( DTName == "http://www.w3.org/2001/XMLSchema#dateTimeAsLong" ) |
| 256 | return J->DataType(J->EM->getTimeDataType()); |
| 257 | |
| 258 | std::stringstream err; |
| 259 | err << "Unsupported datatype '" << DTName << "'"; |
| 260 | Throw ( env, err.str().c_str() ); |
| 261 | return nullptr; |
| 262 | } |
| 263 | |
| 264 | /* |
| 265 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 266 | * Method: getDataSubType |
| 267 | * Signature: (Ljava/lang/String;Luk/ac/manchester/cs/factplusplus/DataTypeExpressionPointer;)Luk/ac/manchester/cs/factplusplus/DataTypeExpressionPointer; |
| 268 | */ |
| 269 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getDataSubType |
| 270 | (JNIEnv * env, jobject obj ATTR_UNUSED, jstring str ATTR_UNUSED, jobject type ATTR_UNUSED) |
| 271 | { |
| 272 | TRACE_JNI("getDataSubType"); |
| 273 | TRACE_STR(env,str); |
| 274 | // TJNICache* J = getJ(env,obj); |
| 275 | JString name(env,str); |
| 276 | Throw ( env, "FaCT++ Kernel: unsupported operation 'getDataSubType'" ); |
| 277 | jobject ret = nullptr; |
| 278 | #if 0 |
| 279 | try |
| 280 | { |
| 281 | ret = DataTypeExpression ( env, getK(env,obj)->getDataTypeCenter(). |
| 282 | getDataType ( name(), getDataExpr(env,type) ) ); |
| 283 | } |
| 284 | catch (const EFPPCantRegName&) |
| 285 | { |
| 286 | Throw ( env, "FaCT++ Kernel: Can not register new data type" ); |
| 287 | } |
| 288 | #endif |
| 289 | return ret; |
| 290 | } |
| 291 | |
| 292 | /* |
| 293 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 294 | * Method: getDataTop |
| 295 | * Signature: ()Luk/ac/manchester/cs/factplusplus/DataTypePointer; |
| 296 | */ |
| 297 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getDataTop |
| 298 | (JNIEnv * env, jobject obj) |
| 299 | { |
| 300 | TRACE_JNI("getDataTop"); |
| 301 | TJNICache* J = getJ(env,obj); |
| 302 | return J->DataType(J->EM->DataTop()); |
| 303 | } |
| 304 | |
| 305 | /* |
| 306 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 307 | * Method: getDataEnumeration |
| 308 | * Signature: ()Luk/ac/manchester/cs/factplusplus/DataTypeExpressionPointer; |
| 309 | */ |
| 310 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getDataEnumeration |
| 311 | (JNIEnv * env, jobject obj) |
| 312 | { |
| 313 | TRACE_JNI("getDataEnumeration"); |
| 314 | TJNICache* J = getJ(env,obj); |
| 315 | return J->DataTypeExpression(J->EM->DataOneOf()); |
| 316 | } |
| 317 | |
| 318 | /* |
| 319 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 320 | * Method: getRestrictedDataType |
| 321 | * Signature: (Luk/ac/manchester/cs/factplusplus/DataTypeExpressionPointer;Luk/ac/manchester/cs/factplusplus/DataTypeFacet;)Luk/ac/manchester/cs/factplusplus/DataTypeExpressionPointer; |
| 322 | */ |
| 323 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getRestrictedDataType |
| 324 | (JNIEnv * env, jobject obj, jobject arg1, jobject arg2) |
| 325 | { |
| 326 | TRACE_JNI("getRestrictedDataType"); |
| 327 | TJNICache* J = getJ(env,obj); |
| 328 | return J->DataTypeExpression ( J->EM->RestrictedType ( getDataTypeExpr(env,arg1), getFacetExpr(env,arg2) ) ); |
| 329 | } |
| 330 | |
| 331 | /* |
| 332 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 333 | * Method: getLength |
| 334 | * Signature: (Luk/ac/manchester/cs/factplusplus/DataValuePointer;)Luk/ac/manchester/cs/factplusplus/DataTypeFacet; |
| 335 | */ |
| 336 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getLength |
| 337 | (JNIEnv * env, jobject, jobject) |
| 338 | { |
| 339 | Throw ( env, "FaCT++ Kernel: unsupported facet 'getLength'" ); |
| 340 | return nullptr; |
| 341 | } |
| 342 | |
| 343 | /* |
| 344 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 345 | * Method: getMinLength |
| 346 | * Signature: (Luk/ac/manchester/cs/factplusplus/DataValuePointer;)Luk/ac/manchester/cs/factplusplus/DataTypeFacet; |
| 347 | */ |
| 348 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getMinLength |
| 349 | (JNIEnv * env, jobject, jobject) |
| 350 | { |
| 351 | Throw ( env, "FaCT++ Kernel: unsupported facet 'getMinLength'" ); |
| 352 | return nullptr; |
| 353 | } |
| 354 | |
| 355 | /* |
| 356 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 357 | * Method: getMaxLength |
| 358 | * Signature: (Luk/ac/manchester/cs/factplusplus/DataValuePointer;)Luk/ac/manchester/cs/factplusplus/DataTypeFacet; |
| 359 | */ |
| 360 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getMaxLength |
| 361 | (JNIEnv * env, jobject, jobject) |
| 362 | { |
| 363 | Throw ( env, "FaCT++ Kernel: unsupported facet 'getMaxLength'" ); |
| 364 | return nullptr; |
| 365 | } |
| 366 | |
| 367 | /* |
| 368 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 369 | * Method: getPattern |
| 370 | * Signature: (Luk/ac/manchester/cs/factplusplus/DataValuePointer;)Luk/ac/manchester/cs/factplusplus/DataTypeFacet; |
| 371 | */ |
| 372 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getPattern |
| 373 | (JNIEnv * env, jobject, jobject) |
| 374 | { |
| 375 | Throw ( env, "FaCT++ Kernel: unsupported facet 'getPattern'" ); |
| 376 | return nullptr; |
| 377 | } |
| 378 | |
| 379 | /* |
| 380 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 381 | * Method: getMinExclusiveFacet |
| 382 | * Signature: (Luk/ac/manchester/cs/factplusplus/DataValuePointer;)Luk/ac/manchester/cs/factplusplus/DataTypeFacet; |
| 383 | */ |
| 384 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getMinExclusiveFacet |
| 385 | (JNIEnv * env, jobject obj, jobject arg) |
| 386 | { |
| 387 | TRACE_JNI("getMinExclusiveFacet"); |
| 388 | TJNICache* J = getJ(env,obj); |
| 389 | return J->Facet(J->EM->FacetMinExclusive(getDataValueExpr(env,arg))); |
| 390 | } |
| 391 | |
| 392 | /* |
| 393 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 394 | * Method: getMaxExclusiveFacet |
| 395 | * Signature: (Luk/ac/manchester/cs/factplusplus/DataValuePointer;)Luk/ac/manchester/cs/factplusplus/DataTypeFacet; |
| 396 | */ |
| 397 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getMaxExclusiveFacet |
| 398 | (JNIEnv * env, jobject obj, jobject arg) |
| 399 | { |
| 400 | TRACE_JNI("getMaxExclusiveFacet"); |
| 401 | TJNICache* J = getJ(env,obj); |
| 402 | return J->Facet(J->EM->FacetMaxExclusive(getDataValueExpr(env,arg))); |
| 403 | } |
| 404 | |
| 405 | /* |
| 406 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 407 | * Method: getMinInclusiveFacet |
| 408 | * Signature: (Luk/ac/manchester/cs/factplusplus/DataValuePointer;)Luk/ac/manchester/cs/factplusplus/DataTypeFacet; |
| 409 | */ |
| 410 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getMinInclusiveFacet |
| 411 | (JNIEnv * env, jobject obj, jobject arg) |
| 412 | { |
| 413 | TRACE_JNI("getMinInclusiveFacet"); |
| 414 | TJNICache* J = getJ(env,obj); |
| 415 | return J->Facet(J->EM->FacetMinInclusive(getDataValueExpr(env,arg))); |
| 416 | } |
| 417 | |
| 418 | /* |
| 419 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 420 | * Method: getMaxInclusiveFacet |
| 421 | * Signature: (Luk/ac/manchester/cs/factplusplus/DataValuePointer;)Luk/ac/manchester/cs/factplusplus/DataTypeFacet; |
| 422 | */ |
| 423 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getMaxInclusiveFacet |
| 424 | (JNIEnv * env, jobject obj, jobject arg) |
| 425 | { |
| 426 | TRACE_JNI("getMaxInclusiveFacet"); |
| 427 | TJNICache* J = getJ(env,obj); |
| 428 | return J->Facet(J->EM->FacetMaxInclusive(getDataValueExpr(env,arg))); |
| 429 | } |
| 430 | |
| 431 | /* |
| 432 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 433 | * Method: getTotalDigitsFacet |
| 434 | * Signature: (Luk/ac/manchester/cs/factplusplus/DataValuePointer;)Luk/ac/manchester/cs/factplusplus/DataTypeFacet; |
| 435 | */ |
| 436 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getTotalDigitsFacet |
| 437 | (JNIEnv * env, jobject, jobject) |
| 438 | { |
| 439 | Throw ( env, "FaCT++ Kernel: unsupported facet 'getTotalDigitsFacet'" ); |
| 440 | return nullptr; |
| 441 | } |
| 442 | |
| 443 | /* |
| 444 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 445 | * Method: getFractionDigitsFacet |
| 446 | * Signature: (Luk/ac/manchester/cs/factplusplus/DataValuePointer;)Luk/ac/manchester/cs/factplusplus/DataTypeFacet; |
| 447 | */ |
| 448 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getFractionDigitsFacet |
| 449 | (JNIEnv * env, jobject obj ATTR_UNUSED, jobject) |
| 450 | { |
| 451 | TRACE_JNI("getFractionDigitsFacet"); |
| 452 | Throw ( env, "FaCT++ Kernel: unsupported facet 'getFractionDigitsFacet'" ); |
| 453 | return nullptr; |
| 454 | } |
| 455 | |
| 456 | /* |
| 457 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 458 | * Method: getDataNot |
| 459 | * Signature: (Luk/ac/manchester/cs/factplusplus/DataTypeExpressionPointer;)Luk/ac/manchester/cs/factplusplus/DataTypeExpressionPointer; |
| 460 | */ |
| 461 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getDataNot |
| 462 | (JNIEnv * env, jobject obj, jobject arg) |
| 463 | { |
| 464 | TRACE_JNI("getDataNot"); |
| 465 | TJNICache* J = getJ(env,obj); |
| 466 | return J->DataTypeExpression(J->EM->DataNot(getDataExpr(env,arg))); |
| 467 | } |
| 468 | |
| 469 | /* |
| 470 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 471 | * Method: getDataIntersectionOf |
| 472 | * Signature: ()Luk/ac/manchester/cs/factplusplus/DataTypeExpressionPointer; |
| 473 | */ |
| 474 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getDataIntersectionOf |
| 475 | (JNIEnv * env, jobject obj) |
| 476 | { |
| 477 | TRACE_JNI("getDataIntersectionOf"); |
| 478 | TJNICache* J = getJ(env,obj); |
| 479 | return J->DataTypeExpression(J->EM->DataAnd()); |
| 480 | } |
| 481 | |
| 482 | /* |
| 483 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 484 | * Method: getDataUnionOf |
| 485 | * Signature: ()Luk/ac/manchester/cs/factplusplus/DataTypeExpressionPointer; |
| 486 | */ |
| 487 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getDataUnionOf |
| 488 | (JNIEnv * env, jobject obj) |
| 489 | { |
| 490 | TRACE_JNI("getDataUnionOf"); |
| 491 | TJNICache* J = getJ(env,obj); |
| 492 | return J->DataTypeExpression(J->EM->DataOr()); |
| 493 | } |
| 494 | |
| 495 | /* |
| 496 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 497 | * Method: getDataValue |
| 498 | * Signature: (Ljava/lang/String;Luk/ac/manchester/cs/factplusplus/DataTypePointer;)Luk/ac/manchester/cs/factplusplus/DataValuePointer; |
| 499 | */ |
| 500 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getDataValue__Ljava_lang_String_2Luk_ac_manchester_cs_factplusplus_DataTypePointer_2 |
| 501 | (JNIEnv * env, jobject obj, jstring str, jobject type) |
| 502 | { |
| 503 | TRACE_JNI("getDataValue"); |
| 504 | TRACE_STR(env,str); |
| 505 | TJNICache* J = getJ(env,obj); |
| 506 | JString name(env,str); |
| 507 | jobject ret = nullptr; |
| 508 | try |
| 509 | { |
| 510 | ret = J->DataValue ( J->EM->DataValue ( name(), getDataTypeExpr(env,type) ) ); |
| 511 | } |
| 512 | catch (const EFPPCantRegName&) |
| 513 | { |
| 514 | Throw ( env, "FaCT++ Kernel: Can not register new data value" ); |
| 515 | } |
| 516 | return ret; |
| 517 | } |
| 518 | |
| 519 | /* |
| 520 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 521 | * Method: getConceptAnd |
| 522 | * Signature: ()Luk/ac/manchester/cs/factplusplus/ClassPointer; |
| 523 | */ |
| 524 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getConceptAnd |
| 525 | (JNIEnv * env, jobject obj) |
| 526 | { |
| 527 | TRACE_JNI("getConceptAnd"); |
| 528 | TJNICache* J = getJ(env,obj); |
| 529 | return J->Class(J->EM->And()); |
| 530 | } |
| 531 | |
| 532 | /* |
| 533 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 534 | * Method: getConceptOr |
| 535 | * Signature: ()Luk/ac/manchester/cs/factplusplus/ClassPointer; |
| 536 | */ |
| 537 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getConceptOr |
| 538 | (JNIEnv * env, jobject obj) |
| 539 | { |
| 540 | TRACE_JNI("getConceptOr"); |
| 541 | TJNICache* J = getJ(env,obj); |
| 542 | return J->Class(J->EM->Or()); |
| 543 | } |
| 544 | |
| 545 | /* |
| 546 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 547 | * Method: getConceptNot |
| 548 | * Signature: (Luk/ac/manchester/cs/factplusplus/ClassPointer;)Luk/ac/manchester/cs/factplusplus/ClassPointer; |
| 549 | */ |
| 550 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getConceptNot |
| 551 | (JNIEnv * env, jobject obj, jobject arg) |
| 552 | { |
| 553 | TRACE_JNI("getConceptNot"); |
| 554 | TJNICache* J = getJ(env,obj); |
| 555 | return J->Class(J->EM->Not(getConceptExpr(env,arg))); |
| 556 | } |
| 557 | |
| 558 | /* |
| 559 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 560 | * Method: getObjectSome |
| 561 | * Signature: (Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer;Luk/ac/manchester/cs/factplusplus/ClassPointer;)Luk/ac/manchester/cs/factplusplus/ClassPointer; |
| 562 | */ |
| 563 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getObjectSome |
| 564 | (JNIEnv * env, jobject obj, jobject arg1, jobject arg2) |
| 565 | { |
| 566 | TRACE_JNI("getObjectSome"); |
| 567 | TJNICache* J = getJ(env,obj); |
| 568 | return J->Class ( J->EM->Exists ( getORoleExpr(env,arg1), getConceptExpr(env,arg2) ) ); |
| 569 | } |
| 570 | |
| 571 | /* |
| 572 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 573 | * Method: getObjectAll |
| 574 | * Signature: (Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer;Luk/ac/manchester/cs/factplusplus/ClassPointer;)Luk/ac/manchester/cs/factplusplus/ClassPointer; |
| 575 | */ |
| 576 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getObjectAll |
| 577 | (JNIEnv * env, jobject obj, jobject arg1, jobject arg2) |
| 578 | { |
| 579 | TRACE_JNI("getObjectAll"); |
| 580 | TJNICache* J = getJ(env,obj); |
| 581 | return J->Class ( J->EM->Forall ( getORoleExpr(env,arg1), getConceptExpr(env,arg2) ) ); |
| 582 | } |
| 583 | |
| 584 | /* |
| 585 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 586 | * Method: getObjectValue |
| 587 | * Signature: (Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer;Luk/ac/manchester/cs/factplusplus/IndividualPointer;)Luk/ac/manchester/cs/factplusplus/ClassPointer; |
| 588 | */ |
| 589 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getObjectValue |
| 590 | (JNIEnv * env, jobject obj, jobject arg1, jobject arg2) |
| 591 | { |
| 592 | TRACE_JNI("getObjectValue"); |
| 593 | TJNICache* J = getJ(env,obj); |
| 594 | return J->Class ( J->EM->Value ( getORoleExpr(env,arg1), getIndividualExpr(env,arg2) ) ); |
| 595 | } |
| 596 | |
| 597 | /* |
| 598 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 599 | * Method: getDataSome |
| 600 | * Signature: (Luk/ac/manchester/cs/factplusplus/DataPropertyPointer;Luk/ac/manchester/cs/factplusplus/DataTypeExpressionPointer;)Luk/ac/manchester/cs/factplusplus/ClassPointer; |
| 601 | */ |
| 602 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getDataSome |
| 603 | (JNIEnv * env, jobject obj, jobject arg1, jobject arg2) |
| 604 | { |
| 605 | TRACE_JNI("getDataSome"); |
| 606 | TJNICache* J = getJ(env,obj); |
| 607 | return J->Class ( J->EM->Exists ( getDRoleExpr(env,arg1), getDataExpr(env,arg2) ) ); |
| 608 | } |
| 609 | |
| 610 | /* |
| 611 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 612 | * Method: getDataAll |
| 613 | * Signature: (Luk/ac/manchester/cs/factplusplus/DataPropertyPointer;Luk/ac/manchester/cs/factplusplus/DataTypeExpressionPointer;)Luk/ac/manchester/cs/factplusplus/ClassPointer; |
| 614 | */ |
| 615 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getDataAll |
| 616 | (JNIEnv * env, jobject obj, jobject arg1, jobject arg2) |
| 617 | { |
| 618 | TRACE_JNI("getDataAll"); |
| 619 | TJNICache* J = getJ(env,obj); |
| 620 | return J->Class ( J->EM->Forall ( getDRoleExpr(env,arg1), getDataExpr(env,arg2) ) ); |
| 621 | } |
| 622 | |
| 623 | /* |
| 624 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 625 | * Method: getDataValue |
| 626 | * Signature: (Luk/ac/manchester/cs/factplusplus/DataPropertyPointer;Luk/ac/manchester/cs/factplusplus/DataValuePointer;)Luk/ac/manchester/cs/factplusplus/ClassPointer; |
| 627 | */ |
| 628 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getDataValue__Luk_ac_manchester_cs_factplusplus_DataPropertyPointer_2Luk_ac_manchester_cs_factplusplus_DataValuePointer_2 |
| 629 | (JNIEnv * env, jobject obj, jobject arg1, jobject arg2) |
| 630 | { |
| 631 | TRACE_JNI("getDataValue"); |
| 632 | TJNICache* J = getJ(env,obj); |
| 633 | return J->Class ( J->EM->Value ( getDRoleExpr(env,arg1), getDataValueExpr(env,arg2) ) ); |
| 634 | } |
| 635 | |
| 636 | /* |
| 637 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 638 | * Method: getObjectAtLeast |
| 639 | * Signature: (ILuk/ac/manchester/cs/factplusplus/ObjectPropertyPointer;Luk/ac/manchester/cs/factplusplus/ClassPointer;)Luk/ac/manchester/cs/factplusplus/ClassPointer; |
| 640 | */ |
| 641 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getObjectAtLeast |
| 642 | (JNIEnv * env, jobject obj, jint n, jobject arg1, jobject arg2) |
| 643 | { |
| 644 | TRACE_JNI("getObjectAtLeast"); |
| 645 | TJNICache* J = getJ(env,obj); |
| 646 | return J->Class ( J->EM->MinCardinality ( (unsigned int)n, getORoleExpr(env,arg1), getConceptExpr(env,arg2) ) ); |
| 647 | } |
| 648 | |
| 649 | /* |
| 650 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 651 | * Method: getObjectExact |
| 652 | * Signature: (ILuk/ac/manchester/cs/factplusplus/ObjectPropertyPointer;Luk/ac/manchester/cs/factplusplus/ClassPointer;)Luk/ac/manchester/cs/factplusplus/ClassPointer; |
| 653 | */ |
| 654 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getObjectExact |
| 655 | (JNIEnv * env, jobject obj, jint n, jobject arg1, jobject arg2) |
| 656 | { |
| 657 | TRACE_JNI("getObjectExact"); |
| 658 | TJNICache* J = getJ(env,obj); |
| 659 | return J->Class ( J->EM->Cardinality ( (unsigned int)n, getORoleExpr(env,arg1), getConceptExpr(env,arg2) ) ); |
| 660 | } |
| 661 | |
| 662 | /* |
| 663 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 664 | * Method: getObjectAtMost |
| 665 | * Signature: (ILuk/ac/manchester/cs/factplusplus/ObjectPropertyPointer;Luk/ac/manchester/cs/factplusplus/ClassPointer;)Luk/ac/manchester/cs/factplusplus/ClassPointer; |
| 666 | */ |
| 667 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getObjectAtMost |
| 668 | (JNIEnv * env, jobject obj, jint n, jobject arg1, jobject arg2) |
| 669 | { |
| 670 | TRACE_JNI("getObjectAtMost"); |
| 671 | TJNICache* J = getJ(env,obj); |
| 672 | return J->Class ( J->EM->MaxCardinality ( (unsigned int)n, getORoleExpr(env,arg1), getConceptExpr(env,arg2) ) ); |
| 673 | } |
| 674 | |
| 675 | /* |
| 676 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 677 | * Method: getDataAtLeast |
| 678 | * Signature: (ILuk/ac/manchester/cs/factplusplus/DataPropertyPointer;Luk/ac/manchester/cs/factplusplus/DataTypePointer;)Luk/ac/manchester/cs/factplusplus/ClassPointer; |
| 679 | */ |
| 680 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getDataAtLeast |
| 681 | (JNIEnv * env, jobject obj, jint n, jobject arg1, jobject arg2) |
| 682 | { |
| 683 | TRACE_JNI("getDataAtLeast"); |
| 684 | TJNICache* J = getJ(env,obj); |
| 685 | return J->Class ( J->EM->MinCardinality ( (unsigned int)n, getDRoleExpr(env,arg1), getDataExpr(env,arg2) ) ); |
| 686 | } |
| 687 | |
| 688 | /* |
| 689 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 690 | * Method: getDataExact |
| 691 | * Signature: (ILuk/ac/manchester/cs/factplusplus/DataPropertyPointer;Luk/ac/manchester/cs/factplusplus/DataTypePointer;)Luk/ac/manchester/cs/factplusplus/ClassPointer; |
| 692 | */ |
| 693 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getDataExact |
| 694 | (JNIEnv * env, jobject obj, jint n, jobject arg1, jobject arg2) |
| 695 | { |
| 696 | TRACE_JNI("getDataExact"); |
| 697 | TJNICache* J = getJ(env,obj); |
| 698 | return J->Class ( J->EM->Cardinality ( (unsigned int)n, getDRoleExpr(env,arg1), getDataExpr(env,arg2) ) ); |
| 699 | } |
| 700 | |
| 701 | /* |
| 702 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 703 | * Method: getDataAtMost |
| 704 | * Signature: (ILuk/ac/manchester/cs/factplusplus/DataPropertyPointer;Luk/ac/manchester/cs/factplusplus/DataTypePointer;)Luk/ac/manchester/cs/factplusplus/ClassPointer; |
| 705 | */ |
| 706 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getDataAtMost |
| 707 | (JNIEnv * env, jobject obj, jint n, jobject arg1, jobject arg2) |
| 708 | { |
| 709 | TRACE_JNI("getDataAtMost"); |
| 710 | TJNICache* J = getJ(env,obj); |
| 711 | return J->Class ( J->EM->MaxCardinality ( (unsigned int)n, getDRoleExpr(env,arg1), getDataExpr(env,arg2) ) ); |
| 712 | } |
| 713 | |
| 714 | /* |
| 715 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 716 | * Method: getInverseProperty |
| 717 | * Signature: (Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer;)Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer; |
| 718 | */ |
| 719 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getInverseProperty |
| 720 | (JNIEnv * env, jobject obj, jobject arg) |
| 721 | { |
| 722 | TRACE_JNI("getInverseProperty"); |
| 723 | TJNICache* J = getJ(env,obj); |
| 724 | return J->ObjectProperty(J->EM->Inverse(getORoleExpr(env,arg))); |
| 725 | } |
| 726 | |
| 727 | /* |
| 728 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 729 | * Method: getPropertyComposition |
| 730 | * Signature: ()Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer; |
| 731 | */ |
| 732 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getPropertyComposition |
| 733 | (JNIEnv * env, jobject obj) |
| 734 | { |
| 735 | TRACE_JNI("getPropertyComposition"); |
| 736 | TJNICache* J = getJ(env,obj); |
| 737 | return J->ObjectComplex(J->EM->Compose()); |
| 738 | } |
| 739 | |
| 740 | /* |
| 741 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 742 | * Method: getDataPropertyKey |
| 743 | * Signature: ()Luk/ac/manchester/cs/factplusplus/DataPropertyPointer; |
| 744 | */ |
| 745 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getDataPropertyKey |
| 746 | (JNIEnv * env, jobject obj ATTR_UNUSED) |
| 747 | { |
| 748 | TRACE_JNI("getDataPropertyKey"); |
| 749 | Throw ( env, "FaCT++ Kernel: unsupported operation 'getDataPropertyKey'" ); |
| 750 | return nullptr; |
| 751 | } |
| 752 | |
| 753 | |
| 754 | /* |
| 755 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 756 | * Method: getObjectPropertyKey |
| 757 | * Signature: ()Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer; |
| 758 | */ |
| 759 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getObjectPropertyKey |
| 760 | (JNIEnv * env, jobject obj ATTR_UNUSED) |
| 761 | { |
| 762 | TRACE_JNI("getObjectPropertyKey"); |
| 763 | Throw ( env, "FaCT++ Kernel: unsupported operation 'getObjectPropertyKey'" ); |
| 764 | return nullptr; |
| 765 | } |
| 766 | |
| 767 | |
| 768 | /* |
| 769 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 770 | * Method: getOneOf |
| 771 | * Signature: ()Luk/ac/manchester/cs/factplusplus/ClassPointer; |
| 772 | */ |
| 773 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getOneOf |
| 774 | (JNIEnv * env, jobject obj) |
| 775 | { |
| 776 | TRACE_JNI("getOneOf"); |
| 777 | TJNICache* J = getJ(env,obj); |
| 778 | return J->Class(J->EM->OneOf()); |
| 779 | } |
| 780 | |
| 781 | /* |
| 782 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 783 | * Method: getSelf |
| 784 | * Signature: (Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer;)Luk/ac/manchester/cs/factplusplus/ClassPointer; |
| 785 | */ |
| 786 | JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getSelf |
| 787 | (JNIEnv * env, jobject obj, jobject arg) |
| 788 | { |
| 789 | TRACE_JNI("getSelf"); |
| 790 | TJNICache* J = getJ(env,obj); |
| 791 | return J->Class(J->EM->SelfReference(getORoleExpr(env,arg))); |
| 792 | } |
| 793 | |
| 794 | /* |
| 795 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 796 | * Method: initArgList |
| 797 | * Signature: ()V |
| 798 | */ |
| 799 | JNIEXPORT void JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_initArgList |
| 800 | (JNIEnv * env, jobject obj) |
| 801 | { |
| 802 | TRACE_JNI("initArgList"); |
| 803 | TJNICache* J = getJ(env,obj); |
| 804 | J->EM->newArgList(); |
| 805 | } |
| 806 | |
| 807 | /* |
| 808 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 809 | * Method: addArg |
| 810 | * Signature: (Luk/ac/manchester/cs/factplusplus/Pointer;)V |
| 811 | */ |
| 812 | JNIEXPORT void JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_addArg |
| 813 | (JNIEnv * env, jobject obj, jobject arg) |
| 814 | { |
| 815 | TRACE_JNI("addArg"); |
| 816 | TRACE_ARG(env,obj,arg); |
| 817 | TJNICache* J = getJ(env,obj); |
| 818 | J->EM->addArg(getExpr(env,arg)); |
| 819 | } |
| 820 | |
| 821 | /* |
| 822 | * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus |
| 823 | * Method: closeArgList |
| 824 | * Signature: ()V |
| 825 | */ |
| 826 | JNIEXPORT void JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_closeArgList |
| 827 | (JNIEnv *, jobject) |
| 828 | { |
| 829 | } |
| 830 | |
| 831 | #ifdef __cplusplus |
| 832 | } |
| 833 | #endif |