@java.lang.Override public <T> void visitCtTypeAccess(final spoon.reflect.code.CtTypeAccess<T> typeAccess) { spoon.reflect.code.CtTypeAccess other = ((spoon.reflect.code.CtTypeAccess) (this.stack.peek())); enter(typeAccess); biScan(spoon.reflect.path.CtRole.ANNOTATION, typeAccess.getAnnotations(), other.getAnnotations()); biScan(spoon.reflect.path.CtRole.CAST, typeAccess.getTypeCasts(), other.getTypeCasts()); biScan(spoon.reflect.path.CtRole.ACCESSED_TYPE, typeAccess.getAccessedType(), other.getAccessedType()); biScan(spoon.reflect.path.CtRole.COMMENT, typeAccess.getComments(), other.getComments()); exit(typeAccess); }
@Override public <T> void visitCtTypeAccess(final CtTypeAccess<T> typeAccess) { enter(typeAccess); scan(CtRole.ANNOTATION, typeAccess.getAnnotations()); scan(CtRole.CAST, typeAccess.getTypeCasts()); scan(CtRole.ACCESSED_TYPE, typeAccess.getAccessedType()); scan(CtRole.COMMENT, typeAccess.getComments()); exit(typeAccess); }
@java.lang.Override public <T> void visitCtTypeAccess(final spoon.reflect.code.CtTypeAccess<T> typeAccess) { replaceInListIfExist(typeAccess.getAnnotations(), new spoon.support.visitor.replace.ReplacementVisitor.CtElementAnnotationsReplaceListener(typeAccess)); replaceInListIfExist(typeAccess.getTypeCasts(), new spoon.support.visitor.replace.ReplacementVisitor.CtExpressionTypeCastsReplaceListener(typeAccess)); replaceElementIfExist(typeAccess.getAccessedType(), new spoon.support.visitor.replace.ReplacementVisitor.CtTypeAccessAccessedTypeReplaceListener(typeAccess)); replaceInListIfExist(typeAccess.getComments(), new spoon.support.visitor.replace.ReplacementVisitor.CtElementCommentsReplaceListener(typeAccess)); }
@java.lang.Override public <T> void visitCtTypeAccess(final spoon.reflect.code.CtTypeAccess<T> typeAccess) { spoon.reflect.code.CtTypeAccess<T> aCtTypeAccess = typeAccess.getFactory().Core().createTypeAccess(); this.builder.copy(typeAccess, aCtTypeAccess); aCtTypeAccess.setAnnotations(this.cloneHelper.clone(typeAccess.getAnnotations())); aCtTypeAccess.setTypeCasts(this.cloneHelper.clone(typeAccess.getTypeCasts())); aCtTypeAccess.setAccessedType(this.cloneHelper.clone(typeAccess.getAccessedType())); aCtTypeAccess.setComments(this.cloneHelper.clone(typeAccess.getComments())); this.cloneHelper.tailor(typeAccess, aCtTypeAccess); this.other = aCtTypeAccess; }