net.jbock.processor.ConverterProcessingStep Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jbock-compiler Show documentation
Show all versions of jbock-compiler Show documentation
jbock annotation processor
package net.jbock.processor;
import com.google.auto.common.BasicAnnotationProcessor;
import com.google.common.collect.ImmutableSetMultimap;
import net.jbock.Converter;
import javax.inject.Inject;
import javax.lang.model.element.Element;
import java.util.Set;
/**
* Ensure that changes in the converter class trigger the processing.
*/
@ProcessorScope
public class ConverterProcessingStep implements BasicAnnotationProcessor.Step {
@Inject
ConverterProcessingStep() {
}
@Override
public Set annotations() {
return Set.of(Converter.class.getCanonicalName());
}
@Override
public Set extends Element> process(ImmutableSetMultimap elementsByAnnotation) {
return Set.of();
}
}