public static class SequenceMatchRules.StringPatternExtractRule<O> extends Object implements SequenceMatchRules.ExtractRule<String,O>, java.util.function.Function<String,O>
Constructor and Description |
---|
StringPatternExtractRule(Env env,
String regex,
java.util.function.Function<MatchResult,O> extractor) |
StringPatternExtractRule(Env env,
String regex,
java.util.function.Function<MatchResult,O> extractor,
boolean addWordBoundaries) |
StringPatternExtractRule(Pattern pattern,
java.util.function.Function<MatchResult,O> extractor) |
StringPatternExtractRule(String regex,
java.util.function.Function<MatchResult,O> extractor) |
Modifier and Type | Method and Description |
---|---|
O |
apply(String str) |
boolean |
extract(String str,
List<O> out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen, compose, identity
public StringPatternExtractRule(Pattern pattern, java.util.function.Function<MatchResult,O> extractor)
public StringPatternExtractRule(Env env, String regex, java.util.function.Function<MatchResult,O> extractor)
public StringPatternExtractRule(String regex, java.util.function.Function<MatchResult,O> extractor)
public StringPatternExtractRule(Env env, String regex, java.util.function.Function<MatchResult,O> extractor, boolean addWordBoundaries)