public abstract class AbstractSpiProcessor extends AbstractProcessor
Modifier and Type | Field and Description |
---|---|
protected Logger |
logger |
protected Options |
options |
protected static Pattern |
RELEASE_PATTERN |
processingEnv
Constructor and Description |
---|
AbstractSpiProcessor() |
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, isInitialized
protected static final Pattern RELEASE_PATTERN
protected Options options
protected Logger logger
public void init(ProcessingEnvironment environment)
init
in interface Processor
init
in class AbstractProcessor
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process
in interface Processor
process
in class AbstractProcessor
protected abstract Class<? extends Annotation> getAnnotationClass()
protected abstract void handleElement(Element e)
protected abstract void removeStaleData(RoundEnvironment roundEnv)
protected abstract void writeData()
protected void warning(String message)
protected void initialize()
protected void checkCompatibility()
protected void checkJavacOnLinux()
protected void handleAnnotations(RoundEnvironment roundEnv)
protected void reportError(TypeElement element, CheckResult result)
protected boolean hasPublicNoArgsConstructor(TypeElement currentClass)
protected boolean isStaticClass(TypeElement element)
protected boolean isAbstractClass(TypeElement element)
protected CheckResult isImplementation(TypeElement currentClass, TypeElement type)
protected boolean isAssignable(TypeMirror currentClass, TypeMirror type)
protected AnnotationValue findSingleValueMember(AnnotationMirror mirror, String memberName)
protected Collection<AnnotationValue> findCollectionValueMember(AnnotationMirror mirror, String memberName)
protected String createProperQualifiedName(TypeElement type)
protected static List<AnnotationMirror> findAnnotationMirrors(TypeElement element, String lookingFor)
protected static boolean annotationMirrorMatches(AnnotationMirror annotation, String lookingFor)
protected static TypeElement toElement(AnnotationValue value)
Copyright © 2013–2015 Kordamp. All rights reserved.