public static AOperationValueImport newAOperationValueImport( ILexNameToken defname, PType type, ILexNameToken renamed) { AOperationValueImport result = new AOperationValueImport(); result.setLocation(defname.getLocation()); result.setName(defname); result.setRenamed(renamed); result.setImportType(type); return result; }
/** * Returns a deep clone of this {@link AOperationValueImport} node. * @return a deep clone of this {@link AOperationValueImport} node */ public AOperationValueImport clone() { return new AOperationValueImport( _location, cloneNode(_name), cloneNode(_renamed), _from, _importType ); }
/** * Called by the {@link AOperationValueImport} node from {@link AOperationValueImport#apply(IPOFAnalysis)}. * @param node the calling {@link AOperationValueImport} node */ public void caseAOperationValueImport(AOperationValueImport node) throws AnalysisException { _visitedNodes.add(node); inAOperationValueImport(node); if(node.getName() != null ) { node.getName().apply(this); } if(node.getRenamed() != null ) { node.getRenamed().apply(this); } if(node.getFrom() != null && !_visitedNodes.contains(node.getFrom())) { node.getFrom().apply(this); } if(node.getImportType() != null && !_visitedNodes.contains(node.getImportType())) { node.getImportType().apply(this); } outAOperationValueImport(node); }
/** * Called by the {@link AOperationValueImport} node from {@link AOperationValueImport#apply(IAnalysis)}. * @param node the calling {@link AOperationValueImport} node */ public void caseAOperationValueImport(AOperationValueImport node) throws AnalysisException { _visitedNodes.add(node); inAOperationValueImport(node); if(node.getName() != null ) { node.getName().apply(this); } if(node.getRenamed() != null ) { node.getRenamed().apply(this); } if(node.getFrom() != null && !_visitedNodes.contains(node.getFrom())) { node.getFrom().apply(this); } if(node.getImportType() != null && !_visitedNodes.contains(node.getImportType())) { node.getImportType().apply(this); } outAOperationValueImport(node); }
/** * Called by the {@link AOperationValueImport} node from {@link AOperationValueImport#apply(IAnalysis)}. * @param node the calling {@link AOperationValueImport} node */ public void caseAOperationValueImport(AOperationValueImport node, Q question) throws AnalysisException { _visitedNodes.add(node); inAOperationValueImport(node, question); if(node.getName() != null ) { node.getName().apply(this, question); } if(node.getRenamed() != null ) { node.getRenamed().apply(this, question); } if(node.getFrom() != null && !_visitedNodes.contains(node.getFrom())) { node.getFrom().apply(this, question); } if(node.getImportType() != null && !_visitedNodes.contains(node.getImportType())) { node.getImportType().apply(this, question); } outAOperationValueImport(node, question); }
/** * Creates a deep clone of this {@link AOperationValueImport} 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 AOperationValueImport} node */ public AOperationValueImport clone(Map<INode,INode> oldToNewMap) { AOperationValueImport node = new AOperationValueImport( _location, cloneNode(_name, oldToNewMap), cloneNode(_renamed, oldToNewMap), _from, _importType ); oldToNewMap.put(this, node); return node; }
/** * Called by the {@link AOperationValueImport} node from {@link AOperationValueImport#apply(IAnalysis)}. * @param node the calling {@link AOperationValueImport} node */ public A caseAOperationValueImport(AOperationValueImport node, Q question) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node, question); mergeReturns(retVal,inAOperationValueImport(node, question)); if(node.getName() != null ) { mergeReturns(retVal,node.getName().apply(this, question)); } if(node.getRenamed() != null ) { mergeReturns(retVal,node.getRenamed().apply(this, question)); } if(node.getFrom() != null && !_visitedNodes.contains(node.getFrom())) { mergeReturns(retVal,node.getFrom().apply(this, question)); } if(node.getImportType() != null && !_visitedNodes.contains(node.getImportType())) { mergeReturns(retVal,node.getImportType().apply(this, question)); } mergeReturns(retVal,outAOperationValueImport(node, question)); return retVal; }
/** * Called by the {@link AOperationValueImport} node from {@link AOperationValueImport#apply(IAnalysis)}. * @param node the calling {@link AOperationValueImport} node */ public A caseAOperationValueImport(AOperationValueImport node) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node); mergeReturns(retVal,inAOperationValueImport(node)); if(node.getName() != null ) { mergeReturns(retVal,node.getName().apply(this)); } if(node.getRenamed() != null ) { mergeReturns(retVal,node.getRenamed().apply(this)); } if(node.getFrom() != null && !_visitedNodes.contains(node.getFrom())) { mergeReturns(retVal,node.getFrom().apply(this)); } if(node.getImportType() != null && !_visitedNodes.contains(node.getImportType())) { mergeReturns(retVal,node.getImportType().apply(this)); } mergeReturns(retVal,outAOperationValueImport(node)); return retVal; }