public void visitCtThrow(final spoon.reflect.code.CtThrow throwStatement) { spoon.reflect.code.CtThrow other = ((spoon.reflect.code.CtThrow) (this.stack.peek())); enter(throwStatement); biScan(spoon.reflect.path.CtRole.ANNOTATION, throwStatement.getAnnotations(), other.getAnnotations()); biScan(spoon.reflect.path.CtRole.EXPRESSION, throwStatement.getThrownExpression(), other.getThrownExpression()); biScan(spoon.reflect.path.CtRole.COMMENT, throwStatement.getComments(), other.getComments()); exit(throwStatement); }
public void visitCtThrow(final CtThrow throwStatement) { enter(throwStatement); scan(CtRole.ANNOTATION, throwStatement.getAnnotations()); scan(CtRole.EXPRESSION, throwStatement.getThrownExpression()); scan(CtRole.COMMENT, throwStatement.getComments()); exit(throwStatement); }
@java.lang.Override public void visitCtThrow(final spoon.reflect.code.CtThrow throwStatement) { replaceInListIfExist(throwStatement.getAnnotations(), new spoon.support.visitor.replace.ReplacementVisitor.CtElementAnnotationsReplaceListener(throwStatement)); replaceElementIfExist(throwStatement.getThrownExpression(), new spoon.support.visitor.replace.ReplacementVisitor.CtThrowThrownExpressionReplaceListener(throwStatement)); replaceInListIfExist(throwStatement.getComments(), new spoon.support.visitor.replace.ReplacementVisitor.CtElementCommentsReplaceListener(throwStatement)); }
public void visitCtThrow(final spoon.reflect.code.CtThrow throwStatement) { spoon.reflect.code.CtThrow aCtThrow = throwStatement.getFactory().Core().createThrow(); this.builder.copy(throwStatement, aCtThrow); aCtThrow.setAnnotations(this.cloneHelper.clone(throwStatement.getAnnotations())); aCtThrow.setThrownExpression(this.cloneHelper.clone(throwStatement.getThrownExpression())); aCtThrow.setComments(this.cloneHelper.clone(throwStatement.getComments())); this.cloneHelper.tailor(throwStatement, aCtThrow); this.other = aCtThrow; }