/** * Returns a deep clone of this {@link AInvCheckStmIR} node. * @return a deep clone of this {@link AInvCheckStmIR} node */ public AInvCheckStmIR clone() { return new AInvCheckStmIR( _sourceNode, _tag, _metaData, cloneNode(_subject) ); }
/** * Creates a new tree field only constructor {@code AInvCheckStmIR TAG=invCheck} 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 subject_ the {@link SExpIR} node for the {@code subject} child of this {@link AInvCheckStmIR} node */ public AInvCheckStmIR(SExpIR subject_) { super(null,null,null); this.setSubject(subject_); }
/** * Essentially this.toString().equals(o.toString()). **/ @Override public boolean equals(Object o) { if (o != null && o instanceof AInvCheckStmIR) { return toString().equals(o.toString()); } return false; }
/** * Called by the {@link AInvCheckStmIR} node from {@link AInvCheckStmIR#apply(IAnalysis)}. * @param node the calling {@link AInvCheckStmIR} node */ public void caseAInvCheckStmIR(AInvCheckStmIR node) throws AnalysisException { _visitedNodes.add(node); inAInvCheckStmIR(node); if(node.getSubject() != null && !_visitedNodes.contains(node.getSubject())) { node.getSubject().apply(this); } outAInvCheckStmIR(node); }
/** * Called by the {@link AInvCheckStmIR} node from {@link AInvCheckStmIR#apply(IIsaAnalysis)}. * @param node the calling {@link AInvCheckStmIR} node */ public void caseAInvCheckStmIR(AInvCheckStmIR node) throws AnalysisException { _visitedNodes.add(node); inAInvCheckStmIR(node); if(node.getSubject() != null && !_visitedNodes.contains(node.getSubject())) { node.getSubject().apply(this); } outAInvCheckStmIR(node); }
/** * Called by the {@link AInvCheckStmIR} node from {@link AInvCheckStmIR#apply(IAnalysis)}. * @param node the calling {@link AInvCheckStmIR} node */ public void caseAInvCheckStmIR(AInvCheckStmIR node, Q question) throws AnalysisException { _visitedNodes.add(node); inAInvCheckStmIR(node, question); if(node.getSubject() != null && !_visitedNodes.contains(node.getSubject())) { node.getSubject().apply(this, question); } outAInvCheckStmIR(node, question); }
/** * Creates a deep clone of this {@link AInvCheckStmIR} 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 AInvCheckStmIR} node */ public AInvCheckStmIR clone(Map<INode,INode> oldToNewMap) { AInvCheckStmIR node = new AInvCheckStmIR( _sourceNode, _tag, _metaData, cloneNode(_subject, oldToNewMap) ); oldToNewMap.put(this, node); return node; }
/** * Creates a new complete constructor {@code AInvCheckStmIR} 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 subject_ the {@link SExpIR} node for the {@code subject} child of this {@link AInvCheckStmIR} node */ public AInvCheckStmIR(SourceNode sourceNode_, Object tag_, List<? extends ClonableString> metaData_, SExpIR subject_) { super(sourceNode_,tag_,metaData_); this.setSubject(subject_); }
/** * Called by the {@link AInvCheckStmIR} node from {@link AInvCheckStmIR#apply(IAnalysis)}. * @param node the calling {@link AInvCheckStmIR} node */ public A caseAInvCheckStmIR(AInvCheckStmIR node, Q question) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node, question); mergeReturns(retVal,inAInvCheckStmIR(node, question)); if(node.getSubject() != null && !_visitedNodes.contains(node.getSubject())) { mergeReturns(retVal,node.getSubject().apply(this, question)); } mergeReturns(retVal,outAInvCheckStmIR(node, question)); return retVal; }
/** * Called by the {@link AInvCheckStmIR} node from {@link AInvCheckStmIR#apply(IAnalysis)}. * @param node the calling {@link AInvCheckStmIR} node */ public A caseAInvCheckStmIR(AInvCheckStmIR node) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node); mergeReturns(retVal,inAInvCheckStmIR(node)); if(node.getSubject() != null && !_visitedNodes.contains(node.getSubject())) { mergeReturns(retVal,node.getSubject().apply(this)); } mergeReturns(retVal,outAInvCheckStmIR(node)); return retVal; }