/** * {@inheritDoc} * <p> * Overridden to set the parent reference on the child. */ @SuppressWarnings("unchecked") @Override public ModifiableBOpBase setArg(final int index, final BOp newArg) { super.setArg(index, newArg); ((E) newArg).setParent((IGroupNode<IGroupMemberNode>) this); return this; }
/** * {@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); }
/** * {@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); }
/** * {@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 clear the parent reference on the child. */ @SuppressWarnings("unchecked") @Override public boolean removeArg(final BOp child) { if (super.removeArg(child)) { ((E) child).setParent(null); return true; } return false; }
/** * {@inheritDoc} * <p> * Overridden to set the parent reference on the child. */ @SuppressWarnings("unchecked") @Override public ModifiableBOpBase setArg(final int index, final BOp newArg) { super.setArg(index, newArg); ((E) newArg).setParent((IGroupNode<IGroupMemberNode>) this); return this; }
/** * {@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 clear the parent reference on the child. */ @SuppressWarnings("unchecked") @Override public boolean removeArg(final BOp child) { if (super.removeArg(child)) { ((E) child).setParent(null); return true; } return false; }
/** * {@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; }
/** * {@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; }
.get(i); child.setParent((GroupNodeBase<IGroupMemberNode>) copy);
.get(i); child.setParent((GroupNodeBase<IGroupMemberNode>) copy);