public class ProcessorUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ProcessorUtils.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ProcessorUtils.Builder |
builder() |
void |
createErrorMessage(String errorMessage) |
String |
createFullClassName(String packageName,
String className) |
void |
createNoteMessage(String noteMessage) |
boolean |
extendsClassOrInterface(Types types,
TypeMirror typeMirror,
TypeMirror toImplement)
checks if a class or interface is implemented.
|
Elements |
getElements() |
TypeMirror |
getFlattenedSupertype(Types types,
TypeMirror typeMirror,
TypeMirror implementsMirror) |
Set<TypeMirror> |
getFlattenedSupertypeHierarchy(Types types,
TypeMirror typeMirror)
Returns all of the superclasses and superinterfaces for a given generator
including the generator itself.
|
PackageElement |
getPackage(Element type) |
String |
getPackageAsString(Element type) |
boolean |
supertypeHasGeneric(Types types,
TypeMirror typeMirror,
TypeMirror implementsMirror) |
public static ProcessorUtils.Builder builder()
public PackageElement getPackage(Element type)
public Elements getElements()
public boolean extendsClassOrInterface(Types types, TypeMirror typeMirror, TypeMirror toImplement)
types - typestypeMirror - of the class to checktoImplement - the type mirror to implementpublic Set<TypeMirror> getFlattenedSupertypeHierarchy(Types types, TypeMirror typeMirror)
types - typestypeMirror - of the class to checkpublic boolean supertypeHasGeneric(Types types, TypeMirror typeMirror, TypeMirror implementsMirror)
public TypeMirror getFlattenedSupertype(Types types, TypeMirror typeMirror, TypeMirror implementsMirror)
public void createErrorMessage(String errorMessage)
public void createNoteMessage(String noteMessage)
Copyright © 2018–2022. All rights reserved.