public static ATixeStmtAlternative newATixeStmtAlternative( ADefPatternBind patternBind, PStm resultStm) { ATixeStmtAlternative result = new ATixeStmtAlternative(); result.setPatternBind(patternBind); result.setStatement(resultStm); return result; }
/** * Returns a deep clone of this {@link ATixeStmtAlternative} node. * @return a deep clone of this {@link ATixeStmtAlternative} node */ public ATixeStmtAlternative clone() { return new ATixeStmtAlternative( cloneNode(_patternBind), cloneNode(_statement), _exp ); }
/** * Creates a deep clone of this {@link ATixeStmtAlternative} node while putting all * old node-new node relations in the map {@code oldToNewMap}. * @param oldToNewMap the map filled with the old node-new node relation * @return a deep clone of this {@link ATixeStmtAlternative} node */ public ATixeStmtAlternative clone(Map<INode,INode> oldToNewMap) { ATixeStmtAlternative node = new ATixeStmtAlternative( cloneNode(_patternBind, oldToNewMap), cloneNode(_statement, oldToNewMap), _exp ); oldToNewMap.put(this, node); return node; }