org.basex.data
Class FTStringMatch

java.lang.Object
  extended by org.basex.data.FTStringMatch
All Implemented Interfaces:
java.lang.Comparable<FTStringMatch>

public final class FTStringMatch
extends java.lang.Object
implements java.lang.Comparable<FTStringMatch>

Single full-text string match.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Field Summary
 int e
          End position.
 boolean ex
          Exclude flag.
 boolean g
          Gaps (non-contiguous) flag.
 int q
          Query position.
 int s
          Start position.
 
Method Summary
 int compareTo(FTStringMatch sm)
           
protected  FTStringMatch copy()
          Creates a copy of this string match.
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

q

public final int q
Query position.


s

public final int s
Start position.


e

public int e
End position.


ex

public boolean ex
Exclude flag.


g

public boolean g
Gaps (non-contiguous) flag.

Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(FTStringMatch sm)
Specified by:
compareTo in interface java.lang.Comparable<FTStringMatch>

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

copy

protected FTStringMatch copy()
Creates a copy of this string match.

Returns:
copy