/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 1.3.32 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ public class Query { private long swigCPtr; protected boolean swigCMemOwn; protected Query(long cPtr, boolean cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = cPtr; } protected static long getCPtr(Query obj) { return (obj == null) ? 0 : obj.swigCPtr; } protected void finalize() { delete(); } public synchronized void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; XapianJNI.delete_Query(swigCPtr); } swigCPtr = 0; } // For compatibility with the original JNI wrappers. public final static op OP_AND = new op("OP_AND"); public final static op OP_OR = new op("OP_OR"); public final static op OP_AND_NOT = new op("OP_AND_NOT"); public final static op OP_XOR = new op("OP_XOR"); public final static op OP_AND_MAYBE = new op("OP_AND_MAYBE"); public final static op OP_FILTER = new op("OP_FILTER"); public final static op OP_NEAR = new op("OP_NEAR"); public final static op OP_PHRASE = new op("OP_PHRASE"); public final static op OP_ELITE_SET = new op("OP_ELITE_SET"); public final static op OP_VALUE_RANGE = new op("OP_VALUE_RANGE"); protected static long[] cArrayUnwrap(Query[] arrayWrapper) { long[] cArray = new long[arrayWrapper.length]; for (int i=0; i= 0 && swigValues[swigValue].swigValue == swigValue) return swigValues[swigValue]; for (int i = 0; i < swigValues.length; i++) if (swigValues[i].swigValue == swigValue) return swigValues[i]; throw new IllegalArgumentException("No enum " + op.class + " with value " + swigValue); } private op(String swigName) { this.swigName = swigName; this.swigValue = swigNext++; } private op(String swigName, int swigValue) { this.swigName = swigName; this.swigValue = swigValue; swigNext = swigValue+1; } private op(String swigName, op swigEnum) { this.swigName = swigName; this.swigValue = swigEnum.swigValue; swigNext = this.swigValue+1; } private static op[] swigValues = { OP_AND, OP_OR, OP_AND_NOT, OP_XOR, OP_AND_MAYBE, OP_FILTER, OP_NEAR, OP_PHRASE, OP_VALUE_RANGE, OP_ELITE_SET }; private static int swigNext = 0; private final int swigValue; private final String swigName; } }