edu.stanford.nlp.trees
Class TreeFilters.HasMatchingChild

java.lang.Object
  extended by edu.stanford.nlp.trees.TreeFilters.HasMatchingChild
All Implemented Interfaces:
Filter<Tree>, java.io.Serializable
Enclosing class:
TreeFilters

public static class TreeFilters.HasMatchingChild
extends java.lang.Object
implements Filter<Tree>

See Also:
Serialized Form

Constructor Summary
TreeFilters.HasMatchingChild(TreebankLanguagePack tlp, java.lang.String regex)
           
 
Method Summary
 boolean accept(Tree tree)
          Checks if the given object passes the filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeFilters.HasMatchingChild

public TreeFilters.HasMatchingChild(TreebankLanguagePack tlp,
                                    java.lang.String regex)
Method Detail

accept

public boolean accept(Tree tree)
Description copied from interface: Filter
Checks if the given object passes the filter.

Specified by:
accept in interface Filter<Tree>
Parameters:
tree - an object to test
Returns:
Whether the object should be accepted (for some processing)


Stanford NLP Group