public interface JavadocTag extends HasCopy<JavadocTag>, HasName<JavadocTag>, HasCall<JavadocTag>
Javadoc
block.Javadoc
Modifier and Type | Interface and Description |
---|---|
static class |
JavadocTag.Factory
Factory holder.
|
Modifier and Type | Method and Description |
---|---|
Optional<String> |
getText()
Returns the text of this javadoc tag.
|
Optional<String> |
getValue()
Returns the value of this javadoc tag.
|
static JavadocTag |
of(String name)
Creates a new instance implementing this interface by using the class
supplied by the default factory.
|
static JavadocTag |
of(String name,
String text)
Creates a new instance implementing this interface by using the class
supplied by the default factory.
|
static JavadocTag |
of(String name,
String value,
String text)
Creates a new instance implementing this interface by using the class
supplied by the default factory.
|
static void |
setSupplier(Function<String,JavadocTag> supplier)
Sets the instantiation method used to create new instances of this
interface.
|
JavadocTag |
setText(String text)
Sets the text of this javadoc tag.
|
JavadocTag |
setValue(String value)
Sets the value of this javadoc tag.
|
JavadocTag setValue(String value)
@param foo bar @return foo
value
- the new valueOptional<String> getValue()
@param foo bar @return foo
empty
if none existsJavadocTag setText(String text)
@param foo bar @return foo
text
- the new textOptional<String> getText()
@param foo bar @return foo
empty
if none existsstatic JavadocTag of(String name)
setSupplier
method.name
- the namestatic JavadocTag of(String name, String text)
setSupplier
method.name
- the nametext
- the textstatic JavadocTag of(String name, String value, String text)
setSupplier
method.name
- the namevalue
- the valuetext
- the textstatic void setSupplier(Function<String,JavadocTag> supplier)
supplier
- the new constructorCopyright © 2016 Speedment, Inc.. All rights reserved.