/** * Creates a new tree field only constructor {@code ACasesStm TAG=cases} 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 exp_ the {@link PExp} node for the {@code exp} child of this {@link ACasesStm} node * @param cases_ the {@link NodeList} node for the {@code cases} child of this {@link ACasesStm} node * @param others_ the {@link PStm} node for the {@code others} child of this {@link ACasesStm} node */ public ACasesStm(ILexLocation location_, PExp exp_, List<? extends ACaseAlternativeStm> cases_, PStm others_) { super(location_,null); this.setExp(exp_); this.setCases(cases_); this.setOthers(others_); }
/** * Creates a new complete constructor {@code ACasesStm} 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 exp_ the {@link PExp} node for the {@code exp} child of this {@link ACasesStm} node * @param cases_ the {@link NodeList} node for the {@code cases} child of this {@link ACasesStm} node * @param others_ the {@link PStm} node for the {@code others} child of this {@link ACasesStm} node */ public ACasesStm(ILexLocation location_, PType type_, PExp exp_, List<? extends ACaseAlternativeStm> cases_, PStm others_) { super(location_,type_); this.setExp(exp_); this.setCases(cases_); this.setOthers(others_); }
public static ACasesStm newACasesStm(ILexLocation token, PExp exp, List<ACaseAlternativeStm> cases, PStm others) { ACasesStm result = new ACasesStm(); initStatement(result, token); result.setExp(exp); result.setCases(cases); result.setOthers(others); return result; }