/** * Creates a new tree field only constructor {@code ACatchClauseDeclIR TAG=catchClause} 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 type_ the {@link STypeIR} node for the {@code type} child of this {@link ACatchClauseDeclIR} node * @param name_ the {@link String} node for the {@code name} child of this {@link ACatchClauseDeclIR} node * @param stm_ the {@link SStmIR} node for the {@code stm} child of this {@link ACatchClauseDeclIR} node */ public ACatchClauseDeclIR(STypeIR type_, String name_, SStmIR stm_) { super(null,null,null); this.setType(type_); this.setName(name_); this.setStm(stm_); }
/** * Creates a new complete constructor {@code ACatchClauseDeclIR} 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 type_ the {@link STypeIR} node for the {@code type} child of this {@link ACatchClauseDeclIR} node * @param name_ the {@link String} node for the {@code name} child of this {@link ACatchClauseDeclIR} node * @param stm_ the {@link SStmIR} node for the {@code stm} child of this {@link ACatchClauseDeclIR} node */ public ACatchClauseDeclIR(SourceNode sourceNode_, Object tag_, List<? extends ClonableString> metaData_, STypeIR type_, String name_, SStmIR stm_) { super(sourceNode_,tag_,metaData_); this.setType(type_); this.setName(name_); this.setStm(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; } }