@Override public Set<IVariable<?>> getDesiredBound(StaticAnalysis sa) { final Set<IVariable<?>> desiredBound = new HashSet<IVariable<?>>(); for (IGroupMemberNode child : getChildren()) { desiredBound.addAll(child.getDesiredBound(sa)); } return desiredBound; } }
/** * {@inheritDoc} * <p> * Overridden to set the parent reference on the new child and clear the * parent reference on the old child. */ @SuppressWarnings("unchecked") @Override public int replaceWith(final BOp oldChild, final BOp newChild) { final int i = super.replaceWith(oldChild, newChild); if (i > 0) { if (((E) oldChild).getParent() == this) { ((E) oldChild).setParent(null); } ((E) newChild).setParent((IGroupNode<IGroupMemberNode>) this); } return i; }
final Set<IVariable<?>> vars) { if (node.getParent() == null) { if (!(node.getParent() instanceof JoinGroupNode)) { final JoinGroupNode p = node.getParentJoinGroup();
/** * {@inheritDoc} * <p> * Overridden to set the parent reference on the child */ @SuppressWarnings("unchecked") @Override public void addArg(final BOp newArg) { super.addArg(newArg); ((E) newArg).setParent((IGroupNode<IGroupMemberNode>) this); }
this.requiredBound = node.getRequiredBound(sa); this.desiredBound = node.getDesiredBound(sa);
final GraphPatternGroup<?> parent = node.getParentGraphPatternGroup();
@Override public Set<IVariable<?>> getRequiredBound(StaticAnalysis sa) { final Set<IVariable<?>> requiredBound = new HashSet<IVariable<?>>(); for (IGroupMemberNode child : getChildren()) { requiredBound.addAll(child.getRequiredBound(sa)); } return requiredBound; }
if (vexp!=null) { final Object gpGroup = child.get(0).getProperty(Annotations.GRAPH_PATTERN, null); if (gpGroup instanceof GraphPatternGroup) { rewrite(sa, exogenousVars, query, if (vexp!=null) { final Object gpGroup = child.get(0).getProperty(Annotations.GRAPH_PATTERN, null); if (gpGroup instanceof GraphPatternGroup) { rewrite(sa, exogenousVars, query,
/** * {@inheritDoc} * <p> * Overridden to set the parent reference on the child */ @SuppressWarnings("unchecked") @Override public void addArg(final BOp newArg) { super.addArg(newArg); ((E) newArg).setParent((IGroupNode<IGroupMemberNode>) this); }
this.requiredBound = node.getRequiredBound(sa); this.desiredBound = node.getDesiredBound(sa);
final GraphPatternGroup<?> parent = node.getParentGraphPatternGroup();
@Override public Set<IVariable<?>> getRequiredBound(StaticAnalysis sa) { final Set<IVariable<?>> requiredBound = new HashSet<IVariable<?>>(); for (IGroupMemberNode child : getChildren()) { requiredBound.addAll(child.getRequiredBound(sa)); } return requiredBound; }
if (vexp!=null) { final Object gpGroup = child.get(0).getProperty(Annotations.GRAPH_PATTERN, null); if (gpGroup instanceof GraphPatternGroup) { rewrite(sa, exogenousVars, query, if (vexp!=null) { final Object gpGroup = child.get(0).getProperty(Annotations.GRAPH_PATTERN, null); if (gpGroup instanceof GraphPatternGroup) { rewrite(sa, exogenousVars, query,
/** * {@inheritDoc} * <p> * Overridden to set the parent reference on the child */ @SuppressWarnings("unchecked") @Override public void addArg(final int index, final BOp newArg) { super.addArg(index, newArg); ((E) newArg).setParent((IGroupNode<IGroupMemberNode>) this); }
/** * {@inheritDoc} * <p> * Overridden to set the parent reference on the new child and clear the * parent reference on the old child. */ @SuppressWarnings("unchecked") @Override public int replaceWith(final BOp oldChild, final BOp newChild) { final int i = super.replaceWith(oldChild, newChild); if (i > 0) { if (((E) oldChild).getParent() == this) { ((E) oldChild).setParent(null); } ((E) newChild).setParent((IGroupNode<IGroupMemberNode>) this); } return i; }
final Set<IVariable<?>> vars) { if (node.getParent() == null) { if (!(node.getParent() instanceof JoinGroupNode)) { final JoinGroupNode p = node.getParentJoinGroup();
final GraphPatternGroup<?> parent = node.getParentGraphPatternGroup();
@Override public Set<IVariable<?>> getDesiredBound(StaticAnalysis sa) { final Set<IVariable<?>> desiredBound = new HashSet<IVariable<?>>(); for (IGroupMemberNode child : getChildren()) { desiredBound.addAll(child.getDesiredBound(sa)); } return desiredBound; } }