net.jbock.writing.GeneratedAnnotation 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.writing;
import io.jbock.javapoet.AnnotationSpec;
import io.jbock.javapoet.CodeBlock;
import io.jbock.simple.Inject;
import net.jbock.processor.JbockProcessor;
import javax.annotation.processing.Generated;
final class GeneratedAnnotation {
@Inject
GeneratedAnnotation() {
}
AnnotationSpec define() {
return AnnotationSpec.builder(Generated.class)
.addMember("value", CodeBlock.of("$S", JbockProcessor.class.getCanonicalName()))
.addMember("comments", CodeBlock.of("$S", "https://github.com/jbock-java/jbock"))
.build();
}
}