public class RegExpItem extends TermItem
Item.ItemCreator, Item.ItemType
Modifier and Type | Field and Description |
---|---|
private String |
expression |
private Pattern |
regexp |
connectedBacklink, connectedItem, connectivity, DEFAULT_WEIGHT, explicitSignificance, significance, uniqueID
Constructor and Description |
---|
RegExpItem(String indexName,
boolean isFromQuery,
String expression) |
Modifier and Type | Method and Description |
---|---|
protected void |
encodeThis(ByteBuffer buffer) |
boolean |
equals(Object obj)
Returns whether this item is of the same class and
contains the same state as the given item
|
String |
getIndexedString()
Return the searchable term contents of this item.
|
Item.ItemType |
getItemType()
Return the enumerated type of this item.
|
String |
getName()
Returns the name of this item
|
int |
getNumWords() |
String |
getRawWord()
Returns the raw form of the text leading to this term, exactly as received, including original casing
|
Pattern |
getRegexp() |
int |
hashCode() |
boolean |
isStemmed() |
boolean |
isWords()
Does this item represent "usual words"?
|
void |
setValue(String expression)
Sets the value of this item from a string.
|
String |
stringValue()
Returns the value of this term as a string
|
String |
toString()
Returns the canonical query language string of this item.
|
appendBodyString, disclose, encode, getOrigin, getSegmentingRule, getTermCount, isFromQuery, isNormalizable, setNormalizable, setOrigin, setSegmentingRule
appendIndexString, getIndexName, setIndexName
getConnectedItem, getConnectivity, getSignificance, getUniqueID, hasExplicitSignificance, hasUniqueID, setConnectivity, setExplicitSignificance, setSignificance, setUniqueID
addAnnotation, appendHeadingString, clone, getAnnotation, getBytes, getCode, getCreator, getLabel, getLanguage, getParent, getWeight, hasAnnotation, hasConnectivityBackLink, isFilter, isFromSpecialToken, isProtected, isRanked, isRoot, putBytes, putString, setCreator, setFilter, setFromSpecialToken, setHasUniqueID, setLabel, setLanguage, setParent, setPositionData, setProtected, setRanked, setWeight, shouldParenthize, usePositionData
finalize, getClass, notify, notifyAll, wait, wait, wait
getIndexName
public String stringValue()
BlockItem
public boolean isStemmed()
public int getNumWords()
public void setValue(String expression)
TermItem
public String getRawWord()
TermItem
getRawWord
in interface BlockItem
getRawWord
in class TermItem
public boolean isWords()
BlockItem
public String getIndexedString()
IndexedItem
getIndexedString
in interface IndexedItem
getIndexedString
in class SimpleIndexedItem
public Item.ItemType getItemType()
Item
getItemType
in class Item
protected void encodeThis(ByteBuffer buffer)
encodeThis
in class SimpleIndexedItem
public String toString()
Item
Returns the canonical query language string of this item.
The canonical language represent an item by the string
([itemName] [body])where the body may recursively be other items.
TODO: Change the output query language into a canonical form of the input query language
public int hashCode()
hashCode
in class SimpleIndexedItem
public boolean equals(Object obj)
Item
equals
in class SimpleIndexedItem
public Pattern getRegexp()
Copyright © 2018. All rights reserved.