/** * Creates a new complete constructor {@code AElseIfExp} 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 AElseIfExp} node * @param then_ the {@link PExp} node for the {@code then} child of this {@link AElseIfExp} node */ public AElseIfExp(PType type_, ILexLocation location_, PExp elseIf_, PExp then_) { super(type_,location_); this.setElseIf(elseIf_); this.setThen(then_); }
/** * Creates a new tree field only constructor {@code AElseIfExp 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 AElseIfExp} node * @param then_ the {@link PExp} node for the {@code then} child of this {@link AElseIfExp} node */ public AElseIfExp(ILexLocation location_, PExp elseIf_, PExp then_) { super(null,location_); this.setElseIf(elseIf_); this.setThen(then_); }
public static AElseIfExp newAElseIfExp(ILexLocation start, PExp elseIfExp, PExp thenExp) { AElseIfExp result = new AElseIfExp(); initExpression(result, start); result.setElseIf(elseIfExp); result.setThen(thenExp); return result; }