public <T> void visitCtLocalVariable(final spoon.reflect.code.CtLocalVariable<T> localVariable) { spoon.reflect.code.CtLocalVariable other = ((spoon.reflect.code.CtLocalVariable) (this.stack.peek())); enter(localVariable); biScan(spoon.reflect.path.CtRole.ANNOTATION, localVariable.getAnnotations(), other.getAnnotations()); biScan(spoon.reflect.path.CtRole.TYPE, localVariable.getType(), other.getType()); biScan(spoon.reflect.path.CtRole.DEFAULT_EXPRESSION, localVariable.getDefaultExpression(), other.getDefaultExpression()); biScan(spoon.reflect.path.CtRole.COMMENT, localVariable.getComments(), other.getComments()); exit(localVariable); }
public <T> void visitCtLocalVariable(final CtLocalVariable<T> localVariable) { enter(localVariable); scan(CtRole.ANNOTATION, localVariable.getAnnotations()); scan(CtRole.TYPE, localVariable.getType()); scan(CtRole.DEFAULT_EXPRESSION, localVariable.getDefaultExpression()); scan(CtRole.COMMENT, localVariable.getComments()); exit(localVariable); }
@java.lang.Override public <T> void visitCtLocalVariable(final spoon.reflect.code.CtLocalVariable<T> localVariable) { replaceInListIfExist(localVariable.getAnnotations(), new spoon.support.visitor.replace.ReplacementVisitor.CtElementAnnotationsReplaceListener(localVariable)); replaceElementIfExist(localVariable.getType(), new spoon.support.visitor.replace.ReplacementVisitor.CtTypedElementTypeReplaceListener(localVariable)); replaceElementIfExist(localVariable.getDefaultExpression(), new spoon.support.visitor.replace.ReplacementVisitor.CtVariableDefaultExpressionReplaceListener(localVariable)); replaceInListIfExist(localVariable.getComments(), new spoon.support.visitor.replace.ReplacementVisitor.CtElementCommentsReplaceListener(localVariable)); }
public <T> void visitCtLocalVariable(final spoon.reflect.code.CtLocalVariable<T> localVariable) { spoon.reflect.code.CtLocalVariable<T> aCtLocalVariable = localVariable.getFactory().Core().createLocalVariable(); this.builder.copy(localVariable, aCtLocalVariable); aCtLocalVariable.setAnnotations(this.cloneHelper.clone(localVariable.getAnnotations())); aCtLocalVariable.setType(this.cloneHelper.clone(localVariable.getType())); aCtLocalVariable.setDefaultExpression(this.cloneHelper.clone(localVariable.getDefaultExpression())); aCtLocalVariable.setComments(this.cloneHelper.clone(localVariable.getComments())); this.cloneHelper.tailor(localVariable, aCtLocalVariable); this.other = aCtLocalVariable; }
public <T> void visitCtLocalVariable(CtLocalVariable<T> localVariable) { enter(localVariable); scan(localVariable.getAnnotations()); scan(localVariable.getType()); scan(localVariable.getDefaultExpression()); exit(localVariable); }