All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.jbock.writing.GeneratedAnnotation Maven / Gradle / Ivy

There is a newer version: 5.18
Show newest version
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy