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