/** * Returns a deep clone of this {@link AThrowStmIR} node. * @return a deep clone of this {@link AThrowStmIR} node */ public AThrowStmIR clone() { return new AThrowStmIR( _sourceNode, _tag, _metaData, cloneNode(_exp) ); }
/** * Creates a new complete constructor {@code AThrowStmIR} 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 exp_ the {@link SExpIR} node for the {@code exp} child of this {@link AThrowStmIR} node */ public AThrowStmIR(SourceNode sourceNode_, Object tag_, List<? extends ClonableString> metaData_, SExpIR exp_) { super(sourceNode_,tag_,metaData_); this.setExp(exp_); }
/** * Essentially this.toString().equals(o.toString()). **/ @Override public boolean equals(Object o) { if (o != null && o instanceof AThrowStmIR) { return toString().equals(o.toString()); } return false; }
/** * Called by the {@link AThrowStmIR} node from {@link AThrowStmIR#apply(IAnalysis)}. * @param node the calling {@link AThrowStmIR} node */ public void caseAThrowStmIR(AThrowStmIR node, Q question) throws AnalysisException { _visitedNodes.add(node); inAThrowStmIR(node, question); if(node.getExp() != null && !_visitedNodes.contains(node.getExp())) { node.getExp().apply(this, question); } outAThrowStmIR(node, question); }
/** * Called by the {@link AThrowStmIR} node from {@link AThrowStmIR#apply(IAnalysis)}. * @param node the calling {@link AThrowStmIR} node */ public void caseAThrowStmIR(AThrowStmIR node) throws AnalysisException { _visitedNodes.add(node); inAThrowStmIR(node); if(node.getExp() != null && !_visitedNodes.contains(node.getExp())) { node.getExp().apply(this); } outAThrowStmIR(node); }
/** * Called by the {@link AThrowStmIR} node from {@link AThrowStmIR#apply(IIsaAnalysis)}. * @param node the calling {@link AThrowStmIR} node */ public void caseAThrowStmIR(AThrowStmIR node) throws AnalysisException { _visitedNodes.add(node); inAThrowStmIR(node); if(node.getExp() != null && !_visitedNodes.contains(node.getExp())) { node.getExp().apply(this); } outAThrowStmIR(node); }
/** * Creates a deep clone of this {@link AThrowStmIR} 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 AThrowStmIR} node */ public AThrowStmIR clone(Map<INode,INode> oldToNewMap) { AThrowStmIR node = new AThrowStmIR( _sourceNode, _tag, _metaData, cloneNode(_exp, oldToNewMap) ); oldToNewMap.put(this, node); return node; }
/** * Creates a new tree field only constructor {@code AThrowStmIR TAG=throw} 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 exp_ the {@link SExpIR} node for the {@code exp} child of this {@link AThrowStmIR} node */ public AThrowStmIR(SExpIR exp_) { super(null,null,null); this.setExp(exp_); }
/** * Called by the {@link AThrowStmIR} node from {@link AThrowStmIR#apply(IAnalysis)}. * @param node the calling {@link AThrowStmIR} node */ public A caseAThrowStmIR(AThrowStmIR node) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node); mergeReturns(retVal,inAThrowStmIR(node)); if(node.getExp() != null && !_visitedNodes.contains(node.getExp())) { mergeReturns(retVal,node.getExp().apply(this)); } mergeReturns(retVal,outAThrowStmIR(node)); return retVal; }
/** * Called by the {@link AThrowStmIR} node from {@link AThrowStmIR#apply(IAnalysis)}. * @param node the calling {@link AThrowStmIR} node */ public A caseAThrowStmIR(AThrowStmIR node, Q question) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node, question); mergeReturns(retVal,inAThrowStmIR(node, question)); if(node.getExp() != null && !_visitedNodes.contains(node.getExp())) { mergeReturns(retVal,node.getExp().apply(this, question)); } mergeReturns(retVal,outAThrowStmIR(node, question)); return retVal; }