1 package spoon.reflect.reference; 2 3 import java.util.Collection ; 4 import java.util.Set ; 5 6 import spoon.reflect.declaration.CtSimpleType; 7 8 12 public interface CtTypeReference<T> extends CtReference, 13 CtGenericElementReference, CtModifiableReference { 14 15 18 public static final String nulltype = "<nulltype>"; 19 20 26 Class <T> getActualClass(); 27 28 CtSimpleType<T> getDeclaration(); 29 30 36 CtTypeReference<?> getDeclaringType(); 37 38 43 CtPackageReference getPackage(); 44 45 50 String getQualifiedName(); 51 52 56 boolean isAssignableFrom(CtTypeReference<?> type); 57 58 62 boolean isPrimitif(); 63 64 68 CtTypeReference<?> box(); 69 70 74 CtTypeReference<?> unbox(); 75 76 79 boolean isSubtypeOf(CtTypeReference<?> type); 80 81 85 void setDeclaringType(CtTypeReference type); 86 87 90 void setPackage(CtPackageReference pack); 91 92 95 Collection <CtFieldReference> getDeclaredFields(); 96 97 101 Collection <CtFieldReference> getAllFields(); 102 103 106 Collection <CtExecutableReference> getDeclaredExecutables(); 107 108 112 Collection <CtExecutableReference> getAllExecutables(); 113 114 117 CtTypeReference<?> getSuperclass(); 118 119 122 Set <CtTypeReference<?>> getSuperInterfaces(); 123 124 } 125 | Popular Tags |