public interface TypeUtils
| Modifier and Type | Field and Description |
|---|---|
static List<String> |
SIMPLE_TYPES |
static boolean isSimpleType(Element element)
static boolean isSimpleType(TypeMirror type)
static boolean isSameType(TypeMirror type, CharSequence typeName)
static boolean isSameType(TypeMirror typeMirror, Type type)
static boolean isArrayType(TypeMirror type)
static boolean isArrayType(Element element)
static boolean isEnumType(TypeMirror type)
static boolean isEnumType(Element element)
static boolean isClassType(TypeMirror type)
static boolean isClassType(Element element)
static boolean isPrimitiveType(TypeMirror type)
static boolean isPrimitiveType(Element element)
static boolean isInterfaceType(TypeMirror type)
static boolean isInterfaceType(Element element)
static boolean isAnnotationType(TypeMirror type)
static boolean isAnnotationType(Element element)
static Set<TypeElement> getHierarchicalTypes(TypeElement type)
static Set<DeclaredType> getHierarchicalTypes(TypeMirror type)
static Set<DeclaredType> getHierarchicalTypes(TypeMirror type, Predicate<DeclaredType>... typeFilters)
static Set<DeclaredType> getHierarchicalTypes(TypeMirror type, Type... excludedTypes)
static Set<DeclaredType> getHierarchicalTypes(TypeMirror type, CharSequence... excludedTypeNames)
static Set<TypeElement> getHierarchicalTypes(TypeElement type, boolean includeSelf, boolean includeSuperTypes, boolean includeSuperInterfaces, Predicate<TypeElement>... typeFilters)
static Set<DeclaredType> getHierarchicalTypes(TypeMirror type, boolean includeSelf, boolean includeSuperTypes, boolean includeSuperInterfaces)
static List<TypeMirror> getInterfaces(TypeElement type, Predicate<TypeMirror>... interfaceFilters)
static List<TypeMirror> getInterfaces(TypeMirror type, Predicate<TypeMirror>... interfaceFilters)
static Set<TypeElement> getAllInterfaces(TypeElement type, Predicate<TypeElement>... interfaceFilters)
static Set<? extends TypeMirror> getAllInterfaces(TypeMirror type, Predicate<TypeMirror>... interfaceFilters)
static TypeMirror findInterface(TypeMirror type, CharSequence interfaceClassName)
static TypeElement getType(ProcessingEnvironment processingEnv, Type type)
static TypeElement getType(ProcessingEnvironment processingEnv, TypeMirror type)
static TypeElement getType(ProcessingEnvironment processingEnv, CharSequence typeName)
static TypeElement getSuperType(TypeElement type)
static DeclaredType getSuperType(TypeMirror type)
static Set<TypeElement> getAllSuperTypes(TypeElement type)
static Set<TypeElement> getAllSuperTypes(TypeElement type, Predicate<TypeElement>... typeFilters)
static Set<DeclaredType> getAllSuperTypes(TypeMirror type)
static Set<DeclaredType> getAllSuperTypes(TypeMirror type, Predicate<DeclaredType>... typeFilters)
static boolean isDeclaredType(Element element)
static boolean isDeclaredType(TypeMirror type)
static DeclaredType ofDeclaredType(Element element)
static DeclaredType ofDeclaredType(TypeMirror type)
static boolean isTypeElement(Element element)
static boolean isTypeElement(TypeMirror type)
static TypeElement ofTypeElement(Element element)
static TypeElement ofTypeElement(TypeMirror type)
static Set<DeclaredType> ofDeclaredTypes(Iterable<? extends Element> elements)
static Set<TypeElement> ofTypeElements(Iterable<? extends TypeMirror> types)
static List<DeclaredType> listDeclaredTypes(Iterable<? extends Element> elements)
static List<TypeElement> listTypeElements(Iterable<? extends TypeMirror> types)
static URL getResource(ProcessingEnvironment processingEnv, Element type)
static URL getResource(ProcessingEnvironment processingEnv, TypeMirror type)
static URL getResource(ProcessingEnvironment processingEnv, CharSequence type)
static String getResourceName(CharSequence type)
static String toString(TypeMirror type)
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.