/** * Returns a deep clone of this {@link ACharBasicTypeWrappersTypeIR} node. * @return a deep clone of this {@link ACharBasicTypeWrappersTypeIR} node */ public ACharBasicTypeWrappersTypeIR clone() { return new ACharBasicTypeWrappersTypeIR( _sourceNode, _tag, _metaData, _optional, cloneNode(_namedInvType) ); }
/** * Called by the {@link ACharBasicTypeWrappersTypeIR} node from {@link ACharBasicTypeWrappersTypeIR#apply(IAnalysis)}. * @param node the calling {@link ACharBasicTypeWrappersTypeIR} node */ public void caseACharBasicTypeWrappersTypeIR(ACharBasicTypeWrappersTypeIR node) throws AnalysisException { _visitedNodes.add(node); inACharBasicTypeWrappersTypeIR(node); if(node.getNamedInvType() != null && !_visitedNodes.contains(node.getNamedInvType())) { node.getNamedInvType().apply(this); } outACharBasicTypeWrappersTypeIR(node); }
/** * Essentially this.toString().equals(o.toString()). **/ @Override public boolean equals(Object o) { if (o != null && o instanceof ACharBasicTypeWrappersTypeIR) { return toString().equals(o.toString()); } return false; }
} else if (basicType instanceof ACharBasicTypeIR) return new ACharBasicTypeWrappersTypeIR(); } else if (basicType instanceof ABoolBasicTypeIR)
/** * Called by the {@link ACharBasicTypeWrappersTypeIR} node from {@link ACharBasicTypeWrappersTypeIR#apply(IAnalysis)}. * @param node the calling {@link ACharBasicTypeWrappersTypeIR} node */ public void caseACharBasicTypeWrappersTypeIR(ACharBasicTypeWrappersTypeIR node, Q question) throws AnalysisException { _visitedNodes.add(node); inACharBasicTypeWrappersTypeIR(node, question); if(node.getNamedInvType() != null && !_visitedNodes.contains(node.getNamedInvType())) { node.getNamedInvType().apply(this, question); } outACharBasicTypeWrappersTypeIR(node, question); }
/** * Creates a deep clone of this {@link ACharBasicTypeWrappersTypeIR} 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 ACharBasicTypeWrappersTypeIR} node */ public ACharBasicTypeWrappersTypeIR clone(Map<INode,INode> oldToNewMap) { ACharBasicTypeWrappersTypeIR node = new ACharBasicTypeWrappersTypeIR( _sourceNode, _tag, _metaData, _optional, cloneNode(_namedInvType, oldToNewMap) ); oldToNewMap.put(this, node); return node; }
/** * Called by the {@link ACharBasicTypeWrappersTypeIR} node from {@link ACharBasicTypeWrappersTypeIR#apply(IIsaAnalysis)}. * @param node the calling {@link ACharBasicTypeWrappersTypeIR} node */ public void caseACharBasicTypeWrappersTypeIR(ACharBasicTypeWrappersTypeIR node) throws AnalysisException { _visitedNodes.add(node); inACharBasicTypeWrappersTypeIR(node); if(node.getNamedInvType() != null && !_visitedNodes.contains(node.getNamedInvType())) { node.getNamedInvType().apply(this); } outACharBasicTypeWrappersTypeIR(node); }
/** * Called by the {@link ACharBasicTypeWrappersTypeIR} node from {@link ACharBasicTypeWrappersTypeIR#apply(IAnalysis)}. * @param node the calling {@link ACharBasicTypeWrappersTypeIR} node */ public A caseACharBasicTypeWrappersTypeIR(ACharBasicTypeWrappersTypeIR node, Q question) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node, question); mergeReturns(retVal,inACharBasicTypeWrappersTypeIR(node, question)); if(node.getNamedInvType() != null && !_visitedNodes.contains(node.getNamedInvType())) { mergeReturns(retVal,node.getNamedInvType().apply(this, question)); } mergeReturns(retVal,outACharBasicTypeWrappersTypeIR(node, question)); return retVal; }
/** * Called by the {@link ACharBasicTypeWrappersTypeIR} node from {@link ACharBasicTypeWrappersTypeIR#apply(IAnalysis)}. * @param node the calling {@link ACharBasicTypeWrappersTypeIR} node */ public A caseACharBasicTypeWrappersTypeIR(ACharBasicTypeWrappersTypeIR node) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node); mergeReturns(retVal,inACharBasicTypeWrappersTypeIR(node)); if(node.getNamedInvType() != null && !_visitedNodes.contains(node.getNamedInvType())) { mergeReturns(retVal,node.getNamedInvType().apply(this)); } mergeReturns(retVal,outACharBasicTypeWrappersTypeIR(node)); return retVal; }