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