1 /* ---------------------------------------------------------------------------- 2 * This file was automatically generated by SWIG (http://www.swig.org). 3 * Version 3.0.13 4 * 5 * Do not make changes to this file unless you know what you are doing--modify 6 * the SWIG interface file instead. 7 * ----------------------------------------------------------------------------- */ 8 9 package org.xapian; 10 11 public class RangeProcessor { 12 private transient long swigCPtr; 13 protected transient boolean swigCMemOwn; 14 RangeProcessor(long cPtr, boolean cMemoryOwn)15 protected RangeProcessor(long cPtr, boolean cMemoryOwn) { 16 swigCMemOwn = cMemoryOwn; 17 swigCPtr = cPtr; 18 } 19 getCPtr(RangeProcessor obj)20 protected static long getCPtr(RangeProcessor obj) { 21 return (obj == null) ? 0 : obj.swigCPtr; 22 } 23 finalize()24 protected void finalize() { 25 delete(); 26 } 27 delete()28 public synchronized void delete() { 29 if (swigCPtr != 0) { 30 if (swigCMemOwn) { 31 swigCMemOwn = false; 32 XapianJNI.delete_RangeProcessor(swigCPtr); 33 } 34 swigCPtr = 0; 35 } 36 } 37 swigDirectorDisconnect()38 protected void swigDirectorDisconnect() { 39 swigCMemOwn = false; 40 delete(); 41 } 42 swigReleaseOwnership()43 public void swigReleaseOwnership() { 44 swigCMemOwn = false; 45 XapianJNI.RangeProcessor_change_ownership(this, swigCPtr, false); 46 } 47 swigTakeOwnership()48 public void swigTakeOwnership() { 49 swigCMemOwn = true; 50 XapianJNI.RangeProcessor_change_ownership(this, swigCPtr, true); 51 } 52 RangeProcessor()53 public RangeProcessor() { 54 this(XapianJNI.new_RangeProcessor__SWIG_0(), true); 55 XapianJNI.RangeProcessor_director_connect(this, swigCPtr, swigCMemOwn, true); 56 } 57 RangeProcessor(int slot_, String str_, long flags_)58 public RangeProcessor(int slot_, String str_, long flags_) { 59 this(XapianJNI.new_RangeProcessor__SWIG_1(slot_, str_, flags_), true); 60 XapianJNI.RangeProcessor_director_connect(this, swigCPtr, swigCMemOwn, true); 61 } 62 RangeProcessor(int slot_, String str_)63 public RangeProcessor(int slot_, String str_) { 64 this(XapianJNI.new_RangeProcessor__SWIG_2(slot_, str_), true); 65 XapianJNI.RangeProcessor_director_connect(this, swigCPtr, swigCMemOwn, true); 66 } 67 RangeProcessor(int slot_)68 public RangeProcessor(int slot_) { 69 this(XapianJNI.new_RangeProcessor__SWIG_3(slot_), true); 70 XapianJNI.RangeProcessor_director_connect(this, swigCPtr, swigCMemOwn, true); 71 } 72 checkRange(String b, String e)73 public Query checkRange(String b, String e) { 74 return new Query(XapianJNI.RangeProcessor_checkRange(swigCPtr, this, b, e), true); 75 } 76 apply(String begin, String end)77 public Query apply(String begin, String end) { 78 return new Query((getClass() == RangeProcessor.class) ? XapianJNI.RangeProcessor_apply(swigCPtr, this, begin, end) : XapianJNI.RangeProcessor_applySwigExplicitRangeProcessor(swigCPtr, this, begin, end), true); 79 } 80 release()81 public RangeProcessor release() { 82 long cPtr = XapianJNI.RangeProcessor_release(swigCPtr, this); 83 return (cPtr == 0) ? null : new RangeProcessor(cPtr, false); 84 } 85 86 } 87