@java.lang.Override public <T> void visitCtVariableRead(final spoon.reflect.code.CtVariableRead<T> variableRead) { spoon.reflect.code.CtVariableRead other = ((spoon.reflect.code.CtVariableRead) (this.stack.peek())); enter(variableRead); biScan(spoon.reflect.path.CtRole.ANNOTATION, variableRead.getAnnotations(), other.getAnnotations()); biScan(spoon.reflect.path.CtRole.CAST, variableRead.getTypeCasts(), other.getTypeCasts()); biScan(spoon.reflect.path.CtRole.VARIABLE, variableRead.getVariable(), other.getVariable()); biScan(spoon.reflect.path.CtRole.COMMENT, variableRead.getComments(), other.getComments()); exit(variableRead); }
@Override public <T> void visitCtVariableRead(final CtVariableRead<T> variableRead) { enter(variableRead); scan(CtRole.ANNOTATION, variableRead.getAnnotations()); scan(CtRole.CAST, variableRead.getTypeCasts()); scan(CtRole.VARIABLE, variableRead.getVariable()); scan(CtRole.COMMENT, variableRead.getComments()); exit(variableRead); }
@java.lang.Override public <T> void visitCtVariableRead(final spoon.reflect.code.CtVariableRead<T> variableRead) { replaceInListIfExist(variableRead.getAnnotations(), new spoon.support.visitor.replace.ReplacementVisitor.CtElementAnnotationsReplaceListener(variableRead)); replaceInListIfExist(variableRead.getTypeCasts(), new spoon.support.visitor.replace.ReplacementVisitor.CtExpressionTypeCastsReplaceListener(variableRead)); replaceElementIfExist(variableRead.getVariable(), new spoon.support.visitor.replace.ReplacementVisitor.CtVariableAccessVariableReplaceListener(variableRead)); replaceInListIfExist(variableRead.getComments(), new spoon.support.visitor.replace.ReplacementVisitor.CtElementCommentsReplaceListener(variableRead)); }
@java.lang.Override public <T> void visitCtVariableRead(final spoon.reflect.code.CtVariableRead<T> variableRead) { spoon.reflect.code.CtVariableRead<T> aCtVariableRead = variableRead.getFactory().Core().createVariableRead(); this.builder.copy(variableRead, aCtVariableRead); aCtVariableRead.setAnnotations(this.cloneHelper.clone(variableRead.getAnnotations())); aCtVariableRead.setTypeCasts(this.cloneHelper.clone(variableRead.getTypeCasts())); aCtVariableRead.setVariable(this.cloneHelper.clone(variableRead.getVariable())); aCtVariableRead.setComments(this.cloneHelper.clone(variableRead.getComments())); this.cloneHelper.tailor(variableRead, aCtVariableRead); this.other = aCtVariableRead; }