-
- All Superinterfaces:
AnnotationModifier<Annotation>,HasAnnotationUsage<Annotation>,HasCopy<Annotation>,HasFields<Annotation>,HasImports<Annotation>,HasJavadoc<Annotation>,HasModifiers<Annotation>,HasName<Annotation>
public interface Annotation extends HasCopy<Annotation>, HasName<Annotation>, HasJavadoc<Annotation>, HasFields<Annotation>, HasImports<Annotation>, AnnotationModifier<Annotation>, HasAnnotationUsage<Annotation>
A model that represents an annotation in code.- Since:
- 2.0
- Author:
- Emil Forslund
- See Also:
AnnotationUsage
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default TnotPublic()Removes thepublickeyword from this model.static Annotationof(String name)Creates a new instance implementing this interface using the default implementation.default Tpublic_()Adds thepublickeyword to this model.-
Methods inherited from interface com.speedment.common.codegen.model.trait.HasAnnotationUsage
add, annotate, annotate, annotate, getAnnotations
-
Methods inherited from interface com.speedment.common.codegen.model.trait.HasFields
add, addAllFields, constant, constant, constant, constant, field, field, getFields
-
Methods inherited from interface com.speedment.common.codegen.model.trait.HasImports
add, getImports, imports, imports, imports
-
Methods inherited from interface com.speedment.common.codegen.model.trait.HasJavadoc
getJavadoc, javadoc, set
-
Methods inherited from interface com.speedment.common.codegen.model.trait.HasModifiers
getModifiers
-
-
-
-
Method Detail
-
of
static Annotation of(String name)
Creates a new instance implementing this interface using the default implementation.- Parameters:
name- the name- Returns:
- the new instance
-
public_
default T public_()
Adds thepublickeyword to this model.- Returns:
- a reference to this model
-
notPublic
default T notPublic()
Removes thepublickeyword from this model.- Returns:
- a reference to this model
-
-