/** * Creates a new complete constructor {@code AElseIfStm} 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 elseIf_ the {@link PExp} node for the {@code elseIf} child of this {@link AElseIfStm} node * @param thenStm_ the {@link PStm} node for the {@code thenStm} child of this {@link AElseIfStm} node */ public AElseIfStm(ILexLocation location_, PType type_, PExp elseIf_, PStm thenStm_) { super(location_,type_); this.setElseIf(elseIf_); this.setThenStm(thenStm_); }
/** * Creates a new tree field only constructor {@code AElseIfStm TAG=elseIf} 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 elseIf_ the {@link PExp} node for the {@code elseIf} child of this {@link AElseIfStm} node * @param thenStm_ the {@link PStm} node for the {@code thenStm} child of this {@link AElseIfStm} node */ public AElseIfStm(ILexLocation location_, PExp elseIf_, PStm thenStm_) { super(location_,null); this.setElseIf(elseIf_); this.setThenStm(thenStm_); }
public static AElseIfStm newAElseIfStm(ILexLocation token, PExp elseIfExp, PStm thenStmt) { AElseIfStm result = new AElseIfStm(); initStatement(result, token); result.setElseIf(elseIfExp); result.setThenStm(thenStmt); return result; }