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

Method testOf

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

Core PEG Rule, "Test" returns true if sequence of rules matches, but does not consume input. @param objs rules/string literals/char literals/execs @return rule

(Object... objs)

Source from the content-addressed store, hash-verified

823 * @return rule
824 */
825 public ParentRule testOf(Object... objs) {
826 PegLegRule<V> rule = seqOf(objs);
827 return new ParentRule(() -> get().ruleReturn(innerTest("testOf()", rule).matched(), false));
828 }
829
830 /**
831 * Core PEG rule: "TestNot". Matches in set of sub rules does not match, does not consume input.

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