1 7 8 package javax.lang.model.util; 9 10 import java.util.List ; 11 import javax.lang.model.element.*; 12 import javax.lang.model.type.*; 13 14 27 public interface Types { 28 29 37 Element asElement(TypeMirror t); 38 39 56 boolean isSameType(TypeMirror t1, TypeMirror t2); 57 58 69 boolean isSubtype(TypeMirror t1, TypeMirror t2); 70 71 81 boolean isAssignable(TypeMirror t1, TypeMirror t2); 82 83 92 boolean contains(TypeMirror t1, TypeMirror t2); 93 94 104 boolean isSubsignature(ExecutableType m1, ExecutableType m2); 105 106 114 List <? extends TypeMirror> directSupertypes(TypeMirror t); 115 116 124 TypeMirror erasure(TypeMirror t); 125 126 134 TypeElement boxedClass(PrimitiveType p); 135 136 146 PrimitiveType unboxedType(TypeMirror t); 147 148 156 TypeMirror capture(TypeMirror t); 157 158 165 PrimitiveType getPrimitiveType(TypeKind kind); 166 167 172 NullType getNullType(); 173 174 186 NoType getNoType(TypeKind kind); 187 188 196 ArrayType getArrayType(TypeMirror componentType); 197 198 207 WildcardType getWildcardType(TypeMirror extendsBound, 208 TypeMirror superBound); 209 210 238 DeclaredType getDeclaredType(TypeElement typeElem, TypeMirror... typeArgs); 239 240 266 DeclaredType getDeclaredType(DeclaredType containing, 267 TypeElement typeElem, TypeMirror... typeArgs); 268 269 283 TypeMirror asMemberOf(DeclaredType containing, Element element); 284 } 285 | Popular Tags |