/** * *************************************************************************** Same as {@link * #addRuleAlternative(Rule, Rule)}, but allows the alternative to already be known by the * grammar. */ public void addExistingRuleAlternative(Rule extendedRule, Rule rule, boolean prioritary) { if (prioritary) { extendedRule.children().add(0, rule); } else { extendedRule.children().add(rule); } }
/** ************************************************************************* */ public void removeRuleAlternative(Rule extendedRule, Rule rule) { unregisterRule(rule); extendedRule.children().remove(rule); }