1 package spoon.support.reflect.code; 2 3 import spoon.reflect.code.CtCodeElement; 4 import spoon.reflect.code.CtExpression; 5 import spoon.reflect.code.CtReturn; 6 import spoon.reflect.declaration.CtSimpleType; 7 import spoon.reflect.visitor.CtVisitor; 8 9 public class CtReturnImpl<R> extends CtStatementImpl implements CtReturn<R> { 10 private static final long serialVersionUID = 1L; 11 CtExpression<R> returnedExpression; 12 13 public CtExpression<R> getReturnedExpression() { 14 return returnedExpression; 15 } 16 17 public void setReturnedExpression(CtExpression<R> expression) { 18 this.returnedExpression=expression; 19 } 20 21 public void accept(CtVisitor visitor) { 22 visitor.visitCtReturn(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 |