/** * Called by the {@link AExplicitVarExpIR} node from {@link AExplicitVarExpIR#apply(IAnalysis)}. * @param node the calling {@link AExplicitVarExpIR} node */ public void caseAExplicitVarExpIR(AExplicitVarExpIR node) throws AnalysisException { _visitedNodes.add(node); inAExplicitVarExpIR(node); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { node.getType().apply(this); } if(node.getClassType() != null && !_visitedNodes.contains(node.getClassType())) { node.getClassType().apply(this); } outAExplicitVarExpIR(node); }
/** * Called by the {@link AExplicitVarExpIR} node from {@link AExplicitVarExpIR#apply(IAnalysis)}. * @param node the calling {@link AExplicitVarExpIR} node */ public void caseAExplicitVarExpIR(AExplicitVarExpIR node, Q question) throws AnalysisException { _visitedNodes.add(node); inAExplicitVarExpIR(node, question); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { node.getType().apply(this, question); } if(node.getClassType() != null && !_visitedNodes.contains(node.getClassType())) { node.getClassType().apply(this, question); } outAExplicitVarExpIR(node, question); }
/** * Called by the {@link AExplicitVarExpIR} node from {@link AExplicitVarExpIR#apply(IIsaAnalysis)}. * @param node the calling {@link AExplicitVarExpIR} node */ public void caseAExplicitVarExpIR(AExplicitVarExpIR node) throws AnalysisException { _visitedNodes.add(node); inAExplicitVarExpIR(node); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { node.getType().apply(this); } if(node.getClassType() != null && !_visitedNodes.contains(node.getClassType())) { node.getClassType().apply(this); } outAExplicitVarExpIR(node); }
/** * Called by the {@link AExplicitVarExpIR} node from {@link AExplicitVarExpIR#apply(IAnalysis)}. * @param node the calling {@link AExplicitVarExpIR} node */ public A caseAExplicitVarExpIR(AExplicitVarExpIR node, Q question) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node, question); mergeReturns(retVal,inAExplicitVarExpIR(node, question)); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { mergeReturns(retVal,node.getType().apply(this, question)); } if(node.getClassType() != null && !_visitedNodes.contains(node.getClassType())) { mergeReturns(retVal,node.getClassType().apply(this, question)); } mergeReturns(retVal,outAExplicitVarExpIR(node, question)); return retVal; }
/** * Called by the {@link AExplicitVarExpIR} node from {@link AExplicitVarExpIR#apply(IAnalysis)}. * @param node the calling {@link AExplicitVarExpIR} node */ public A caseAExplicitVarExpIR(AExplicitVarExpIR node) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node); mergeReturns(retVal,inAExplicitVarExpIR(node)); if(node.getType() != null && !_visitedNodes.contains(node.getType())) { mergeReturns(retVal,node.getType().apply(this)); } if(node.getClassType() != null && !_visitedNodes.contains(node.getClassType())) { mergeReturns(retVal,node.getClassType().apply(this)); } mergeReturns(retVal,outAExplicitVarExpIR(node)); return retVal; }
public AApplyExpIR consUtilCopyCall() { ATemplateTypeIR copyType = new ATemplateTypeIR(); copyType.setName("T"); AApplyExpIR copyCall = consUtilCall(copyType, COPY); SExpIR member = copyCall.getRoot(); if (member instanceof AExplicitVarExpIR && ((AExplicitVarExpIR) member).getType() instanceof AMethodTypeIR) { AMethodTypeIR methodType = (AMethodTypeIR) member.getType(); methodType.getParams().add(member.getType().clone()); } else { log.error("Expected type of call expression to be a method type at this point. Got: " + copyCall.getType()); } return copyCall; }