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