/** * Returns a deep clone of this {@link ATypeBind} node. * @return a deep clone of this {@link ATypeBind} node */ public ATypeBind clone() { return new ATypeBind( _location, _pattern, _type ); }
/** * Creates a deep clone of this {@link ATypeBind} 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 ATypeBind} node */ public ATypeBind clone(Map<INode,INode> oldToNewMap) { ATypeBind node = new ATypeBind( _location, _pattern, _type ); oldToNewMap.put(this, node); return node; }
public static ATypeBind newATypeBind(PPattern pattern, PType readType) { ATypeBind result = new ATypeBind(); result.setLocation(pattern.getLocation()); result.setPattern(pattern); result.setType(readType); return result; }