Пример #1
0
 public RuleDefinition is(Object... matchers) {
   throwExceptionIfRuleAlreadyDefined(
       "The rule '" + ruleMatcher + "' has already been defined somewhere in the grammar.");
   throwExceptionIfEmptyListOfMatchers(matchers);
   setMatcher(GrammarFunctions.Standard.and(matchers));
   return this;
 }
Пример #2
0
 public RuleDefinition override(Object... matchers) {
   throwExceptionIfEmptyListOfMatchers(matchers);
   setMatcher(GrammarFunctions.Standard.and(matchers));
   return this;
 }