/** * 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 new complete constructor {@code AQuotePatternIR} node with the given nodes as children. * @deprecated This method should not be used, use AstFactory instead. * The basic child nodes are removed from their previous parents. * @param value_ the {@link String} node for the {@code value} child of this {@link AQuotePatternIR} node */ public AQuotePatternIR(SourceNode sourceNode_, Object tag_, List<? extends ClonableString> metaData_, String value_) { super(sourceNode_,tag_,metaData_); this.setValue(value_); }
/** * Essentially this.toString().equals(o.toString()). **/ @Override public boolean equals(Object o) { if (o != null && o instanceof AQuotePatternIR) { return toString().equals(o.toString()); } return false; }
@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; }
@Override public void caseAQuotePatternIR(AQuotePatternIR node, STypeIR question) throws AnalysisException { AQuoteTypeIR quoteTypeCg = new AQuoteTypeIR(); quoteTypeCg.setValue(node.getValue()); storeType(node, quoteTypeCg); }
qt.setValue(((AQuotePatternIR) pat).getValue()); return qt; } else if (pat instanceof ARealPatternIR)
/** * Creates a new tree field only constructor {@code AQuotePatternIR TAG=quote} node with the given nodes as children. * @deprecated This method should not be used, use AstFactory instead. * The basic child nodes are removed from their previous parents. * @param value_ the {@link String} node for the {@code value} child of this {@link AQuotePatternIR} node */ public AQuotePatternIR(String value_) { super(null,null,null); this.setValue(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; }
String value = quotePattern.getValue(); AQuoteLiteralExpIR quoteLit = transAssistant.getInfo().getExpAssistant().consQuoteLiteral(value);