Package | Description |
---|---|
com.nobigsoftware.dfalex |
Modifier and Type | Class and Description |
---|---|
class |
CharRange
A CharRange is a
Pattern that matches a single character from some set or
range of characters. |
class |
Pattern
A Pattern represents a set of strings.
|
Modifier and Type | Method and Description |
---|---|
Matchable |
Matchable.getReversed()
Get the reverse of this pattern
|
Matchable |
Pattern.getReversed() |
Matchable |
CharRange.getReversed() |
Modifier and Type | Method and Description |
---|---|
SearchAndReplaceBuilder |
SearchAndReplaceBuilder.addIgnorePattern(Matchable pat)
Add a pattern to ignore
|
void |
DfaBuilder.addPattern(Matchable pat,
MATCHRESULT accept) |
SearchAndReplaceBuilder |
SearchAndReplaceBuilder.addReplacement(Matchable pat,
StringReplacement replacement)
Add a dynamic search + replacement.
|
SearchAndReplaceBuilder |
SearchAndReplaceBuilder.addStringReplacement(Matchable pat,
java.lang.CharSequence replacement)
Add a search + string replacement.
|
static Pattern |
Pattern.anyOf(Matchable... patterns)
Create a pattern that matches any of the given patterns
|
static Pattern |
Pattern.match(Matchable tomatch)
|
static Pattern |
Pattern.maybe(Matchable pat)
Create a pattern that matches a given pattern or the empty string
|
static Pattern |
Pattern.maybeRepeat(Matchable pat)
Create a pattern that matches zero or more occurrences of a given pattern
|
static Pattern |
Pattern.repeat(Matchable pat)
Create a pattern that matches one or more occurrences of a given pattern
|
Pattern |
Pattern.then(Matchable tocat)
Create a pattern that matches strings from this pattern, followed by strings from the given pattern
|
Pattern |
Pattern.thenMaybe(Matchable pat)
Create a pattern that matches strings from this pattern, maybe followed by a
match of the given pattern
|
Pattern |
Pattern.thenMaybeRepeat(Matchable pat)
Create a pattern that matches strings from this pattern, followed by zero
or more occurrences of a given pattern
|
Pattern |
Pattern.thenRepeat(Matchable pat)
Create a pattern that matches strings from this pattern, followed by one
or more occurrences of a given pattern
|
Modifier and Type | Method and Description |
---|---|
static Pattern |
Pattern.anyOf(java.util.Collection<? extends Matchable> patterns)
Create a pattern that matches any of the given patterns
|