1 package spoon.support.reflect.declaration; 2 3 import java.util.ArrayList ; 4 import java.util.List ; 5 6 import spoon.reflect.declaration.CtTypeParameter; 7 import spoon.reflect.reference.CtTypeReference; 8 import spoon.reflect.visitor.CtVisitor; 9 10 15 public class CtTypeParameterImpl extends CtElementImpl implements 16 CtTypeParameter { 17 private static final long serialVersionUID = 1L; 18 List <CtTypeReference> bounds = new ArrayList <CtTypeReference>(); 19 20 String name; 21 22 public CtTypeParameterImpl() { 23 super(); 24 } 25 26 public void accept(CtVisitor v) { 27 v.visitCtTypeParameter(this); 28 } 29 30 public List <CtTypeReference> getBounds() { 31 return bounds; 32 } 33 34 public String getName() { 35 return name; 36 } 37 38 public void setBounds(List <CtTypeReference> bounds) { 39 this.bounds = bounds; 40 } 41 42 public void setName(String name) { 43 this.name = name; 44 } 45 46 } 47 | Popular Tags |