1 package spoon.support.reflect.code; 2 3 import spoon.reflect.code.CtCodeElement; 4 import spoon.reflect.code.CtExpression; 5 import spoon.reflect.code.CtThrow; 6 import spoon.reflect.declaration.CtSimpleType; 7 import spoon.reflect.visitor.CtVisitor; 8 9 public class CtThrowImpl extends CtStatementImpl implements CtThrow { 10 private static final long serialVersionUID = 1L; 11 CtExpression<? extends Throwable > throwExpression; 12 13 public CtExpression<? extends Throwable > getThrownExpression() { 14 return throwExpression; 15 } 16 17 public void setThrownExpression(CtExpression<? extends Throwable > expression) { 18 this.throwExpression=expression; 19 } 20 21 public void accept(CtVisitor visitor) { 22 visitor.visitCtThrow(this); 23 } 24 25 public Void S() { 26 return null; 27 } 28 29 public CtCodeElement getSubstitution(CtSimpleType targetType) { 30 return getFactory().Core().clone(this); 31 } 32 33 } 34 | Popular Tags |