/** * Shared implementation applicable to head or body */ private void doHide(Node[] args, int length, RuleContext context ) { InfGraph g = context.getGraph(); if (g instanceof FBRuleInfGraph) { for (int i = 0; i < length; i++) { ((FBRuleInfGraph)g).hideNode(args[i]); } } else { throw new BuiltinException(this, context, "hide only available for FB rule engines"); } } }
/** * Shared implementation applicable to head or body */ private void doHide(Node[] args, int length, RuleContext context ) { InfGraph g = context.getGraph(); if (g instanceof FBRuleInfGraph) { for (int i = 0; i < length; i++) { ((FBRuleInfGraph)g).hideNode(args[i]); } } else { throw new BuiltinException(this, context, "hide only available for FB rule engines"); } } }