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; }
public RuleDefinition override(Object... matchers) { throwExceptionIfEmptyListOfMatchers(matchers); setMatcher(GrammarFunctions.Standard.and(matchers)); return this; }