/** * Return the variables bound by the path - i.e. what this node will * attempt to bind when run. */ public Set<IVariable<?>> getMaybeProducedBindings() { final Set<IVariable<?>> producedBindings = getDefinitelyProducedBindings(); for (StatementPatternNode sp : subgroup().getStatementPatterns()) { addProducedBinding(sp.s(), producedBindings); addProducedBinding(sp.p(), producedBindings); addProducedBinding(sp.o(), producedBindings); addProducedBinding(sp.c(), producedBindings); } return producedBindings; }
/** * Return the variables bound by the path - i.e. what this node will * attempt to bind when run. */ public Set<IVariable<?>> getMaybeProducedBindings() { final Set<IVariable<?>> producedBindings = getDefinitelyProducedBindings(); for (StatementPatternNode sp : subgroup().getStatementPatterns()) { addProducedBinding(sp.s(), producedBindings); addProducedBinding(sp.p(), producedBindings); addProducedBinding(sp.o(), producedBindings); addProducedBinding(sp.c(), 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; }
/** * 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; }