Package org.kordamp.jipsy.processor
Class AbstractSpiProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
org.kordamp.jipsy.processor.AbstractSpiProcessor
- All Implemented Interfaces:
Processor
- Direct Known Subclasses:
ServiceProviderProcessor,SisuIndexProviderProcessor,TypeProviderProcessor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Loggerprotected Optionsprotected static final PatternFields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static booleanannotationMirrorMatches(AnnotationMirror annotation, String lookingFor) protected voidprotected voidprotected Stringprotected static List<AnnotationMirror> findAnnotationMirrors(TypeElement element, String lookingFor) protected Collection<AnnotationValue> findCollectionValueMember(AnnotationMirror mirror, String memberName) protected AnnotationValuefindSingleValueMember(AnnotationMirror mirror, String memberName) protected abstract Class<? extends Annotation> protected voidhandleAnnotations(RoundEnvironment roundEnv) protected abstract voidprotected booleanhasModifier(Element element, Modifier modifier) protected booleanhasPublicNoArgsConstructor(TypeElement currentClass) voidinit(ProcessingEnvironment environment) protected voidprotected booleanisAbstractClass(TypeElement element) protected booleanisAssignable(TypeMirror currentClass, TypeMirror type) protected CheckResultisImplementation(TypeElement currentClass, TypeElement type) protected booleanisStaticClass(TypeElement element) booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) protected abstract voidremoveStaleData(RoundEnvironment roundEnv) protected voidreportError(TypeElement element, CheckResult result) protected static TypeElementtoElement(AnnotationValue value) protected voidprotected abstract voidMethods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, isInitialized
-
Field Details
-
RELEASE_PATTERN
-
options
-
logger
-
-
Constructor Details
-
AbstractSpiProcessor
public AbstractSpiProcessor()
-
-
Method Details
-
init
- Specified by:
initin interfaceProcessor- Overrides:
initin classAbstractProcessor
-
process
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-
getAnnotationClass
-
handleElement
-
removeStaleData
-
writeData
protected abstract void writeData() -
warning
-
initialize
protected void initialize() -
checkCompatibility
protected void checkCompatibility() -
checkJavacOnLinux
protected void checkJavacOnLinux() -
handleAnnotations
-
reportError
-
hasPublicNoArgsConstructor
-
hasModifier
-
isStaticClass
-
isAbstractClass
-
isImplementation
-
isAssignable
-
findSingleValueMember
-
findCollectionValueMember
protected Collection<AnnotationValue> findCollectionValueMember(AnnotationMirror mirror, String memberName) -
createProperQualifiedName
-
findAnnotationMirrors
protected static List<AnnotationMirror> findAnnotationMirrors(TypeElement element, String lookingFor) -
annotationMirrorMatches
-
toElement
-