/** * Sets object being iterated over, and sets its parent to this node. * @throws IllegalArgumentException if {@code object} is {@code null} */ public void setIteratedObject(AstNode object) { assertNotNull(object); this.iteratedObject = object; object.setParent(this); }
/** * Sets loop iterator expression: the part before the "in" keyword. * Also sets its parent to this node. * @throws IllegalArgumentException if {@code iterator} is {@code null} */ public void setIterator(AstNode iterator) { assertNotNull(iterator); this.iterator = iterator; iterator.setParent(this); }
/** * Sets loop iterator expression: the part before the "in" keyword. * Also sets its parent to this node. * @throws IllegalArgumentException if {@code iterator} is {@code null} */ public void setIterator(AstNode iterator) { assertNotNull(iterator); this.iterator = iterator; iterator.setParent(this); }
/** * Sets object being iterated over, and sets its parent to this node. * @throws IllegalArgumentException if {@code object} is {@code null} */ public void setIteratedObject(AstNode object) { assertNotNull(object); this.iteratedObject = object; object.setParent(this); }
/** * Sets object being iterated over, and sets its parent to this node. * @throws IllegalArgumentException if {@code object} is {@code null} */ public void setIteratedObject(AstNode object) { assertNotNull(object); this.iteratedObject = object; object.setParent(this); }
/** * Sets loop iterator expression: the part before the "in" keyword. * Also sets its parent to this node. * @throws IllegalArgumentException if {@code iterator} is {@code null} */ public void setIterator(AstNode iterator) { assertNotNull(iterator); this.iterator = iterator; iterator.setParent(this); }
/** * Sets loop iterator expression: the part before the "in" keyword. * Also sets its parent to this node. * @throws IllegalArgumentException if {@code iterator} is {@code null} */ public void setIterator(AstNode iterator) { assertNotNull(iterator); this.iterator = iterator; iterator.setParent(this); }
/** * Sets object being iterated over, and sets its parent to this node. * @throws IllegalArgumentException if {@code object} is {@code null} */ public void setIteratedObject(AstNode object) { assertNotNull(object); this.iteratedObject = object; object.setParent(this); }