/** * Returns a deep clone of this {@link ABoolPatternIR} node. * @return a deep clone of this {@link ABoolPatternIR} node */ public ABoolPatternIR clone() { return new ABoolPatternIR( _sourceNode, _tag, _metaData, _value ); }
/** * Creates a deep clone of this {@link ABoolPatternIR} 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 ABoolPatternIR} node */ public ABoolPatternIR clone(Map<INode,INode> oldToNewMap) { ABoolPatternIR node = new ABoolPatternIR( _sourceNode, _tag, _metaData, _value ); oldToNewMap.put(this, node); return node; }
@Override public SPatternIR caseABooleanPattern(ABooleanPattern node, IRInfo question) throws AnalysisException { boolean value = node.getValue().getValue(); ABoolPatternIR boolPatternCg = new ABoolPatternIR(); boolPatternCg.setValue(value); return boolPatternCg; }