/** * Returns a deep clone of this {@link AParameterType} node. * @return a deep clone of this {@link AParameterType} node */ public AParameterType clone() { return new AParameterType( _location, _resolved, _definitions, cloneNode(_name) ); }
/** * Creates a deep clone of this {@link AParameterType} 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 AParameterType} node */ public AParameterType clone(Map<INode,INode> oldToNewMap) { AParameterType node = new AParameterType( _location, _resolved, _definitions, cloneNode(_name, oldToNewMap) ); oldToNewMap.put(this, node); return node; }
public static AParameterType newAParameterType(ILexNameToken name) { AParameterType result = new AParameterType(); initType(result, name.getLocation()); result.setName(name); return result; }