/** * Sets node evaluating to the function to call, and sets * its parent to this node. * @param target node evaluating to the function to call. * @throws IllegalArgumentException} if target is {@code null} */ public void setTarget(AstNode target) { assertNotNull(target); this.target = target; target.setParent(this); }
/** * Sets node evaluating to the function to call, and sets * its parent to this node. * @param target node evaluating to the function to call. * @throws IllegalArgumentException} if target is {@code null} */ public void setTarget(AstNode target) { assertNotNull(target); this.target = target; target.setParent(this); }
/** * Sets node evaluating to the function to call, and sets * its parent to this node. * @param target node evaluating to the function to call. * @throws IllegalArgumentException} if target is {@code null} */ public void setTarget(AstNode target) { assertNotNull(target); this.target = target; target.setParent(this); }
/** * Sets node evaluating to the function to call, and sets * its parent to this node. * @param target node evaluating to the function to call. * @throws IllegalArgumentException} if target is {@code null} */ public void setTarget(AstNode target) { assertNotNull(target); this.target = target; target.setParent(this); }
/** * Adds an argument to the list, and sets its parent to this node. * @param arg the argument node to add to the list * @throws IllegalArgumentException} if arg is {@code null} */ public void addArgument(AstNode arg) { assertNotNull(arg); if (arguments == null) { arguments = new ArrayList<AstNode>(); } arguments.add(arg); arg.setParent(this); }
/** * Adds an argument to the list, and sets its parent to this node. * @param arg the argument node to add to the list * @throws IllegalArgumentException} if arg is {@code null} */ public void addArgument(AstNode arg) { assertNotNull(arg); if (arguments == null) { arguments = new ArrayList<AstNode>(); } arguments.add(arg); arg.setParent(this); }
/** * Adds an argument to the list, and sets its parent to this node. * @param arg the argument node to add to the list * @throws IllegalArgumentException} if arg is {@code null} */ public void addArgument(AstNode arg) { assertNotNull(arg); if (arguments == null) { arguments = new ArrayList<AstNode>(); } arguments.add(arg); arg.setParent(this); }
/** * Adds an argument to the list, and sets its parent to this node. * @param arg the argument node to add to the list * @throws IllegalArgumentException} if arg is {@code null} */ public void addArgument(AstNode arg) { assertNotNull(arg); if (arguments == null) { arguments = new ArrayList<AstNode>(); } arguments.add(arg); arg.setParent(this); }