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