/** * Returns a deep clone of this {@link APreCondRuntimeErrorExpIR} node. * @return a deep clone of this {@link APreCondRuntimeErrorExpIR} node */ public APreCondRuntimeErrorExpIR clone() { return new APreCondRuntimeErrorExpIR( _sourceNode, _tag, _metaData, cloneNode(_type), _message ); }
/** * Creates a new complete constructor {@code APreCondRuntimeErrorExpIR} 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 message_ the {@link String} node for the {@code message} child of this {@link APreCondRuntimeErrorExpIR} node */ public APreCondRuntimeErrorExpIR(SourceNode sourceNode_, Object tag_, List<? extends ClonableString> metaData_, STypeIR type_, String message_) { super(sourceNode_,tag_,metaData_,type_); this.setMessage(message_); }
/** * Essentially this.toString().equals(o.toString()). **/ @Override public boolean equals(Object o) { if (o != null && o instanceof APreCondRuntimeErrorExpIR) { return toString().equals(o.toString()); } return false; }
APreCondRuntimeErrorExpIR runtimeError = new APreCondRuntimeErrorExpIR(); runtimeError.setType(new AErrorTypeIR()); runtimeError.setMessage(String.format("Precondition failure: pre_%s", node.getName()));
/** * Called by the {@link APreCondRuntimeErrorExpIR} node from {@link APreCondRuntimeErrorExpIR#apply(IIsaAnalysis)}. * @param node the calling {@link APreCondRuntimeErrorExpIR} node */ public void caseAPreCondRuntimeErrorExpIR(APreCondRuntimeErrorExpIR node) throws AnalysisException { _visitedNodes.add(node); inAPreCondRuntimeErrorExpIR(node); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { node.getType().apply(this); } outAPreCondRuntimeErrorExpIR(node); }
/** * Called by the {@link APreCondRuntimeErrorExpIR} node from {@link APreCondRuntimeErrorExpIR#apply(IAnalysis)}. * @param node the calling {@link APreCondRuntimeErrorExpIR} node */ public void caseAPreCondRuntimeErrorExpIR(APreCondRuntimeErrorExpIR node, Q question) throws AnalysisException { _visitedNodes.add(node); inAPreCondRuntimeErrorExpIR(node, question); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { node.getType().apply(this, question); } outAPreCondRuntimeErrorExpIR(node, question); }
/** * Called by the {@link APreCondRuntimeErrorExpIR} node from {@link APreCondRuntimeErrorExpIR#apply(IAnalysis)}. * @param node the calling {@link APreCondRuntimeErrorExpIR} node */ public void caseAPreCondRuntimeErrorExpIR(APreCondRuntimeErrorExpIR node) throws AnalysisException { _visitedNodes.add(node); inAPreCondRuntimeErrorExpIR(node); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { node.getType().apply(this); } outAPreCondRuntimeErrorExpIR(node); }
/** * Creates a deep clone of this {@link APreCondRuntimeErrorExpIR} 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 APreCondRuntimeErrorExpIR} node */ public APreCondRuntimeErrorExpIR clone(Map<INode,INode> oldToNewMap) { APreCondRuntimeErrorExpIR node = new APreCondRuntimeErrorExpIR( _sourceNode, _tag, _metaData, cloneNode(_type, oldToNewMap), _message ); oldToNewMap.put(this, node); return node; }
/** * Creates a new tree field only constructor {@code APreCondRuntimeErrorExpIR TAG=preCond} 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 message_ the {@link String} node for the {@code message} child of this {@link APreCondRuntimeErrorExpIR} node */ public APreCondRuntimeErrorExpIR(STypeIR type_, String message_) { super(null,null,null,type_); this.setMessage(message_); }
/** * Called by the {@link APreCondRuntimeErrorExpIR} node from {@link APreCondRuntimeErrorExpIR#apply(IAnalysis)}. * @param node the calling {@link APreCondRuntimeErrorExpIR} node */ public A caseAPreCondRuntimeErrorExpIR(APreCondRuntimeErrorExpIR node) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node); mergeReturns(retVal,inAPreCondRuntimeErrorExpIR(node)); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { mergeReturns(retVal,node.getType().apply(this)); } mergeReturns(retVal,outAPreCondRuntimeErrorExpIR(node)); return retVal; }
/** * Called by the {@link APreCondRuntimeErrorExpIR} node from {@link APreCondRuntimeErrorExpIR#apply(IAnalysis)}. * @param node the calling {@link APreCondRuntimeErrorExpIR} node */ public A caseAPreCondRuntimeErrorExpIR(APreCondRuntimeErrorExpIR node, Q question) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node, question); mergeReturns(retVal,inAPreCondRuntimeErrorExpIR(node, question)); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { mergeReturns(retVal,node.getType().apply(this, question)); } mergeReturns(retVal,outAPreCondRuntimeErrorExpIR(node, question)); return retVal; }