/** * Returns a deep clone of this {@link AUnaryMinusUnaryExp} node. * @return a deep clone of this {@link AUnaryMinusUnaryExp} node */ public AUnaryMinusUnaryExp clone() { return new AUnaryMinusUnaryExp( _type, _location, cloneNode(_exp) ); }
public static AUnaryMinusUnaryExp newAUnaryMinusUnaryExp( ILexLocation location, PExp exp) { AUnaryMinusUnaryExp result = new AUnaryMinusUnaryExp(); initExpressionUnary(result, location, exp); return result; }
/** * Creates a deep clone of this {@link AUnaryMinusUnaryExp} 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 AUnaryMinusUnaryExp} node */ public AUnaryMinusUnaryExp clone(Map<INode,INode> oldToNewMap) { AUnaryMinusUnaryExp node = new AUnaryMinusUnaryExp( _type, _location, cloneNode(_exp, oldToNewMap) ); oldToNewMap.put(this, node); return node; }