public interface FactorExtender
| Modifier and Type | Method and Description |
|---|---|
SortedSet<StringMatch> |
extendFactor(CharProvider chars,
boolean longest)
extends a given factor found in a character source to a pattern match in this character source (if such exists)
|
FactorExtender |
forFactor(String factor)
initializes this FactorExtender with the matched factor.
|
List<String> |
getBestFactors(int max)
computes the factors considered best for the given pattern and a given maximum length.
|
String |
getPattern() |
int |
getPatternLength() |
boolean |
hasFactor(String factor) |
String getPattern()
int getPatternLength()
List<String> getBestFactors(int max)
max - the maximum length that the result factors should comply toSortedSet<StringMatch> extendFactor(CharProvider chars, boolean longest)
chars - a CharProvider with position just behind the current factorlongest - true if this method should return the longest patterns including this factor, otherwise are returnedFactorExtender forFactor(String factor)
factor - the factor this matcher will be able to extendboolean hasFactor(String factor)
factor - the factor to compare to the patternCopyright © 2017. All rights reserved.