/** * Called by the {@link AStringPattern} node from {@link AStringPattern#apply(IAnalysis)}. * @param node the calling {@link AStringPattern} node */ public void caseAStringPattern(AStringPattern node) throws AnalysisException { _visitedNodes.add(node); inAStringPattern(node); { List<PDefinition> copy = new ArrayList<PDefinition>(node.getDefinitions()); for( PDefinition e : copy) { if(!_visitedNodes.contains(e)) { e.apply(this); } } } if(node.getValue() != null ) { node.getValue().apply(this); } outAStringPattern(node); }
/** * Called by the {@link AStringPattern} node from {@link AStringPattern#apply(IAnalysis)}. * @param node the calling {@link AStringPattern} node */ public void caseAStringPattern(AStringPattern node, Q question) throws AnalysisException { _visitedNodes.add(node); inAStringPattern(node, question); { List<PDefinition> copy = new ArrayList<PDefinition>(node.getDefinitions()); for( PDefinition e : copy) { if(!_visitedNodes.contains(e)) { e.apply(this, question); } } } if(node.getValue() != null ) { node.getValue().apply(this, question); } outAStringPattern(node, question); }
/** * Called by the {@link AStringPattern} node from {@link AStringPattern#apply(IPOFAnalysis)}. * @param node the calling {@link AStringPattern} node */ public void caseAStringPattern(AStringPattern node) throws AnalysisException { _visitedNodes.add(node); inAStringPattern(node); { List<PDefinition> copy = new ArrayList<PDefinition>(node.getDefinitions()); for( PDefinition e : copy) { if(!_visitedNodes.contains(e)) { e.apply(this); } } } if(node.getValue() != null ) { node.getValue().apply(this); } outAStringPattern(node); }
/** * Called by the {@link AStringPattern} node from {@link AStringPattern#apply(IAnalysis)}. * @param node the calling {@link AStringPattern} node */ public A caseAStringPattern(AStringPattern node) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node); mergeReturns(retVal,inAStringPattern(node)); { List<PDefinition> copy = new ArrayList<PDefinition>(node.getDefinitions()); for( PDefinition e : copy) { if(!_visitedNodes.contains(e)) { mergeReturns(retVal,e.apply(this)); } } } if(node.getValue() != null ) { mergeReturns(retVal,node.getValue().apply(this)); } mergeReturns(retVal,outAStringPattern(node)); return retVal; }
/** * Called by the {@link AStringPattern} node from {@link AStringPattern#apply(IAnalysis)}. * @param node the calling {@link AStringPattern} node */ public A caseAStringPattern(AStringPattern node, Q question) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node, question); mergeReturns(retVal,inAStringPattern(node, question)); { List<PDefinition> copy = new ArrayList<PDefinition>(node.getDefinitions()); for( PDefinition e : copy) { if(!_visitedNodes.contains(e)) { mergeReturns(retVal,e.apply(this, question)); } } } if(node.getValue() != null ) { mergeReturns(retVal,node.getValue().apply(this, question)); } mergeReturns(retVal,outAStringPattern(node, question)); return retVal; }