|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.ling.tokensregex.BasicSequenceMatchResult<T>
public class BasicSequenceMatchResult<T>
Basic results for a Sequence Match
| Nested Class Summary | |
|---|---|
protected static class |
BasicSequenceMatchResult.MatchedGroup
|
| Nested classes/interfaces inherited from interface edu.stanford.nlp.ling.tokensregex.SequenceMatchResult |
|---|
SequenceMatchResult.GroupToIntervalFunc<MR extends java.util.regex.MatchResult>, SequenceMatchResult.MatchedGroupInfo<T> |
| Field Summary |
|---|
| Fields inherited from interface edu.stanford.nlp.ling.tokensregex.SequenceMatchResult |
|---|
DEFAULT_COMPARATOR, GROUP_AFTER_MATCH, GROUP_BEFORE_MATCH, LENGTH_COMPARATOR, OFFSET_COMPARATOR, ORDER_COMPARATOR, SCORE_COMPARATOR, SCORE_LENGTH_ORDER_OFFSET_COMPARATOR, TO_INTERVAL |
| Fields inherited from interface edu.stanford.nlp.util.HasInterval |
|---|
CONTAINS_FIRST_ENDPOINTS_COMPARATOR, ENDPOINTS_COMPARATOR, NESTED_FIRST_ENDPOINTS_COMPARATOR |
| Constructor Summary | |
|---|---|
BasicSequenceMatchResult()
|
|
| Method Summary | |
|---|---|
BasicSequenceMatchResult<T> |
copy()
|
java.util.List<? extends T> |
elements()
Returns the original sequence the match was performed on. |
int |
end()
|
int |
end(int group)
|
int |
end(java.lang.String var)
Returns the index of the next element after the subsequence captured by the given group during this match. |
Interval<java.lang.Integer> |
getInterval()
Returns the interval |
int |
getOrder()
|
java.lang.String |
group()
|
java.lang.String |
group(int group)
|
java.lang.String |
group(java.lang.String var)
Returns the String representing the matched group. |
int |
groupCount()
|
SequenceMatchResult.MatchedGroupInfo<T> |
groupInfo()
|
SequenceMatchResult.MatchedGroupInfo<T> |
groupInfo(int group)
|
SequenceMatchResult.MatchedGroupInfo<T> |
groupInfo(java.lang.String var)
|
java.lang.Object |
groupMatchResult(int group,
int index)
Returns an Object representing the result for the match for a particular node in a group. |
java.lang.Object |
groupMatchResult(java.lang.String var,
int index)
Returns an Object representing the result for the match for a particular node in a group. |
java.util.List<java.lang.Object> |
groupMatchResults()
Returns a list of Objects representing the match results for the entire sequence. |
java.util.List<java.lang.Object> |
groupMatchResults(int group)
Returns a list of Objects representing the match results for the nodes in the group. |
java.util.List<java.lang.Object> |
groupMatchResults(java.lang.String var)
Returns a list of Objects representing the match results for the nodes in the group. |
java.util.List<? extends T> |
groupNodes()
Returns the entire matched subsequence as a list. |
java.util.List<? extends T> |
groupNodes(int group)
Returns the matched group as a list. |
java.util.List<? extends T> |
groupNodes(java.lang.String var)
Returns the matched group as a list. |
java.lang.Object |
groupValue()
|
java.lang.Object |
groupValue(int group)
|
java.lang.Object |
groupValue(java.lang.String var)
|
java.lang.Object |
nodeMatchResult(int index)
Returns an Object representing the result for the match for a particular node. |
SequencePattern<T> |
pattern()
Returns pattern used to create this sequence match result |
double |
score()
|
void |
setOrder(int order)
|
int |
start()
|
int |
start(int group)
|
int |
start(java.lang.String var)
Returns the start index of the subsequence captured by the given group during this match. |
BasicSequenceMatchResult<T> |
toBasicSequenceMatchResult()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicSequenceMatchResult()
| Method Detail |
|---|
public java.util.List<? extends T> elements()
SequenceMatchResult
elements in interface SequenceMatchResult<T>public SequencePattern<T> pattern()
SequenceMatchResult
pattern in interface SequenceMatchResult<T>public BasicSequenceMatchResult<T> toBasicSequenceMatchResult()
toBasicSequenceMatchResult in interface SequenceMatchResult<T>public BasicSequenceMatchResult<T> copy()
public Interval<java.lang.Integer> getInterval()
HasInterval
getInterval in interface HasInterval<java.lang.Integer>public int getOrder()
getOrder in interface SequenceMatchResult<T>public void setOrder(int order)
public double score()
score in interface SequenceMatchResult<T>public int start()
start in interface java.util.regex.MatchResultpublic int start(int group)
start in interface java.util.regex.MatchResultpublic int start(java.lang.String var)
SequenceMatchResult
start in interface SequenceMatchResult<T>var - The name of the capturing group in this matcher's pattern
public int end()
end in interface java.util.regex.MatchResultpublic int end(int group)
end in interface java.util.regex.MatchResultpublic int end(java.lang.String var)
SequenceMatchResult
end in interface SequenceMatchResult<T>var - The name of the capturing group in this matcher's pattern
public java.lang.String group()
group in interface java.util.regex.MatchResultpublic java.lang.String group(int group)
group in interface java.util.regex.MatchResultpublic java.lang.String group(java.lang.String var)
SequenceMatchResultString representing the matched group.
group in interface SequenceMatchResult<T>var - The name of the capturing group in this matcher's pattern
String
or null if there is no capturing group in the pattern
with the given namepublic java.util.List<? extends T> groupNodes()
SequenceMatchResult
groupNodes in interface SequenceMatchResult<T>public java.util.List<? extends T> groupNodes(int group)
SequenceMatchResult
groupNodes in interface SequenceMatchResult<T>group - The index of a capturing group in this matcher's pattern
public java.util.List<? extends T> groupNodes(java.lang.String var)
SequenceMatchResult
groupNodes in interface SequenceMatchResult<T>var - The name of the capturing group in this matcher's pattern
public java.lang.Object groupValue()
groupValue in interface SequenceMatchResult<T>public java.lang.Object groupValue(int group)
groupValue in interface SequenceMatchResult<T>public java.lang.Object groupValue(java.lang.String var)
groupValue in interface SequenceMatchResult<T>public SequenceMatchResult.MatchedGroupInfo<T> groupInfo()
groupInfo in interface SequenceMatchResult<T>public SequenceMatchResult.MatchedGroupInfo<T> groupInfo(int group)
groupInfo in interface SequenceMatchResult<T>public SequenceMatchResult.MatchedGroupInfo<T> groupInfo(java.lang.String var)
groupInfo in interface SequenceMatchResult<T>public int groupCount()
groupCount in interface java.util.regex.MatchResultpublic java.util.List<java.lang.Object> groupMatchResults()
SequenceMatchResult
groupMatchResults in interface SequenceMatchResult<T>public java.util.List<java.lang.Object> groupMatchResults(int group)
SequenceMatchResult
groupMatchResults in interface SequenceMatchResult<T>group - The index of a capturing group in this matcher's pattern
public java.util.List<java.lang.Object> groupMatchResults(java.lang.String var)
SequenceMatchResult
groupMatchResults in interface SequenceMatchResult<T>var - The name of the capturing group in this matcher's pattern
public java.lang.Object nodeMatchResult(int index)
SequenceMatchResult
nodeMatchResult in interface SequenceMatchResult<T>index - The index of the element in the original sequence.
public java.lang.Object groupMatchResult(int group,
int index)
SequenceMatchResult
groupMatchResult in interface SequenceMatchResult<T>group - The index of a capturing group in this matcher's patternindex - The index of the element in the captured subsequence.
public java.lang.Object groupMatchResult(java.lang.String var,
int index)
SequenceMatchResult
groupMatchResult in interface SequenceMatchResult<T>var - The name of the capturing group in this matcher's patternindex - The index of the element in the captured subsequence.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||