private void addProducedBinding(final TermNode t, final Set<IVariable<?>> producedBindings) { addVar(t, producedBindings, false); }
private void addUsedVar(final TermNode t, final Set<IVariable<?>> vars) { addVar(t, vars, true); }
private void addProducedBinding(final TermNode t, final Set<IVariable<?>> producedBindings) { addVar(t, producedBindings, false); }
private void addUsedVar(final TermNode t, final Set<IVariable<?>> vars) { addVar(t, vars, true); }
/** * Return the variables bound by the path - i.e. what this node will * attempt to bind when run. */ public Set<IVariable<?>> getDefinitelyProducedBindings() { final Set<IVariable<?>> producedBindings = new LinkedHashSet<IVariable<?>>(); addVar(left(), producedBindings, true); addVar(right(), producedBindings, true); final VarNode edgeVar = edgeVar(); if (edgeVar != null) { addProducedBinding(edgeVar, producedBindings); } return producedBindings; }
/** * Return the variables bound by the path - i.e. what this node will * attempt to bind when run. */ public Set<IVariable<?>> getDefinitelyProducedBindings() { final Set<IVariable<?>> producedBindings = new LinkedHashSet<IVariable<?>>(); addVar(left(), producedBindings, true); addVar(right(), producedBindings, true); final VarNode edgeVar = edgeVar(); if (edgeVar != null) { addProducedBinding(edgeVar, producedBindings); } return producedBindings; }