edu.stanford.nlp.ling.tokensregex
Class SequenceMatcher.GroupMatchReplacement<T>

java.lang.Object
  extended by edu.stanford.nlp.ling.tokensregex.SequenceMatcher.GroupMatchReplacement<T>
Type Parameters:
T -
All Implemented Interfaces:
SequenceMatcher.MatchReplacement<T>
Enclosing class:
SequenceMatcher<T>

public static class SequenceMatcher.GroupMatchReplacement<T>
extends java.lang.Object
implements SequenceMatcher.MatchReplacement<T>

Replacement item is a matched group specified with a group id


Constructor Summary
SequenceMatcher.GroupMatchReplacement(int group)
           
 
Method Summary
 void append(SequenceMatchResult<T> match, java.util.List list)
          Append to replacement list the matched group with the specified group id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceMatcher.GroupMatchReplacement

public SequenceMatcher.GroupMatchReplacement(int group)
Method Detail

append

public void append(SequenceMatchResult<T> match,
                   java.util.List list)
Append to replacement list the matched group with the specified group id

Specified by:
append in interface SequenceMatcher.MatchReplacement<T>
Parameters:
match - Current matched sequence
list - replacement list


Stanford NLP Group