1 package spoon.template; 2 3 import spoon.reflect.code.CtStatementList; 4 import spoon.reflect.declaration.CtSimpleType; 5 6 /** 7 * This interface defines a list of template parameters that is used to model a 8 * list of statements. 9 * 10 * @param <R> the type of the returned expression if the last statement is a 11 * return statement 12 */ 13 public interface TemplateParameterList<R> extends TemplateParameter<R> { 14 15 /** 16 * See {@link TemplateParameter#S()}. 17 */ 18 R S(); 19 20 /** 21 * See {@link TemplateParameter#getSubstitution(CtSimpleType)}. 22 */ 23 CtStatementList getSubstitution(CtSimpleType<?> targetType); 24 } 25