public static class PhraseMatcher.Phrase extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PhraseMatcher.Phrase.MatchIterator |
Constructor and Description |
---|
Phrase(TermItem item,
String replace,
String data) |
Modifier and Type | Method and Description |
---|---|
int |
getBackedLength()
Returns the length of the underlying phrase
|
String |
getData()
Returns the data stored by the automaton for this phrase at this position, or null if none
|
TermItem |
getItem(int index)
Returns the n'th item in this, throws if index out of bounds
|
int |
getLength() |
CompositeItem |
getOwner()
Returns the owner, or null if this is a single item phrase with no owner
|
int |
getStartIndex() |
boolean |
isComplete()
Returns true if this phrase contains all the words of the owner, or if there is no owner
|
PhraseMatcher.Phrase.MatchIterator |
itemIterator()
Returns the items of this phrase as a read-only iterator
|
void |
remove()
Removes the word items of this phrase.
|
void |
replace()
Replaces the words items of this phrase with a phrase item.
|
String |
toString() |
public CompositeItem getOwner()
public int getStartIndex()
public int getLength()
public String getData()
public TermItem getItem(int index)
public boolean isComplete()
public void replace()
public void remove()
public int getBackedLength()
public PhraseMatcher.Phrase.MatchIterator itemIterator()
Copyright © 2018. All rights reserved.