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