Class Match
java.lang.Object
com.yahoo.prelude.semantics.engine.Match
A match
- Author:
- bratseth
-
Constructor Details
-
Match
Creates a match- Parameters:
item
- the match to addreplaceValue
- the string to replace this match by, usually the item.getIndexedString() which is what the replace value will be if it is passed as null here
-
-
Method Details
-
getPosition
public int getPosition() -
getItem
-
getReplaceValue
-
getParent
Returns the parent in which the item was matched, or null if the item was root. Note that the item may subsequently have been removed, so it does not necessarily have this parent -
toItem
Returns a new item representing this match -
toItem
Returns a new item representing this match -
hashCode
public int hashCode() -
equals
-
toString
-