org_aspectj_tools_ajc_ASTVisitorTest_java
org.aspectj.org.eclipse.jdt.core.dom.AjASTConverter
// ajh02: this could do with being seperate methods // rather than a huge if.elseif..elseif.. thing org.aspectj.org.eclipse.jdt.core.dom.PointcutDesignator pointcutDesi = null; if (pointcut instanceof org.aspectj.weaver.patterns.ReferencePointcut) { pointcutDesi = new org.aspectj.org.eclipse.jdt.core.dom.ReferencePointcut(this.ast); final SimpleName pointcutName = new SimpleName(this.ast); int start = pointcut.getStart(); int end = retrieveIdentifierEndPosition(start, pointcut.getEnd()); pointcutName.setSourceRange(start, end - start + 1); pointcutName.internalSetIdentifier(((org.aspectj.weaver.patterns.ReferencePointcut) pointcut).name); ((org.aspectj.org.eclipse.jdt.core.dom.ReferencePointcut) pointcutDesi).setName(pointcutName); } else if (pointcut instanceof org.aspectj.weaver.patterns.NotPointcut) { pointcutDesi = new org.aspectj.org.eclipse.jdt.core.dom.NotPointcut(this.ast); final org.aspectj.org.eclipse.jdt.core.dom.PointcutDesignator body = convert(((org.aspectj.weaver.patterns.NotPointcut) pointcut) .getNegatedPointcut()); ((org.aspectj.org.eclipse.jdt.core.dom.NotPointcut) pointcutDesi).setBody(body); } else if (pointcut instanceof org.aspectj.weaver.patterns.PerObject) { pointcutDesi = new org.aspectj.org.eclipse.jdt.core.dom.PerObject(this.ast); final org.aspectj.org.eclipse.jdt.core.dom.PointcutDesignator body = convert(((org.aspectj.weaver.patterns.PerObject) pointcut) .getEntry()); ((org.aspectj.org.eclipse.jdt.core.dom.PerObject) pointcutDesi).setBody(body); } else if (pointcut instanceof org.aspectj.weaver.patterns.PerCflow) { pointcutDesi = new org.aspectj.org.eclipse.jdt.core.dom.PerCflow(this.ast); final org.aspectj.org.eclipse.jdt.core.dom.PointcutDesignator body = convert(((org.aspectj.weaver.patterns.PerCflow) pointcut) .getEntry()); ((org.aspectj.org.eclipse.jdt.core.dom.PerCflow) pointcutDesi).setBody(body); } else if (pointcut instanceof org.aspectj.weaver.patterns.PerTypeWithin) { pointcutDesi = new org.aspectj.org.eclipse.jdt.core.dom.PerTypeWithin(this.ast); // should set its type pattern here } else if (pointcut instanceof org.aspectj.weaver.patterns.CflowPointcut) { pointcutDesi = new org.aspectj.org.eclipse.jdt.core.dom.CflowPointcut(this.ast); final org.aspectj.org.eclipse.jdt.core.dom.PointcutDesignator body = convert(((org.aspectj.weaver.patterns.CflowPointcut) pointcut) .getEntry()); ((org.aspectj.org.eclipse.jdt.core.dom.CflowPointcut) pointcutDesi).setBody(body); ((org.aspectj.org.eclipse.jdt.core.dom.CflowPointcut) pointcutDesi) .setIsCflowBelow(((org.aspectj.weaver.patterns.CflowPointcut) pointcut).isCflowBelow()); } else if (pointcut instanceof org.aspectj.weaver.patterns.AndPointcut) { pointcutDesi = new org.aspectj.org.eclipse.jdt.core.dom.AndPointcut(this.ast); final org.aspectj.org.eclipse.jdt.core.dom.PointcutDesignator left = convert(((org.aspectj.weaver.patterns.AndPointcut) pointcut) .getLeft()); final org.aspectj.org.eclipse.jdt.core.dom.PointcutDesignator right = convert(((org.aspectj.weaver.patterns.AndPointcut) pointcut) .getRight()); ((org.aspectj.org.eclipse.jdt.core.dom.AndPointcut) pointcutDesi).setLeft(left); ((org.aspectj.org.eclipse.jdt.core.dom.AndPointcut) pointcutDesi).setRight(right); } else if (pointcut instanceof org.aspectj.weaver.patterns.OrPointcut) { pointcutDesi = new org.aspectj.org.eclipse.jdt.core.dom.OrPointcut(this.ast); final org.aspectj.org.eclipse.jdt.core.dom.PointcutDesignator left = convert(((org.aspectj.weaver.patterns.OrPointcut) pointcut) .getLeft()); final org.aspectj.org.eclipse.jdt.core.dom.PointcutDesignator right = convert(((org.aspectj.weaver.patterns.OrPointcut) pointcut) .getRight()); ((org.aspectj.org.eclipse.jdt.core.dom.OrPointcut) pointcutDesi).setLeft(left); ((org.aspectj.org.eclipse.jdt.core.dom.OrPointcut) pointcutDesi).setRight(right); } else { // ajh02: default stub until I make all the concrete PointcutDesignator types pointcutDesi = new org.aspectj.org.eclipse.jdt.core.dom.DefaultPointcut(this.ast, pointcut.toString()); } pointcutDesi.setSourceRange(pointcut.getStart(), (pointcut.getEnd() - pointcut.getStart() + 1)); return pointcutDesi;

 -> java.lang.Object.toString(): java.lang.String -> java.lang.String.lastIndexOf(int): int -> java.lang.StringBuilder.append(java.lang.String): java.lang.StringBuilder -> java.lang.StringBuilder.append(java.lang.String): java.lang.StringBuilder -> java.lang.reflect.Modifier.toString(int): java.lang.String -> java.lang.StringBuilder.append(java.lang.String): java.lang.StringBuilder -> java.lang.StringBuilder.append(char): java.lang.StringBuilder -> java.lang.Object.toString(): java.lang.String -> java.lang.StringBuilder.append(java.lang.String): java.lang.StringBuilder -> java.lang.StringBuilder.append(char): java.lang.StringBuilder -> java.lang.StringBuilder.toString(): java.lang.String -> java.lang.StringBuilder.append(java.lang.String): java.lang.StringBuilder -> java.lang.StringBuilder.append(char): java.lang.StringBuilder -> java.lang.StringBuilder.append(java.lang.String): java.lang.StringBuilder -> java.lang.StringBuilder.append(java.lang.String): java.lang.StringBuilder -> java.lang.StringBuilder.append(java.lang.String): java.lang.StringBuilder -> java.lang.StringBuilder.toString(): java.lang.String -> java.lang.StringBuilder.append(java.lang.String): java.lang.StringBuilder -> java.lang.StringBuilder.toString(): java.lang.String -> java.lang.StringBuilder.append(java.lang.String): java.lang.StringBuilder -> java.lang.StringBuilder.append(java.lang.String): java.lang.StringBuilder -> java.lang.StringBuilder.toString(): java.lang.String