/** * Called by the {@link APlusNumericBinaryExp} node from {@link APlusNumericBinaryExp#apply(IAnalysis)}. * @param node the calling {@link APlusNumericBinaryExp} node */ public void caseAPlusNumericBinaryExp(APlusNumericBinaryExp node) throws AnalysisException { _visitedNodes.add(node); inAPlusNumericBinaryExp(node); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { node.getType().apply(this); } if(node.getLeft() != null && !_visitedNodes.contains(node.getLeft())) { node.getLeft().apply(this); } if(node.getOp() != null ) { node.getOp().apply(this); } if(node.getRight() != null && !_visitedNodes.contains(node.getRight())) { node.getRight().apply(this); } outAPlusNumericBinaryExp(node); }
/** * Called by the {@link APlusNumericBinaryExp} node from {@link APlusNumericBinaryExp#apply(IAnalysis)}. * @param node the calling {@link APlusNumericBinaryExp} node */ public void caseAPlusNumericBinaryExp(APlusNumericBinaryExp node, Q question) throws AnalysisException { _visitedNodes.add(node); inAPlusNumericBinaryExp(node, question); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { node.getType().apply(this, question); } if(node.getLeft() != null && !_visitedNodes.contains(node.getLeft())) { node.getLeft().apply(this, question); } if(node.getOp() != null ) { node.getOp().apply(this, question); } if(node.getRight() != null && !_visitedNodes.contains(node.getRight())) { node.getRight().apply(this, question); } outAPlusNumericBinaryExp(node, question); }
/** * Called by the {@link APlusNumericBinaryExp} node from {@link APlusNumericBinaryExp#apply(IPOFAnalysis)}. * @param node the calling {@link APlusNumericBinaryExp} node */ public void caseAPlusNumericBinaryExp(APlusNumericBinaryExp node) throws AnalysisException { _visitedNodes.add(node); inAPlusNumericBinaryExp(node); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { node.getType().apply(this); } if(node.getLeft() != null && !_visitedNodes.contains(node.getLeft())) { node.getLeft().apply(this); } if(node.getOp() != null ) { node.getOp().apply(this); } if(node.getRight() != null && !_visitedNodes.contains(node.getRight())) { node.getRight().apply(this); } outAPlusNumericBinaryExp(node); }
/** * Called by the {@link APlusNumericBinaryExp} node from {@link APlusNumericBinaryExp#apply(IAnalysis)}. * @param node the calling {@link APlusNumericBinaryExp} node */ public A caseAPlusNumericBinaryExp(APlusNumericBinaryExp node) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node); mergeReturns(retVal,inAPlusNumericBinaryExp(node)); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { mergeReturns(retVal,node.getType().apply(this)); } if(node.getLeft() != null && !_visitedNodes.contains(node.getLeft())) { mergeReturns(retVal,node.getLeft().apply(this)); } if(node.getOp() != null ) { mergeReturns(retVal,node.getOp().apply(this)); } if(node.getRight() != null && !_visitedNodes.contains(node.getRight())) { mergeReturns(retVal,node.getRight().apply(this)); } mergeReturns(retVal,outAPlusNumericBinaryExp(node)); return retVal; }
/** * Called by the {@link APlusNumericBinaryExp} node from {@link APlusNumericBinaryExp#apply(IAnalysis)}. * @param node the calling {@link APlusNumericBinaryExp} node */ public A caseAPlusNumericBinaryExp(APlusNumericBinaryExp node, Q question) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node, question); mergeReturns(retVal,inAPlusNumericBinaryExp(node, question)); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { mergeReturns(retVal,node.getType().apply(this, question)); } if(node.getLeft() != null && !_visitedNodes.contains(node.getLeft())) { mergeReturns(retVal,node.getLeft().apply(this, question)); } if(node.getOp() != null ) { mergeReturns(retVal,node.getOp().apply(this, question)); } if(node.getRight() != null && !_visitedNodes.contains(node.getRight())) { mergeReturns(retVal,node.getRight().apply(this, question)); } mergeReturns(retVal,outAPlusNumericBinaryExp(node, question)); return retVal; }
return node.getType();