Module com.speedment.common.codegen
Interface HasJavadocTags<T extends HasJavadocTags<T>>
-
- Type Parameters:
T- the extending type
- All Superinterfaces:
HasImports<T>
- All Known Subinterfaces:
Javadoc
public interface HasJavadocTags<T extends HasJavadocTags<T>> extends HasImports<T>
A trait for models that containJavadocTagcomponents.- Since:
- 2.0
- Author:
- Emil Forslund
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Tadd(JavadocTag tag)Adds the specifiedJavadocTagto this model.default Tauthor(String name)Adds anDefaultJavadocTag.AUTHOR-tag with the specified value to this javadoc.List<JavadocTag>getTags()Returns a list of all documentation tags of this model.default Tparam(String name, String description)Adds anDefaultJavadocTag.PARAM-tag with the specified value to this javadoc.default Treturns(String description)Adds anDefaultJavadocTag.RETURN-tag with the specified value to this javadoc.default Tsee(Type type)Adds anDefaultJavadocTag.SEE-tag that references the specified Java type.default Tsince(String version)Adds anDefaultJavadocTag.SINCE-tag with the specified value to this javadoc.-
Methods inherited from interface com.speedment.common.codegen.model.trait.HasImports
add, getImports, imports, imports, imports
-
-
-
-
Method Detail
-
add
default T add(JavadocTag tag)
Adds the specifiedJavadocTagto this model.- Parameters:
tag- the new child- Returns:
- a reference to this
-
author
default T author(String name)
Adds anDefaultJavadocTag.AUTHOR-tag with the specified value to this javadoc.- Parameters:
name- the name of the author- Returns:
- a reference to this
-
returns
default T returns(String description)
Adds anDefaultJavadocTag.RETURN-tag with the specified value to this javadoc.- Parameters:
description- description for thereturntag- Returns:
- a reference to this
-
since
default T since(String version)
Adds anDefaultJavadocTag.SINCE-tag with the specified value to this javadoc.- Parameters:
version- version for thesincetag- Returns:
- a reference to this
-
see
default T see(Type type)
Adds anDefaultJavadocTag.SEE-tag that references the specified Java type.- Parameters:
type- the type to reference in thesee-tag- Returns:
- a reference to this
-
param
default T param(String name, String description)
Adds anDefaultJavadocTag.PARAM-tag with the specified value to this javadoc.- Parameters:
name- the name of the paramdescription- the description (text) to use- Returns:
- a reference to this
-
getTags
List<JavadocTag> getTags()
Returns a list of all documentation tags of this model.The list returned must be mutable for changes!
- Returns:
- the javadoc tags
-
-