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

org.raml.ramltopojo.extensions.jsr303.AnnotationAdder Maven / Gradle / Ivy

There is a newer version: 1.0.8
Show newest version
package org.raml.ramltopojo.extensions.jsr303;

import com.squareup.javapoet.AnnotationSpec;
import com.squareup.javapoet.TypeName;

import java.lang.annotation.Annotation;

/**
 * Created. There, you have it.
 */
public  abstract class AnnotationAdder {

    public abstract void addAnnotation(AnnotationSpec spec);
    public abstract TypeName typeName();

    public void addAnnotation(Class annotation) {

        addAnnotation(AnnotationSpec.builder(annotation).build());
    };
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy