Rule with matches only if matches set of rules between min and max times. Greedy, but stops at max. @param min min times to match @param max max times to match @param objs rules/string literals/char literals/execs @return rule
(int min, int max, Object... objs)
| 845 | * @return rule |
| 846 | */ |
| 847 | public ParentRule timesOf(int min, int max, Object... objs) { |
| 848 | if (min < 0 || max < 0 || max < min) { throw error("illegal min/max for timesof [" + min + "/" + max + "]"); } |
| 849 | return new ParentRule(() -> innerTimesOf("timesOf(" + min + "-" + max + ")", min, max, objs)); |
| 850 | } |
| 851 | |
| 852 | /** |
| 853 | * Rule with matches only if matches set of rules exactly many times. |
nothing calls this directly
no test coverage detected