edu.stanford.nlp.ling.tokensregex
Class PhraseTable.PhraseMatch

java.lang.Object
  extended by edu.stanford.nlp.ling.tokensregex.PhraseTable.PhraseMatch
All Implemented Interfaces:
HasInterval<java.lang.Integer>
Enclosing class:
PhraseTable

public static class PhraseTable.PhraseMatch
extends java.lang.Object
implements HasInterval<java.lang.Integer>

Represents a matched phrase


Field Summary
 
Fields inherited from interface edu.stanford.nlp.util.HasInterval
CONTAINS_FIRST_ENDPOINTS_COMPARATOR, ENDPOINTS_COMPARATOR, LENGTH_COMPARATOR, NESTED_FIRST_ENDPOINTS_COMPARATOR
 
Constructor Summary
PhraseTable.PhraseMatch(PhraseTable.Phrase phrase, int tokenBegin, int tokenEnd)
           
 
Method Summary
 Interval<java.lang.Integer> getInterval()
          Returns the interval
 PhraseTable.Phrase getPhrase()
           
 int getTokenBegin()
           
 int getTokenEnd()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PhraseTable.PhraseMatch

public PhraseTable.PhraseMatch(PhraseTable.Phrase phrase,
                               int tokenBegin,
                               int tokenEnd)
Method Detail

getPhrase

public PhraseTable.Phrase getPhrase()

getTokenBegin

public int getTokenBegin()

getTokenEnd

public int getTokenEnd()

toString

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

getInterval

public Interval<java.lang.Integer> getInterval()
Description copied from interface: HasInterval
Returns the interval

Specified by:
getInterval in interface HasInterval<java.lang.Integer>
Returns:
interval


Stanford NLP Group