/** * Creates a new tree field only constructor {@code ACaseAlternativeStm TAG=case} node with the given nodes as children. * @deprecated This method should not be used, use AstFactory instead. * The basic child nodes are removed from their previous parents. * @param location_ the {@link ILexLocation} node for the {@code location} child of this {@link ACaseAlternativeStm} node * @param cexp_ the {@link PExp} node for the {@code cexp} child of this {@link ACaseAlternativeStm} node * @param pattern_ the {@link PPattern} node for the {@code pattern} child of this {@link ACaseAlternativeStm} node * @param result_ the {@link PStm} node for the {@code result} child of this {@link ACaseAlternativeStm} node */ public ACaseAlternativeStm(ILexLocation location_, PExp cexp_, PPattern pattern_, PStm result_) { super(); this.setLocation(location_); this.setCexp(cexp_); this.setPattern(pattern_); this.setResult(result_); }
/** * Creates a new complete constructor {@code ACaseAlternativeStm} node with the given nodes as children. * @deprecated This method should not be used, use AstFactory instead. * The basic child nodes are removed from their previous parents. * @param location_ the {@link ILexLocation} node for the {@code location} child of this {@link ACaseAlternativeStm} node * @param cexp_ the {@link PExp} node for the {@code cexp} child of this {@link ACaseAlternativeStm} node * @param pattern_ the {@link PPattern} node for the {@code pattern} child of this {@link ACaseAlternativeStm} node * @param result_ the {@link PStm} node for the {@code result} child of this {@link ACaseAlternativeStm} node * @param defs_ the {@link GraphNodeList} <b>graph</a> node for the {@code defs} child of this {@link ACaseAlternativeStm} node. * <i>The parent of this {@code defs } will not be changed by adding it to this node.</i> * @param ctype_ the {@link PType} <b>graph</a> node for the {@code ctype} child of this {@link ACaseAlternativeStm} node. * <i>The parent of this {@code ctype } will not be changed by adding it to this node.</i> */ public ACaseAlternativeStm(ILexLocation location_, PExp cexp_, PPattern pattern_, PStm result_, List<? extends PDefinition> defs_, PType ctype_) { super(); this.setLocation(location_); this.setCexp(cexp_); this.setPattern(pattern_); this.setResult(result_); this.setDefs(defs_); this.setCtype(ctype_); }