/** * Creates a new complete constructor {@code ACasesStmIR} 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 exp_ the {@link SExpIR} node for the {@code exp} child of this {@link ACasesStmIR} node * @param cases_ the {@link NodeList} node for the {@code cases} child of this {@link ACasesStmIR} node * @param others_ the {@link SStmIR} node for the {@code others} child of this {@link ACasesStmIR} node */ public ACasesStmIR(SourceNode sourceNode_, Object tag_, List<? extends ClonableString> metaData_, SExpIR exp_, List<? extends ACaseAltStmStmIR> cases_, SStmIR others_) { super(sourceNode_,tag_,metaData_); this.setExp(exp_); this.setCases(cases_); this.setOthers(others_); }
/** * Creates a new tree field only constructor {@code ACasesStmIR TAG=cases} 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 exp_ the {@link SExpIR} node for the {@code exp} child of this {@link ACasesStmIR} node * @param cases_ the {@link NodeList} node for the {@code cases} child of this {@link ACasesStmIR} node * @param others_ the {@link SStmIR} node for the {@code others} child of this {@link ACasesStmIR} node */ public ACasesStmIR(SExpIR exp_, List<? extends ACaseAltStmStmIR> cases_, SStmIR others_) { super(null,null,null); this.setExp(exp_); this.setCases(cases_); this.setOthers(others_); }