A
- attributepublic interface ThenMatcher<A> extends OrMatcher<A>
Modifier and Type | Method and Description |
---|---|
default ThenMatcher<A> |
regex(java.lang.String regex)
creates a matcher which succeeds the given matcher.
|
default ThenMatcher<A> |
regex(java.lang.String regex,
PatternAction<A> action)
creates a matcher which succeeds the given matcher
and execute the given action when matches.
|
default ThenMatcher<A> |
string(java.lang.String aString)
creates a matcher which matches the given string.
|
default ThenMatcher<A> |
string(java.lang.String aString,
PatternAction<A> action)
creates a matcher which matches the given string
and execute the given action when matches.
|
default ThenMatcher<A> |
then(PatternMatcher<A> matcher)
creates a matcher which succeeds the given matcher.
|
default ThenMatcher<A> |
then(PatternMatcher<A> matcher,
PatternAction<A> action)
creates a matcher which succeeds the given matcher
and execute the given action when matches.
|
default ThenMatcher<A> |
thenAtLeast(int count,
OperationMatcher<A> pattern)
repeats at least the given count.
This method is NOT backtracking. |
default ThenMatcher<A> |
thenAtLeast(int count,
OperationMatcher<A> pattern,
PatternAction<A> action)
repeats at least the given count.
This method is NOT backtracking. |
default ThenMatcher<A> |
thenAtMost(int count,
OperationMatcher<A> pattern)
repeats at most the given count.
This method is NOT backtracking. |
default ThenMatcher<A> |
thenAtMost(int count,
OperationMatcher<A> pattern,
PatternAction<A> action)
repeats at most the given count.
This method is NOT backtracking. |
default ThenMatcher<A> |
thenDelimit(OperationMatcher<A> pattern,
PatternMatcher<A> delimiter)
matches a string which is delimited by the given string.
This method is NOT backtracking. |
default ThenMatcher<A> |
thenDelimit(OperationMatcher<A> pattern,
PatternMatcher<A> delimiter,
PatternAction<A> action)
matches a string which is delimited by the given string.
This method is NOT backtracking. |
default ThenMatcher<A> |
thenMaybe(OperationMatcher<A> pattern)
matches zero or one of the this matcher.
This method is NOT backtracking. |
default ThenMatcher<A> |
thenMaybe(OperationMatcher<A> pattern,
PatternAction<A> action)
matches zero or one of the this matcher.
This method is NOT backtracking. |
default ThenMatcher<A> |
thenOneOrMore(OperationMatcher<A> pattern)
a shortcut of 'atLeast(1)'.
This method is NOT backtracking. |
default ThenMatcher<A> |
thenOneOrMore(OperationMatcher<A> pattern,
PatternAction<A> action)
a shortcut of 'atLeast(1, action)'.
This method is NOT backtracking. |
default ThenMatcher<A> |
thenTimes(int countmin,
int countmax,
OperationMatcher<A> pattern)
repeats to the given count.
This method is NOT backtracking. |
default ThenMatcher<A> |
thenTimes(int countmin,
int countmax,
OperationMatcher<A> pattern,
PatternAction<A> action)
repeats to the given count.
This method is NOT backtracking. |
default ThenMatcher<A> |
thenZeroOrMore(OperationMatcher<A> pattern)
a shortcut of 'atLeast(0)'.
This method is NOT backtracking. |
default ThenMatcher<A> |
thenZeroOrMore(OperationMatcher<A> pattern,
PatternAction<A> action)
a shortcut of 'atLeast(0, action)'.
This method is NOT backtracking. |
atLeast, atLeast, atMost, atMost, cond, delimit, delimit, end, maybe, maybe, oneOrMore, oneOrMore, skipSpace, times, times, zeroOrMore, zeroOrMore
match, match, parse, parsePart, parsePart, parsePartGlobal, parsePartGlobal, parsePartGlobalList, parsePartGlobalList
default ThenMatcher<A> then(PatternMatcher<A> matcher, PatternAction<A> action)
matcher
- a successor matcheraction
- an actiondefault ThenMatcher<A> then(PatternMatcher<A> matcher)
matcher
- a successor matcherdefault ThenMatcher<A> string(java.lang.String aString, PatternAction<A> action)
aString
- a successor stringaction
- an actiondefault ThenMatcher<A> string(java.lang.String aString)
aString
- a successor stringdefault ThenMatcher<A> regex(java.lang.String regex, PatternAction<A> action)
regex
- a successor regexaction
- an actiondefault ThenMatcher<A> regex(java.lang.String regex)
regex
- a successor regexdefault ThenMatcher<A> thenTimes(int countmin, int countmax, OperationMatcher<A> pattern, PatternAction<A> action)
countmin
- minimum of repetitioncountmax
- maximum of repetitionpattern
- a matcheraction
- an action to be invokeddefault ThenMatcher<A> thenTimes(int countmin, int countmax, OperationMatcher<A> pattern)
countmin
- minimum of repetitioncountmax
- maximum of repetitionpattern
- a matcherdefault ThenMatcher<A> thenAtLeast(int count, OperationMatcher<A> pattern, PatternAction<A> action)
count
- minimum of repetitionpattern
- a matcheraction
- an action to be invokeddefault ThenMatcher<A> thenAtLeast(int count, OperationMatcher<A> pattern)
count
- minimum of repetitionpattern
- a matcherdefault ThenMatcher<A> thenAtMost(int count, OperationMatcher<A> pattern, PatternAction<A> action)
count
- maximum of repetitionpattern
- a matcheraction
- an action to be invokeddefault ThenMatcher<A> thenAtMost(int count, OperationMatcher<A> pattern)
count
- maximum of repetitionpattern
- a matcherdefault ThenMatcher<A> thenMaybe(OperationMatcher<A> pattern, PatternAction<A> action)
pattern
- a matcheraction
- an action to be invokeddefault ThenMatcher<A> thenMaybe(OperationMatcher<A> pattern)
pattern
- a matcherdefault ThenMatcher<A> thenZeroOrMore(OperationMatcher<A> pattern, PatternAction<A> action)
pattern
- a matcheraction
- an action to be invokeddefault ThenMatcher<A> thenZeroOrMore(OperationMatcher<A> pattern)
pattern
- a matcherdefault ThenMatcher<A> thenOneOrMore(OperationMatcher<A> pattern, PatternAction<A> action)
pattern
- a matcheraction
- an action to be invokeddefault ThenMatcher<A> thenOneOrMore(OperationMatcher<A> pattern)
pattern
- a matcherdefault ThenMatcher<A> thenDelimit(OperationMatcher<A> pattern, PatternMatcher<A> delimiter, PatternAction<A> action)
pattern
- a matcherdelimiter
- a string of delimiteraction
- an action to be invokeddefault ThenMatcher<A> thenDelimit(OperationMatcher<A> pattern, PatternMatcher<A> delimiter)
pattern
- a matcherdelimiter
- a string of delimiter