/** * Called by the {@link ADurationStm} node from {@link ADurationStm#apply(IPOFAnalysis)}. * @param node the calling {@link ADurationStm} node */ public void caseADurationStm(ADurationStm node) throws AnalysisException { _visitedNodes.add(node); inADurationStm(node); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { node.getType().apply(this); } if(node.getDuration() != null && !_visitedNodes.contains(node.getDuration())) { node.getDuration().apply(this); } if(node.getStatement() != null && !_visitedNodes.contains(node.getStatement())) { node.getStatement().apply(this); } outADurationStm(node); }
/** * Called by the {@link ADurationStm} node from {@link ADurationStm#apply(IAnalysis)}. * @param node the calling {@link ADurationStm} node */ public void caseADurationStm(ADurationStm node, Q question) throws AnalysisException { _visitedNodes.add(node); inADurationStm(node, question); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { node.getType().apply(this, question); } if(node.getDuration() != null && !_visitedNodes.contains(node.getDuration())) { node.getDuration().apply(this, question); } if(node.getStatement() != null && !_visitedNodes.contains(node.getStatement())) { node.getStatement().apply(this, question); } outADurationStm(node, question); }
/** * Called by the {@link ADurationStm} node from {@link ADurationStm#apply(IAnalysis)}. * @param node the calling {@link ADurationStm} node */ public void caseADurationStm(ADurationStm node) throws AnalysisException { _visitedNodes.add(node); inADurationStm(node); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { node.getType().apply(this); } if(node.getDuration() != null && !_visitedNodes.contains(node.getDuration())) { node.getDuration().apply(this); } if(node.getStatement() != null && !_visitedNodes.contains(node.getStatement())) { node.getStatement().apply(this); } outADurationStm(node); }
/** * Called by the {@link ADurationStm} node from {@link ADurationStm#apply(IAnalysis)}. * @param node the calling {@link ADurationStm} node */ public A caseADurationStm(ADurationStm node, Q question) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node, question); mergeReturns(retVal,inADurationStm(node, question)); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { mergeReturns(retVal,node.getType().apply(this, question)); } if(node.getDuration() != null && !_visitedNodes.contains(node.getDuration())) { mergeReturns(retVal,node.getDuration().apply(this, question)); } if(node.getStatement() != null && !_visitedNodes.contains(node.getStatement())) { mergeReturns(retVal,node.getStatement().apply(this, question)); } mergeReturns(retVal,outADurationStm(node, question)); return retVal; }
/** * Called by the {@link ADurationStm} node from {@link ADurationStm#apply(IAnalysis)}. * @param node the calling {@link ADurationStm} node */ public A caseADurationStm(ADurationStm node) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node); mergeReturns(retVal,inADurationStm(node)); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { mergeReturns(retVal,node.getType().apply(this)); } if(node.getDuration() != null && !_visitedNodes.contains(node.getDuration())) { mergeReturns(retVal,node.getDuration().apply(this)); } if(node.getStatement() != null && !_visitedNodes.contains(node.getStatement())) { mergeReturns(retVal,node.getStatement().apply(this)); } mergeReturns(retVal,outADurationStm(node)); return retVal; }