/** * Returns a deep clone of this {@link AExitStmIR} node. * @return a deep clone of this {@link AExitStmIR} node */ public AExitStmIR clone() { return new AExitStmIR( _sourceNode, _tag, _metaData, cloneNode(_exp) ); }
/** * Creates a new complete constructor {@code AExitStmIR} 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 AExitStmIR} node */ public AExitStmIR(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 AExitStmIR) { return toString().equals(o.toString()); } return false; }
@Override public SStmIR caseAExitStm(AExitStm node, IRInfo question) throws AnalysisException { SExpIR expCg = node.getExpression() != null ? node.getExpression().apply(question.getExpVisitor(), question) : null; AExitStmIR exitCg = new AExitStmIR(); exitCg.setExp(expCg); return exitCg; }
/** * Called by the {@link AExitStmIR} node from {@link AExitStmIR#apply(IAnalysis)}. * @param node the calling {@link AExitStmIR} node */ public void caseAExitStmIR(AExitStmIR node) throws AnalysisException { _visitedNodes.add(node); inAExitStmIR(node); if(node.getExp() != null && !_visitedNodes.contains(node.getExp())) { node.getExp().apply(this); } outAExitStmIR(node); }
/** * Called by the {@link AExitStmIR} node from {@link AExitStmIR#apply(IIsaAnalysis)}. * @param node the calling {@link AExitStmIR} node */ public void caseAExitStmIR(AExitStmIR node) throws AnalysisException { _visitedNodes.add(node); inAExitStmIR(node); if(node.getExp() != null && !_visitedNodes.contains(node.getExp())) { node.getExp().apply(this); } outAExitStmIR(node); }
/** * Called by the {@link AExitStmIR} node from {@link AExitStmIR#apply(IAnalysis)}. * @param node the calling {@link AExitStmIR} node */ public void caseAExitStmIR(AExitStmIR node, Q question) throws AnalysisException { _visitedNodes.add(node); inAExitStmIR(node, question); if(node.getExp() != null && !_visitedNodes.contains(node.getExp())) { node.getExp().apply(this, question); } outAExitStmIR(node, question); }
/** * Creates a deep clone of this {@link AExitStmIR} 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 AExitStmIR} node */ public AExitStmIR clone(Map<INode,INode> oldToNewMap) { AExitStmIR node = new AExitStmIR( _sourceNode, _tag, _metaData, cloneNode(_exp, oldToNewMap) ); oldToNewMap.put(this, node); return node; }
/** * Creates a new tree field only constructor {@code AExitStmIR TAG=exit} 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 AExitStmIR} node */ public AExitStmIR(SExpIR exp_) { super(null,null,null); this.setExp(exp_); }
/** * Called by the {@link AExitStmIR} node from {@link AExitStmIR#apply(IAnalysis)}. * @param node the calling {@link AExitStmIR} node */ public A caseAExitStmIR(AExitStmIR node, Q question) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node, question); mergeReturns(retVal,inAExitStmIR(node, question)); if(node.getExp() != null && !_visitedNodes.contains(node.getExp())) { mergeReturns(retVal,node.getExp().apply(this, question)); } mergeReturns(retVal,outAExitStmIR(node, question)); return retVal; }
/** * Called by the {@link AExitStmIR} node from {@link AExitStmIR#apply(IAnalysis)}. * @param node the calling {@link AExitStmIR} node */ public A caseAExitStmIR(AExitStmIR node) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node); mergeReturns(retVal,inAExitStmIR(node)); if(node.getExp() != null && !_visitedNodes.contains(node.getExp())) { mergeReturns(retVal,node.getExp().apply(this)); } mergeReturns(retVal,outAExitStmIR(node)); return retVal; }