/** * Creates a new complete constructor {@code ATrapStm} 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 patternBind_ the {@link ADefPatternBind} node for the {@code patternBind} child of this {@link ATrapStm} node * @param with_ the {@link PStm} node for the {@code with} child of this {@link ATrapStm} node * @param body_ the {@link PStm} node for the {@code body} child of this {@link ATrapStm} node */ public ATrapStm(ILexLocation location_, PType type_, ADefPatternBind patternBind_, PStm with_, PStm body_) { super(location_,type_); this.setPatternBind(patternBind_); this.setWith(with_); this.setBody(body_); }
/** * Creates a new tree field only constructor {@code ATrapStm TAG=trap} 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 patternBind_ the {@link ADefPatternBind} node for the {@code patternBind} child of this {@link ATrapStm} node * @param with_ the {@link PStm} node for the {@code with} child of this {@link ATrapStm} node * @param body_ the {@link PStm} node for the {@code body} child of this {@link ATrapStm} node */ public ATrapStm(ILexLocation location_, ADefPatternBind patternBind_, PStm with_, PStm body_) { super(location_,null); this.setPatternBind(patternBind_); this.setWith(with_); this.setBody(body_); }
public static ATrapStm newATrapStm(ILexLocation token, ADefPatternBind patternBind, PStm with, PStm body) { ATrapStm result = new ATrapStm(); initStatement(result, token); result.setPatternBind(patternBind); result.setWith(with); result.setBody(body); return result; }