A
- attributepublic interface OperationMatcher<A> extends PatternMatcher<A>
Modifier and Type | Method and Description |
---|---|
default OperationMatcher<A> |
atLeast(int count)
repeats at least the given count.
This method is NOT backtracking. |
default OperationMatcher<A> |
atLeast(int count,
PatternAction<A> action)
repeats at least the given count.
This method is NOT backtracking. |
default OperationMatcher<A> |
atMost(int count)
repeats at most the given count.
This method is NOT backtracking. |
default OperationMatcher<A> |
atMost(int count,
PatternAction<A> action)
repeats at most the given count.
This method is NOT backtracking. |
default OperationMatcher<A> |
cond(java.util.function.Predicate<A> cond)
matches the pattern if the given condition is true.
|
default OperationMatcher<A> |
delimit(PatternMatcher<A> delimiter)
matches a string which is delimited by the given string.
This method is NOT backtracking. |
default OperationMatcher<A> |
delimit(PatternMatcher<A> delimiter,
PatternAction<A> action)
matches a string which is delimited by the given string.
This method is NOT backtracking. |
default OperationMatcher<A> |
end()
matches end of string.
|
default OperationMatcher<A> |
maybe()
matches zero or one of the this matcher.
This method is NOT backtracking. |
default OperationMatcher<A> |
maybe(PatternAction<A> action)
matches zero or one of the this matcher.
This method is NOT backtracking. |
default OperationMatcher<A> |
oneOrMore()
a shortcut of 'atLeast(1)'.
This method is NOT backtracking. |
default OperationMatcher<A> |
oneOrMore(PatternAction<A> action)
a shortcut of 'atLeast(1, action)'.
This method is NOT backtracking. |
int |
skipSpace(java.lang.String match,
int index)
skips a space of the given string.
|
default OperationMatcher<A> |
times(int countmin,
int countmax)
repeats to the given count.
This method is NOT backtracking. |
default OperationMatcher<A> |
times(int countmin,
int countmax,
PatternAction<A> action)
repeats to the given count.
This method is NOT backtracking. |
default OperationMatcher<A> |
zeroOrMore()
a shortcut of 'atLeast(0)'.
This method is NOT backtracking. |
default OperationMatcher<A> |
zeroOrMore(PatternAction<A> action)
a shortcut of 'atLeast(0, action)'.
This method is NOT backtracking. |
match, match, parse, parsePart, parsePart, parsePartGlobal, parsePartGlobal, parsePartGlobalList, parsePartGlobalList
int skipSpace(java.lang.String match, int index)
match
- a string to matchindex
- a starting indexdefault OperationMatcher<A> times(int countmin, int countmax, PatternAction<A> action)
countmin
- minimum of repetitioncountmax
- maximum of repetitionaction
- an action to be invokeddefault OperationMatcher<A> times(int countmin, int countmax)
countmin
- minimum of repetitioncountmax
- maximum of repetitiondefault OperationMatcher<A> atLeast(int count, PatternAction<A> action)
count
- minimum of repetitionaction
- an action to be invokeddefault OperationMatcher<A> atLeast(int count)
count
- minimum of repetitiondefault OperationMatcher<A> atMost(int count, PatternAction<A> action)
count
- maximum of repetitionaction
- an action to be invokeddefault OperationMatcher<A> atMost(int count)
count
- maximum of repetitiondefault OperationMatcher<A> maybe(PatternAction<A> action)
action
- an action to be invokeddefault OperationMatcher<A> maybe()
default OperationMatcher<A> zeroOrMore(PatternAction<A> action)
action
- an action to be invokeddefault OperationMatcher<A> zeroOrMore()
default OperationMatcher<A> oneOrMore(PatternAction<A> action)
action
- an action to be invokeddefault OperationMatcher<A> oneOrMore()
default OperationMatcher<A> delimit(PatternMatcher<A> delimiter, PatternAction<A> action)
delimiter
- a string of delimiteraction
- an action to be invokeddefault OperationMatcher<A> delimit(PatternMatcher<A> delimiter)
delimiter
- a string of delimiterdefault OperationMatcher<A> cond(java.util.function.Predicate<A> cond)
cond
- the conditiondefault OperationMatcher<A> end()