/** * 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; }
public static AAccessSpecifierAccessSpecifier newAAccessSpecifierAccessSpecifier( PAccess access, boolean isStatic, boolean isAsync, boolean isPure) { AAccessSpecifierAccessSpecifier result = new AAccessSpecifierAccessSpecifier(); result.setAccess(access); result.setStatic(isStatic ? new TStatic() : null); result.setAsync(isAsync ? new TAsync() : null); result.setPure(isPure); return result; }