/** * Returns a deep clone of this {@link TAsync} node. * @return a deep clone of this {@link TAsync} node */ public TAsync clone() { return new TAsync( getText()); }
/** * Creates a deep clone of this {@link TAsync} 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 TAsync} node */ public TAsync clone(Map<INode,INode> oldToNewMap) { TAsync token = new TAsync( getText()); oldToNewMap.put(this, token); return token; }