/** * Called by the {@link ACharacterPattern} node from {@link ACharacterPattern#apply(IPOFAnalysis)}. * @param node the calling {@link ACharacterPattern} node */ public void caseACharacterPattern(ACharacterPattern node) throws AnalysisException { _visitedNodes.add(node); inACharacterPattern(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); } outACharacterPattern(node); }
/** * Called by the {@link ACharacterPattern} node from {@link ACharacterPattern#apply(IAnalysis)}. * @param node the calling {@link ACharacterPattern} node */ public void caseACharacterPattern(ACharacterPattern node) throws AnalysisException { _visitedNodes.add(node); inACharacterPattern(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); } outACharacterPattern(node); }
/** * Called by the {@link ACharacterPattern} node from {@link ACharacterPattern#apply(IAnalysis)}. * @param node the calling {@link ACharacterPattern} node */ public void caseACharacterPattern(ACharacterPattern node, Q question) throws AnalysisException { _visitedNodes.add(node); inACharacterPattern(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); } outACharacterPattern(node, question); }
/** * Called by the {@link ACharacterPattern} node from {@link ACharacterPattern#apply(IAnalysis)}. * @param node the calling {@link ACharacterPattern} node */ public A caseACharacterPattern(ACharacterPattern node, Q question) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node, question); mergeReturns(retVal,inACharacterPattern(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,outACharacterPattern(node, question)); return retVal; }
/** * Called by the {@link ACharacterPattern} node from {@link ACharacterPattern#apply(IAnalysis)}. * @param node the calling {@link ACharacterPattern} node */ public A caseACharacterPattern(ACharacterPattern node) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node); mergeReturns(retVal,inACharacterPattern(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,outACharacterPattern(node)); return retVal; }