/** * Returns a deep clone of this {@link AFuncInstatiationExp} node. * @return a deep clone of this {@link AFuncInstatiationExp} node */ public AFuncInstatiationExp clone() { return new AFuncInstatiationExp( _type, _location, cloneNode(_function), _actualTypes, _expdef, _impdef ); }
/** * Creates a deep clone of this {@link AFuncInstatiationExp} 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 AFuncInstatiationExp} node */ public AFuncInstatiationExp clone(Map<INode,INode> oldToNewMap) { AFuncInstatiationExp node = new AFuncInstatiationExp( _type, _location, cloneNode(_function, oldToNewMap), _actualTypes, _expdef, _impdef ); oldToNewMap.put(this, node); return node; }
public static AFuncInstatiationExp newAFuncInstatiationExp(PExp function, List<PType> types) { AFuncInstatiationExp result = new AFuncInstatiationExp(); result.setLocation(function.getLocation()); result.setFunction(function); result.setActualTypes(types); return result; }
AFuncInstatiationExp func_exp = new AFuncInstatiationExp(); func_exp.setActualTypes(cloneListType(fie.getActualTypes())); func_exp.setFunction(wrapName(measure.clone()));
AFuncInstatiationExp func_exp = new AFuncInstatiationExp();