/** * Returns a deep clone of this {@link AFromModuleImportsIR} node. * @return a deep clone of this {@link AFromModuleImportsIR} node */ public AFromModuleImportsIR clone() { return new AFromModuleImportsIR( _sourceNode, _tag, _metaData, _name, cloneListList(_signatures) ); }
/** * Creates a new complete constructor {@code AFromModuleImportsIR} node with the given nodes as children. * @deprecated This method should not be used, use AstFactory instead. * The basic child nodes are removed from their previous parents. * @param name_ the {@link String} node for the {@code name} child of this {@link AFromModuleImportsIR} node * @param signatures_ the {@link NodeListList} node for the {@code signatures} child of this {@link AFromModuleImportsIR} node */ public AFromModuleImportsIR(SourceNode sourceNode_, Object tag_, List<? extends ClonableString> metaData_, String name_, Collection<? extends List<SImportIR>> signatures_) { super(sourceNode_,tag_,metaData_); this.setName(name_); this.setSignatures(signatures_); }
/** * Essentially this.toString().equals(o.toString()). **/ @Override public boolean equals(Object o) { if (o != null && o instanceof AFromModuleImportsIR) { return toString().equals(o.toString()); } return false; }
AFromModuleImportsIR fromImportCg = new AFromModuleImportsIR(); fromImportCg.setName(name); fromImportCg.getSignatures().add(sigCg);
/** * Called by the {@link AFromModuleImportsIR} node from {@link AFromModuleImportsIR#apply(IIsaAnalysis)}. * @param node the calling {@link AFromModuleImportsIR} node */ public void caseAFromModuleImportsIR(AFromModuleImportsIR node) throws AnalysisException { _visitedNodes.add(node); inAFromModuleImportsIR(node); { List<List<SImportIR>> copy = new ArrayList<List<SImportIR>>(node.getSignatures()); for( List<SImportIR> list : copy) { for( SImportIR e : list) { if(!_visitedNodes.contains(e)) { e.apply(this); } } } } outAFromModuleImportsIR(node); }
/** * Called by the {@link AModuleImportsIR} node from {@link AModuleImportsIR#apply(IIsaAnalysis)}. * @param node the calling {@link AModuleImportsIR} node */ public void caseAModuleImportsIR(AModuleImportsIR node) throws AnalysisException { _visitedNodes.add(node); inAModuleImportsIR(node); { List<AFromModuleImportsIR> copy = new ArrayList<AFromModuleImportsIR>(node.getImports()); for( AFromModuleImportsIR e : copy) { if(!_visitedNodes.contains(e)) { e.apply(this); } } } outAModuleImportsIR(node); }
/** * Called by the {@link AFromModuleImportsIR} node from {@link AFromModuleImportsIR#apply(IAnalysis)}. * @param node the calling {@link AFromModuleImportsIR} node */ public void caseAFromModuleImportsIR(AFromModuleImportsIR node) throws AnalysisException { _visitedNodes.add(node); inAFromModuleImportsIR(node); { List<List<SImportIR>> copy = new ArrayList<List<SImportIR>>(node.getSignatures()); for( List<SImportIR> list : copy) { for( SImportIR e : list) { if(!_visitedNodes.contains(e)) { e.apply(this); } } } } outAFromModuleImportsIR(node); }
/** * Called by the {@link AModuleImportsIR} node from {@link AModuleImportsIR#apply(IAnalysis)}. * @param node the calling {@link AModuleImportsIR} node */ public void caseAModuleImportsIR(AModuleImportsIR node, Q question) throws AnalysisException { _visitedNodes.add(node); inAModuleImportsIR(node, question); { List<AFromModuleImportsIR> copy = new ArrayList<AFromModuleImportsIR>(node.getImports()); for( AFromModuleImportsIR e : copy) { if(!_visitedNodes.contains(e)) { e.apply(this, question); } } } outAModuleImportsIR(node, question); }
/** * Called by the {@link AFromModuleImportsIR} node from {@link AFromModuleImportsIR#apply(IAnalysis)}. * @param node the calling {@link AFromModuleImportsIR} node */ public void caseAFromModuleImportsIR(AFromModuleImportsIR node, Q question) throws AnalysisException { _visitedNodes.add(node); inAFromModuleImportsIR(node, question); { List<List<SImportIR>> copy = new ArrayList<List<SImportIR>>(node.getSignatures()); for( List<SImportIR> list : copy) { for( SImportIR e : list) { if(!_visitedNodes.contains(e)) { e.apply(this, question); } } } } outAFromModuleImportsIR(node, question); }
/** * Called by the {@link AModuleImportsIR} node from {@link AModuleImportsIR#apply(IAnalysis)}. * @param node the calling {@link AModuleImportsIR} node */ public void caseAModuleImportsIR(AModuleImportsIR node) throws AnalysisException { _visitedNodes.add(node); inAModuleImportsIR(node); { List<AFromModuleImportsIR> copy = new ArrayList<AFromModuleImportsIR>(node.getImports()); for( AFromModuleImportsIR e : copy) { if(!_visitedNodes.contains(e)) { e.apply(this); } } } outAModuleImportsIR(node); }
/** * Creates a new tree field only constructor {@code AFromModuleImportsIR TAG=fromModule} node with the given nodes as children. * @deprecated This method should not be used, use AstFactory instead. * The basic child nodes are removed from their previous parents. * @param name_ the {@link String} node for the {@code name} child of this {@link AFromModuleImportsIR} node * @param signatures_ the {@link NodeListList} node for the {@code signatures} child of this {@link AFromModuleImportsIR} node */ public AFromModuleImportsIR(String name_, Collection<? extends List<SImportIR>> signatures_) { super(null,null,null); this.setName(name_); this.setSignatures(signatures_); }
/** * Creates a deep clone of this {@link AFromModuleImportsIR} 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 AFromModuleImportsIR} node */ public AFromModuleImportsIR clone(Map<INode,INode> oldToNewMap) { AFromModuleImportsIR node = new AFromModuleImportsIR( _sourceNode, _tag, _metaData, _name, cloneListList(_signatures, oldToNewMap) ); oldToNewMap.put(this, node); return node; }
/** * Called by the {@link AFromModuleImportsIR} node from {@link AFromModuleImportsIR#apply(IAnalysis)}. * @param node the calling {@link AFromModuleImportsIR} node */ public A caseAFromModuleImportsIR(AFromModuleImportsIR node, Q question) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node, question); mergeReturns(retVal,inAFromModuleImportsIR(node, question)); { List<List<SImportIR>> copy = new ArrayList<List<SImportIR>>(node.getSignatures()); for( List<SImportIR> list : copy) { for( SImportIR e : list) { if(!_visitedNodes.contains(e)) { mergeReturns(retVal,e.apply(this, question)); } } } } mergeReturns(retVal,outAFromModuleImportsIR(node, question)); return retVal; }
/** * Called by the {@link AModuleImportsIR} node from {@link AModuleImportsIR#apply(IAnalysis)}. * @param node the calling {@link AModuleImportsIR} node */ public A caseAModuleImportsIR(AModuleImportsIR node, Q question) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node, question); mergeReturns(retVal,inAModuleImportsIR(node, question)); { List<AFromModuleImportsIR> copy = new ArrayList<AFromModuleImportsIR>(node.getImports()); for( AFromModuleImportsIR e : copy) { if(!_visitedNodes.contains(e)) { mergeReturns(retVal,e.apply(this, question)); } } } mergeReturns(retVal,outAModuleImportsIR(node, question)); return retVal; }
/** * Called by the {@link AFromModuleImportsIR} node from {@link AFromModuleImportsIR#apply(IAnalysis)}. * @param node the calling {@link AFromModuleImportsIR} node */ public A caseAFromModuleImportsIR(AFromModuleImportsIR node) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node); mergeReturns(retVal,inAFromModuleImportsIR(node)); { List<List<SImportIR>> copy = new ArrayList<List<SImportIR>>(node.getSignatures()); for( List<SImportIR> list : copy) { for( SImportIR e : list) { if(!_visitedNodes.contains(e)) { mergeReturns(retVal,e.apply(this)); } } } } mergeReturns(retVal,outAFromModuleImportsIR(node)); return retVal; }
/** * Called by the {@link AModuleImportsIR} node from {@link AModuleImportsIR#apply(IAnalysis)}. * @param node the calling {@link AModuleImportsIR} node */ public A caseAModuleImportsIR(AModuleImportsIR node) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node); mergeReturns(retVal,inAModuleImportsIR(node)); { List<AFromModuleImportsIR> copy = new ArrayList<AFromModuleImportsIR>(node.getImports()); for( AFromModuleImportsIR e : copy) { if(!_visitedNodes.contains(e)) { mergeReturns(retVal,e.apply(this)); } } } mergeReturns(retVal,outAModuleImportsIR(node)); return retVal; }
for (List<SImportIR> sig : fromImports.getSignatures())