/** * Sets the {@code _async} child of this {@link AAccessSpecifierAccessSpecifier} node. * @param value the new {@code _async} child of this {@link AAccessSpecifierAccessSpecifier} node */ public void setAsync(TAsync value) { if (this._async != null) { this._async.parent(null); } if (value != null) { if (value.parent() != null) { value.parent().removeChild(value); } value.parent(this); } this._async = value; }
/** * Creates a new complete constructor {@code TAsync} 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 text_ the {@link String} node for the {@code text} child of this {@link TAsync} node */ public TAsync(String text_) { super(); this.setText(text_); }
/** * Called by the {@link AAccessSpecifierAccessSpecifier} node from {@link AAccessSpecifierAccessSpecifier#apply(IPOFAnalysis)}. * @param node the calling {@link AAccessSpecifierAccessSpecifier} node */ public void caseAAccessSpecifierAccessSpecifier(AAccessSpecifierAccessSpecifier node) throws AnalysisException { _visitedNodes.add(node); inAAccessSpecifierAccessSpecifier(node); if(node.getAccess() != null && !_visitedNodes.contains(node.getAccess())) { node.getAccess().apply(this); } if(node.getStatic() != null && !_visitedNodes.contains(node.getStatic())) { node.getStatic().apply(this); } if(node.getAsync() != null && !_visitedNodes.contains(node.getAsync())) { node.getAsync().apply(this); } outAAccessSpecifierAccessSpecifier(node); }
/** * Essentially this.toString().equals(o.toString()). **/ @Override public boolean equals(Object o) { if (o != null && o instanceof TAsync) { return toString().equals(o.toString()); } return false; }
public static AAccessSpecifierAccessSpecifier newAAccessSpecifierAccessSpecifier( PAccess access, boolean isStatic, boolean isAsync, boolean isPure) { AAccessSpecifierAccessSpecifier result = new AAccessSpecifierAccessSpecifier(); result.setAccess(access); result.setStatic(isStatic ? new TStatic() : null); result.setAsync(isAsync ? new TAsync() : null); result.setPure(isPure); return result; }
/** * Called by the {@link AAccessSpecifierAccessSpecifier} node from {@link AAccessSpecifierAccessSpecifier#apply(IAnalysis)}. * @param node the calling {@link AAccessSpecifierAccessSpecifier} node */ public void caseAAccessSpecifierAccessSpecifier(AAccessSpecifierAccessSpecifier node, Q question) throws AnalysisException { _visitedNodes.add(node); inAAccessSpecifierAccessSpecifier(node, question); if(node.getAccess() != null && !_visitedNodes.contains(node.getAccess())) { node.getAccess().apply(this, question); } if(node.getStatic() != null && !_visitedNodes.contains(node.getStatic())) { node.getStatic().apply(this, question); } if(node.getAsync() != null && !_visitedNodes.contains(node.getAsync())) { node.getAsync().apply(this, question); } outAAccessSpecifierAccessSpecifier(node, question); }
/** * Called by the {@link AAccessSpecifierAccessSpecifier} node from {@link AAccessSpecifierAccessSpecifier#apply(IAnalysis)}. * @param node the calling {@link AAccessSpecifierAccessSpecifier} node */ public void caseAAccessSpecifierAccessSpecifier(AAccessSpecifierAccessSpecifier node) throws AnalysisException { _visitedNodes.add(node); inAAccessSpecifierAccessSpecifier(node); if(node.getAccess() != null && !_visitedNodes.contains(node.getAccess())) { node.getAccess().apply(this); } if(node.getStatic() != null && !_visitedNodes.contains(node.getStatic())) { node.getStatic().apply(this); } if(node.getAsync() != null && !_visitedNodes.contains(node.getAsync())) { node.getAsync().apply(this); } outAAccessSpecifierAccessSpecifier(node); }
/** * Creates a deep clone of this {@link TAsync} 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 TAsync} node */ public TAsync clone(Map<INode,INode> oldToNewMap) { TAsync token = new TAsync( getText()); oldToNewMap.put(this, token); return token; }
/** * Called by the {@link AAccessSpecifierAccessSpecifier} node from {@link AAccessSpecifierAccessSpecifier#apply(IAnalysis)}. * @param node the calling {@link AAccessSpecifierAccessSpecifier} node */ public A caseAAccessSpecifierAccessSpecifier(AAccessSpecifierAccessSpecifier node) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node); mergeReturns(retVal,inAAccessSpecifierAccessSpecifier(node)); if(node.getAccess() != null && !_visitedNodes.contains(node.getAccess())) { mergeReturns(retVal,node.getAccess().apply(this)); } if(node.getStatic() != null && !_visitedNodes.contains(node.getStatic())) { mergeReturns(retVal,node.getStatic().apply(this)); } if(node.getAsync() != null && !_visitedNodes.contains(node.getAsync())) { mergeReturns(retVal,node.getAsync().apply(this)); } mergeReturns(retVal,outAAccessSpecifierAccessSpecifier(node)); return retVal; }
/** * Called by the {@link AAccessSpecifierAccessSpecifier} node from {@link AAccessSpecifierAccessSpecifier#apply(IAnalysis)}. * @param node the calling {@link AAccessSpecifierAccessSpecifier} node */ public A caseAAccessSpecifierAccessSpecifier(AAccessSpecifierAccessSpecifier node, Q question) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node, question); mergeReturns(retVal,inAAccessSpecifierAccessSpecifier(node, question)); if(node.getAccess() != null && !_visitedNodes.contains(node.getAccess())) { mergeReturns(retVal,node.getAccess().apply(this, question)); } if(node.getStatic() != null && !_visitedNodes.contains(node.getStatic())) { mergeReturns(retVal,node.getStatic().apply(this, question)); } if(node.getAsync() != null && !_visitedNodes.contains(node.getAsync())) { mergeReturns(retVal,node.getAsync().apply(this, question)); } mergeReturns(retVal,outAAccessSpecifierAccessSpecifier(node, question)); return retVal; }