/** * Creates a deep clone of this {@link ACatchClauseDeclIR} 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 ACatchClauseDeclIR} node */ public ACatchClauseDeclIR clone(Map<INode,INode> oldToNewMap) { ACatchClauseDeclIR node = new ACatchClauseDeclIR( _sourceNode, _tag, _metaData, cloneNode(_type, oldToNewMap), _name, cloneNode(_stm, oldToNewMap) ); oldToNewMap.put(this, node); return node; }
/** * Returns a deep clone of this {@link ACatchClauseDeclIR} node. * @return a deep clone of this {@link ACatchClauseDeclIR} node */ public ACatchClauseDeclIR clone() { return new ACatchClauseDeclIR( _sourceNode, _tag, _metaData, cloneNode(_type), _name, cloneNode(_stm) ); }
private ACatchClauseDeclIR consTcFailHandling() { AExternalTypeIR externalType = new AExternalTypeIR(); externalType.setName(ASSERTION_ERROR_TYPE); ACatchClauseDeclIR catchClause = new ACatchClauseDeclIR(); catchClause.setType(externalType); catchClause.setName(ASSERTION_ERROR_PARAM); AReturnStmIR retFalse = new AReturnStmIR(); retFalse.setExp(traceTrans.getTransAssist().getInfo().getExpAssistant().consBoolLiteral(false)); catchClause.setStm(retFalse); return catchClause; } }