MCPcopy Create free account
hub / github.com/cschanck/single-file-java / testNotOf

Method testNotOf

src/main/java/org/sfj/PegLegParser.java:835–838  ·  view source on GitHub ↗

Core PEG rule: "TestNot". Matches in set of sub rules does not match, does not consume input. @param objs rules/string literals/char literals/execs @return rule

(Object... objs)

Source from the content-addressed store, hash-verified

833 * @return rule
834 */
835 public ParentRule testNotOf(Object... objs) {
836 PegLegRule<V> rule = seqOf(objs);
837 return new ParentRule(() -> get().ruleReturn(!innerTest("testNotOf()", rule).matched(), false));
838 }
839
840 /**
841 * Rule with matches only if matches set of rules between min and max times. Greedy, but stops at max.

Callers 1

SMethod · 0.80

Calls 5

seqOfMethod · 0.95
getMethod · 0.95
innerTestMethod · 0.95
ruleReturnMethod · 0.80
matchedMethod · 0.80

Tested by 1

SMethod · 0.64