All Methods Static Methods Concrete Methods
| Modifier and Type |
Method and Description |
static boolean |
areTypesCompatible(TypeMirror type1,
TypeMirror type2) |
static TypeMirror |
boxType(ProcessorContext context,
TypeMirror primitiveType) |
static boolean |
canThrowType(List<? extends TypeMirror> thrownTypes,
TypeMirror exceptionType) |
static boolean |
canThrowTypeExact(List<? extends TypeMirror> thrownTypes,
TypeMirror exceptionType) |
static TypeElement |
castTypeElement(TypeMirror mirror) |
static List<AnnotationMirror> |
collectAnnotations(AnnotationMirror markerAnnotation,
String elementName,
Element element,
DeclaredType annotationClass) |
static int |
compareByTypeHierarchy(TypeMirror t1,
Set<String> t1SuperSet,
TypeMirror t2,
Set<String> t2SuperSet) |
static int |
compareByTypeHierarchy(TypeMirror t1,
TypeMirror t2) |
static int |
compareMethod(ExecutableElement method1,
ExecutableElement method2) |
static int |
compareType(TypeMirror signature1,
TypeMirror signature2) |
static String |
createConstantName(String simpleName) |
static String |
createReferenceName(ExecutableElement method) |
static String |
defaultValue(TypeMirror mirror) |
static boolean |
elementEquals(Element element1,
Element element2) |
static TypeMirror |
eraseGenericTypes(TypeMirror type) |
static boolean |
executableEquals(ExecutableElement e1,
ExecutableElement e2) |
static TypeMirror |
fillInGenericWildcards(TypeMirror type) |
static List<ExecutableElement> |
findAllPublicMethods(DeclaredType type,
String methodName) |
static AnnotationMirror |
findAnnotationMirror(Element element,
Class<?> expectedAnnotationType) |
static AnnotationMirror |
findAnnotationMirror(Element element,
TypeMirror annotationType) |
static AnnotationMirror |
findAnnotationMirror(List<? extends AnnotationMirror> mirrors,
TypeMirror expectedAnnotationType) |
static ExecutableElement |
findExecutableElement(DeclaredType type,
String name) |
static ExecutableElement |
findExecutableElement(DeclaredType type,
String name,
int argumentCount) |
static ExecutableElement |
findMethod(Class<?> type,
String methodName) |
static ExecutableElement |
findMethod(DeclaredType type,
String methodName) |
static ExecutableElement |
findMethod(DeclaredType type,
String methodName,
int parameterCount) |
static Optional<TypeElement> |
findNearestEnclosingType(Element e) |
static PackageElement |
findPackageElement(Element e) |
static Optional<TypeElement> |
findParentEnclosingType(Element element) |
static Optional<TypeElement> |
findRootEnclosingType(Element element) |
static ExecutableElement |
findStaticMethod(TypeElement type,
String methodName) |
static VariableElement |
findVariableElement(DeclaredType type,
String name) |
static VariableElement |
findVariableElement(Element element,
String name) |
static String |
firstLetterLowerCase(String name) |
static String |
firstLetterUpperCase(String name) |
static String |
fixECJBinaryNameIssue(String name) |
static TypeElement |
fromTypeMirror(TypeMirror mirror) |
static AnnotationValue |
getAnnotationValue(AnnotationMirror mirror,
String name)
|
static AnnotationValue |
getAnnotationValue(AnnotationMirror mirror,
String name,
boolean resolveDefault)
|
static <T> T |
getAnnotationValue(Class<T> expectedType,
AnnotationMirror mirror,
String name) |
static <T> T |
getAnnotationValue(Class<T> expectedType,
AnnotationMirror mirror,
String name,
boolean resolveDefault) |
static <T> List<T> |
getAnnotationValueList(Class<T> expectedListType,
AnnotationMirror mirror,
String name) |
static String |
getBinaryName(TypeElement provider) |
static String |
getClassQualifiedName(TypeElement e) |
static TypeMirror |
getCommonSuperType(ProcessorContext context,
Collection<TypeMirror> types) |
static int |
getCompressedReferenceSize(TypeMirror mirror) |
static List<ExecutableElement> |
getDeclaredMethodsInSuperTypes(TypeElement declaringElement,
String name,
TypeMirror... params)
Gets the methods in the super type hierarchy (excluding interfaces) that are overridden by a
method in a subtype.
|
static String |
getDeclaredName(DeclaredType element,
boolean includeTypeVariables) |
static DeclaredType |
getDeclaredType(TypeElement typeElem,
TypeMirror... typeArgs) |
static List<TypeElement> |
getDeclaredTypes(TypeElement element) |
static List<TypeElement> |
getDirectSuperTypes(TypeElement element) |
static List<Element> |
getElementHierarchy(Element e) |
static String |
getEnclosedQualifiedName(DeclaredType mirror) |
static List<Element> |
getEnumValues(TypeElement type) |
static SpecializationData.Idempotence |
getIdempotent(ExecutableElement method) |
static String |
getPackageName(Element element) |
static String |
getPackageName(TypeMirror mirror) |
static String |
getQualifiedName(TypeElement element) |
static String |
getQualifiedName(TypeMirror mirror) |
static List<String> |
getQualifiedSuperTypeNames(TypeElement element) |
static String |
getReadableReference(Element relativeTo,
Element element) |
static String |
getReadableSignature(ExecutableElement method) |
static String |
getReadableSignature(ExecutableElement method,
int highlightParameter) |
static List<AnnotationMirror> |
getRepeatedAnnotation(List<? extends AnnotationMirror> mirrors,
DeclaredType base) |
static String |
getSimpleName(TypeElement element) |
static String |
getSimpleName(TypeMirror mirror) |
static TypeElement |
getSuperType(TypeElement element)
Gets the element representing the super class of a
given type element.
|
static List<TypeElement> |
getSuperTypes(TypeElement element) |
static TypeElement |
getTypeElement(CharSequence typeName) |
static String |
getTypeSimpleId(TypeMirror mirror) |
static String |
getUniqueIdentifier(TypeMirror typeMirror) |
static List<String> |
getUniqueIdentifiers(List<TypeMirror> typeMirror) |
static Modifier |
getVisibility(Set<Modifier> modifier) |
static boolean |
hasError(TypeMirror mirror) |
static boolean |
hasGenericTypes(TypeMirror type) |
static boolean |
hasOverloads(TypeElement enclosingType,
ExecutableElement e) |
static boolean |
isAssignable(TypeMirror from,
TypeMirror to) |
static boolean |
isDeclaredIn(Element search,
Element elementHierarchy) |
static boolean |
isDeclaredMethodInSuperType(TypeElement element,
String name,
TypeMirror[] params) |
static boolean |
isDefaultMethodOverridden(TypeElement declaringElement,
String name,
TypeMirror... params)
Determines whether declaringElement or any of its direct super types override a
default interface method.
|
static boolean |
isDeprecated(Element baseType) |
static boolean |
isDeprecated(TypeMirror baseType) |
static boolean |
isEnclosedIn(Element enclosedIn,
Element element) |
static boolean |
isFinal(TypeMirror mirror) |
static boolean |
isNone(TypeMirror mirror) |
static boolean |
isObject(TypeMirror actualType) |
static boolean |
isPackageDeprecated(TypeElement baseType) |
static boolean |
isPrimitive(TypeMirror mirror) |
static boolean |
isSubtype(TypeMirror type1,
TypeMirror type2) |
static boolean |
isSubtypeBoxed(ProcessorContext context,
TypeMirror from,
TypeMirror to) |
static boolean |
isVisible(Element accessingElement,
Element accessedElement) |
static boolean |
isVoid(TypeMirror mirror) |
static Set<Modifier> |
modifiers(Modifier... modifier) |
static boolean |
needsCastTo(TypeMirror sourceType,
TypeMirror targetType) |
static String |
printException(Throwable e) |
static <T> T |
resolveAnnotationValue(Class<T> expectedType,
AnnotationValue value) |
static void |
setFinal(Set<Modifier> modifiers,
boolean enabled) |
static void |
setVisibility(Set<Modifier> modifiers,
Modifier visibility) |
static boolean |
signatureEquals(ExecutableElement e1,
ExecutableElement e2) |
static List<TypeMirror> |
sortTypes(List<TypeMirror> list,
boolean reverse) |
static boolean |
typeEquals(TypeMirror type1,
TypeMirror type2) |
static Object |
unboxAnnotationValue(AnnotationValue value) |
static List<TypeMirror> |
uniqueSortedTypes(Collection<TypeMirror> types,
boolean reverse) |
static Collection<TypeMirror> |
uniqueTypes(Collection<TypeMirror> types) |
static boolean |
variableEquals(VariableElement var1,
VariableElement var2) |