/** * Sets the intended label of this break statement, e.g. 'foo' * in "break foo". Also sets the parent of the label to this node. * @param label the break label, or {@code null} if the statement is * just the "break" keyword by itself. */ public void setBreakLabel(Name label) { breakLabel = label; if (label != null) label.setParent(this); }
/** * Sets the intended label of this continue statement. * Only applies if the statement was of the form "continue <label>". * @param label the continue label, or {@code null} if not present. */ public void setLabel(Name label) { this.label = label; if (label != null) label.setParent(this); }
/** * Sets the intended label of this break statement, e.g. 'foo' * in "break foo". Also sets the parent of the label to this node. * @param label the break label, or {@code null} if the statement is * just the "break" keyword by itself. */ public void setBreakLabel(Name label) { breakLabel = label; if (label != null) label.setParent(this); }
/** * Sets the intended label of this continue statement. * Only applies if the statement was of the form "continue <label>". * @param label the continue label, or {@code null} if not present. */ public void setLabel(Name label) { this.label = label; if (label != null) label.setParent(this); }
/** * Sets namespace, and sets its parent to this node. * Can be {@code null}. */ public void setNamespace(Name namespace) { this.namespace = namespace; if (namespace != null) namespace.setParent(this); }
/** * Sets the intended label of this break statement, e.g. 'foo' * in "break foo". Also sets the parent of the label to this node. * @param label the break label, or {@code null} if the statement is * just the "break" keyword by itself. */ public void setBreakLabel(Name label) { breakLabel = label; if (label != null) label.setParent(this); }
/** * Sets function name, and sets its parent to this node. * @param name function name, {@code null} for anonymous functions */ public void setFunctionName(Name name) { functionName = name; if (name != null) name.setParent(this); }
/** * Sets the intended label of this continue statement. * Only applies if the statement was of the form "continue <label>". * @param label the continue label, or {@code null} if not present. */ public void setLabel(Name label) { this.label = label; if (label != null) label.setParent(this); }
/** * Sets namespace, and sets its parent to this node. * Can be {@code null}. */ public void setNamespace(Name namespace) { this.namespace = namespace; if (namespace != null) namespace.setParent(this); }
/** * Sets the intended label of this continue statement. * Only applies if the statement was of the form "continue <label>". * @param label the continue label, or {@code null} if not present. */ public void setLabel(Name label) { this.label = label; if (label != null) label.setParent(this); }
/** * Sets function name, and sets its parent to this node. * @param name function name, {@code null} for anonymous functions */ public void setFunctionName(Name name) { functionName = name; if (name != null) name.setParent(this); }
/** * Sets namespace, and sets its parent to this node. * Can be {@code null}. */ public void setNamespace(Name namespace) { this.namespace = namespace; if (namespace != null) namespace.setParent(this); }
/** * Sets namespace, and sets its parent to this node. * Can be {@code null}. */ public void setNamespace(Name namespace) { this.namespace = namespace; if (namespace != null) namespace.setParent(this); }
/** * Sets the intended label of this break statement, e.g. 'foo' * in "break foo". Also sets the parent of the label to this node. * @param label the break label, or {@code null} if the statement is * just the "break" keyword by itself. */ public void setBreakLabel(Name label) { breakLabel = label; if (label != null) label.setParent(this); }
/** * Sets property name, and sets its parent to this node. * @throws IllegalArgumentException if {@code propName} is {@code null} */ public void setPropName(Name propName) { assertNotNull(propName); this.propName = propName; propName.setParent(this); }
/** * Sets catch variable node, and sets its parent to this node. * @param varName catch variable * @throws IllegalArgumentException if varName is {@code null} */ public void setVarName(Name varName) { assertNotNull(varName); this.varName = varName; varName.setParent(this); }
/** * Sets property name, and sets its parent to this node. * @throws IllegalArgumentException if {@code propName} is {@code null} */ public void setPropName(Name propName) { assertNotNull(propName); this.propName = propName; propName.setParent(this); }
/** * Sets catch variable node, and sets its parent to this node. * @param varName catch variable * @throws IllegalArgumentException if varName is {@code null} */ public void setVarName(Name varName) { assertNotNull(varName); this.varName = varName; varName.setParent(this); }
/** * Sets catch variable node, and sets its parent to this node. * @param varName catch variable * @throws IllegalArgumentException if varName is {@code null} */ public void setVarName(Name varName) { assertNotNull(varName); this.varName = varName; varName.setParent(this); }
/** * Sets property name, and sets its parent to this node. * @throws IllegalArgumentException if {@code propName} is {@code null} */ public void setPropName(Name propName) { assertNotNull(propName); this.propName = propName; propName.setParent(this); }