/** * Returns a deep clone of this {@link ANullPatternIR} node. * @return a deep clone of this {@link ANullPatternIR} node */ public ANullPatternIR clone() { return new ANullPatternIR( _sourceNode, _tag, _metaData ); }
@Override public SPatternIR caseANilPattern(ANilPattern node, IRInfo question) throws AnalysisException { return new ANullPatternIR(); }
/** * Creates a deep clone of this {@link ANullPatternIR} 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 ANullPatternIR} node */ public ANullPatternIR clone(Map<INode,INode> oldToNewMap) { ANullPatternIR node = new ANullPatternIR( _sourceNode, _tag, _metaData ); oldToNewMap.put(this, node); return node; }