1 package spoon.reflect.declaration;2 3 import java.util.List ;4 5 import spoon.reflect.reference.CtTypeReference;6 7 /**8 * This abstract element defines a declaration that accepts formal type9 * parameters (aka generics).10 */11 public interface CtGenericElement extends CtElement {12 /**13 * Returns the formal type parameters of this generic element.14 */15 List <CtTypeReference<?>> getFormalTypeParameters();16 17 /**18 * Sets the type parameters of this generic element.19 */20 void setFormalTypeParameters(List <CtTypeReference<?>> formalTypeParameters);21 }22