/** * Returns a deep clone of this {@link AMapRangeUnaryExpIR} node. * @return a deep clone of this {@link AMapRangeUnaryExpIR} node */ public AMapRangeUnaryExpIR clone() { return new AMapRangeUnaryExpIR( _sourceNode, _tag, _metaData, cloneNode(_type), cloneNode(_exp) ); }
/** * Essentially this.toString().equals(o.toString()). **/ @Override public boolean equals(Object o) { if (o != null && o instanceof AMapRangeUnaryExpIR) { return toString().equals(o.toString()); } return false; }
/** * Called by the {@link AMapRangeUnaryExpIR} node from {@link AMapRangeUnaryExpIR#apply(IIsaAnalysis)}. * @param node the calling {@link AMapRangeUnaryExpIR} node */ public void caseAMapRangeUnaryExpIR(AMapRangeUnaryExpIR node) throws AnalysisException { _visitedNodes.add(node); inAMapRangeUnaryExpIR(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); } outAMapRangeUnaryExpIR(node); }
@Override public SExpIR caseAMapRangeUnaryExp(AMapRangeUnaryExp node, IRInfo question) throws AnalysisException { return question.getExpAssistant().handleUnaryExp(node, new AMapRangeUnaryExpIR(), question); }
/** * Called by the {@link AMapRangeUnaryExpIR} node from {@link AMapRangeUnaryExpIR#apply(IAnalysis)}. * @param node the calling {@link AMapRangeUnaryExpIR} node */ public void caseAMapRangeUnaryExpIR(AMapRangeUnaryExpIR node) throws AnalysisException { _visitedNodes.add(node); inAMapRangeUnaryExpIR(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); } outAMapRangeUnaryExpIR(node); }
/** * Called by the {@link AMapRangeUnaryExpIR} node from {@link AMapRangeUnaryExpIR#apply(IAnalysis)}. * @param node the calling {@link AMapRangeUnaryExpIR} node */ public void caseAMapRangeUnaryExpIR(AMapRangeUnaryExpIR node, Q question) throws AnalysisException { _visitedNodes.add(node); inAMapRangeUnaryExpIR(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); } outAMapRangeUnaryExpIR(node, question); }
/** * Creates a deep clone of this {@link AMapRangeUnaryExpIR} 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 AMapRangeUnaryExpIR} node */ public AMapRangeUnaryExpIR clone(Map<INode,INode> oldToNewMap) { AMapRangeUnaryExpIR node = new AMapRangeUnaryExpIR( _sourceNode, _tag, _metaData, cloneNode(_type, oldToNewMap), cloneNode(_exp, oldToNewMap) ); oldToNewMap.put(this, node); return node; }
/** * Called by the {@link AMapRangeUnaryExpIR} node from {@link AMapRangeUnaryExpIR#apply(IAnalysis)}. * @param node the calling {@link AMapRangeUnaryExpIR} node */ public A caseAMapRangeUnaryExpIR(AMapRangeUnaryExpIR node, Q question) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node, question); mergeReturns(retVal,inAMapRangeUnaryExpIR(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,outAMapRangeUnaryExpIR(node, question)); return retVal; }
/** * Called by the {@link AMapRangeUnaryExpIR} node from {@link AMapRangeUnaryExpIR#apply(IAnalysis)}. * @param node the calling {@link AMapRangeUnaryExpIR} node */ public A caseAMapRangeUnaryExpIR(AMapRangeUnaryExpIR node) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node); mergeReturns(retVal,inAMapRangeUnaryExpIR(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,outAMapRangeUnaryExpIR(node)); return retVal; }