public static ASetDifferenceBinaryExp newASetDifferenceBinaryExp(PExp left, LexToken op, PExp right) { ASetDifferenceBinaryExp result = new ASetDifferenceBinaryExp(); initExpressionBinary(result, left, op, right); return result; }
/** * Creates a deep clone of this {@link ASetDifferenceBinaryExp} 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 ASetDifferenceBinaryExp} node */ public ASetDifferenceBinaryExp clone(Map<INode,INode> oldToNewMap) { ASetDifferenceBinaryExp node = new ASetDifferenceBinaryExp( _type, _location, cloneNode(_left, oldToNewMap), cloneNode(_op, oldToNewMap), cloneNode(_right, oldToNewMap) ); oldToNewMap.put(this, node); return node; }
/** * Returns a deep clone of this {@link ASetDifferenceBinaryExp} node. * @return a deep clone of this {@link ASetDifferenceBinaryExp} node */ public ASetDifferenceBinaryExp clone() { return new ASetDifferenceBinaryExp( _type, _location, cloneNode(_left), cloneNode(_op), cloneNode(_right) ); }