Beispiel #1
0
 public void addEntryPattern(String pattern) {
   setAcceptEntry(
       Predicates2.<Weighted<Token>>and(
           getAcceptEntry(),
           Predicates2.compose(Predicates2.containsPattern(pattern), entryString())));
 }
Beispiel #2
0
 public void addFeaturesPattern(String pattern) {
   setAcceptFeatures(
       Predicates2.<Weighted<Token>>and(
           getAcceptFeatures(),
           Predicates2.compose(Predicates2.containsPattern(pattern), featureString())));
 }