/** * Creates a new tree field only constructor {@code ATixeStm TAG=tixe} 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 traps_ the {@link NodeList} node for the {@code traps} child of this {@link ATixeStm} node * @param body_ the {@link PStm} node for the {@code body} child of this {@link ATixeStm} node */ public ATixeStm(ILexLocation location_, List<? extends ATixeStmtAlternative> traps_, PStm body_) { super(location_,null); this.setTraps(traps_); this.setBody(body_); }
/** * Creates a new complete constructor {@code ATixeStm} 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 traps_ the {@link NodeList} node for the {@code traps} child of this {@link ATixeStm} node * @param body_ the {@link PStm} node for the {@code body} child of this {@link ATixeStm} node */ public ATixeStm(ILexLocation location_, PType type_, List<? extends ATixeStmtAlternative> traps_, PStm body_) { super(location_,type_); this.setTraps(traps_); this.setBody(body_); }
public static ATixeStm newATixeStm(ILexLocation token, List<ATixeStmtAlternative> traps, PStm body) { ATixeStm result = new ATixeStm(); initStatement(result, token); result.setTraps(traps); result.setBody(body); return result; }