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