/** * Creates a new complete constructor {@code AIfStmIR} 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 ifExp_ the {@link SExpIR} node for the {@code ifExp} child of this {@link AIfStmIR} node * @param thenStm_ the {@link SStmIR} node for the {@code thenStm} child of this {@link AIfStmIR} node * @param elseIf_ the {@link NodeList} node for the {@code elseIf} child of this {@link AIfStmIR} node * @param elseStm_ the {@link SStmIR} node for the {@code elseStm} child of this {@link AIfStmIR} node */ public AIfStmIR(SourceNode sourceNode_, Object tag_, List<? extends ClonableString> metaData_, SExpIR ifExp_, SStmIR thenStm_, List<? extends AElseIfStmIR> elseIf_, SStmIR elseStm_) { super(sourceNode_,tag_,metaData_); this.setIfExp(ifExp_); this.setThenStm(thenStm_); this.setElseIf(elseIf_); this.setElseStm(elseStm_); }
/** * Creates a new tree field only constructor {@code AIfStmIR TAG=if} 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 ifExp_ the {@link SExpIR} node for the {@code ifExp} child of this {@link AIfStmIR} node * @param thenStm_ the {@link SStmIR} node for the {@code thenStm} child of this {@link AIfStmIR} node * @param elseIf_ the {@link NodeList} node for the {@code elseIf} child of this {@link AIfStmIR} node * @param elseStm_ the {@link SStmIR} node for the {@code elseStm} child of this {@link AIfStmIR} node */ public AIfStmIR(SExpIR ifExp_, SStmIR thenStm_, List<? extends AElseIfStmIR> elseIf_, SStmIR elseStm_) { super(null,null,null); this.setIfExp(ifExp_); this.setThenStm(thenStm_); this.setElseIf(elseIf_); this.setElseStm(elseStm_); }