/** * 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 ); }
/** * Essentially this.toString().equals(o.toString()). **/ @Override public boolean equals(Object o) { if (o != null && o instanceof ANullPatternIR) { return toString().equals(o.toString()); } return false; }
@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; }