/** * Returns a deep clone of this {@link ARealPatternIR} node. * @return a deep clone of this {@link ARealPatternIR} node */ public ARealPatternIR clone() { return new ARealPatternIR( _sourceNode, _tag, _metaData, _value ); }
/** * Creates a new complete constructor {@code ARealPatternIR} 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 Double} node for the {@code value} child of this {@link ARealPatternIR} node */ public ARealPatternIR(SourceNode sourceNode_, Object tag_, List<? extends ClonableString> metaData_, Double value_) { super(sourceNode_,tag_,metaData_); this.setValue(value_); }
@Override public SPatternIR caseARealPattern(ARealPattern node, IRInfo question) throws AnalysisException { double value = node.getValue().getValue(); ARealPatternIR realPatternCg = new ARealPatternIR(); realPatternCg.setValue(value); return realPatternCg; }
/** * Essentially this.toString().equals(o.toString()). **/ @Override public boolean equals(Object o) { if (o != null && o instanceof ARealPatternIR) { return toString().equals(o.toString()); } return false; }
Double value = realPattern.getValue(); ARealLiteralExpIR realLit = transAssistant.getInfo().getExpAssistant().consRealLiteral(value);
/** * Creates a new tree field only constructor {@code ARealPatternIR TAG=real} 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 Double} node for the {@code value} child of this {@link ARealPatternIR} node */ public ARealPatternIR(Double value_) { super(null,null,null); this.setValue(value_); }
/** * Creates a deep clone of this {@link ARealPatternIR} 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 ARealPatternIR} node */ public ARealPatternIR clone(Map<INode,INode> oldToNewMap) { ARealPatternIR node = new ARealPatternIR( _sourceNode, _tag, _metaData, _value ); oldToNewMap.put(this, node); return node; }