Package com.github.tadukoo.java.javadoc
Class EditableJavadoc
java.lang.Object
com.github.tadukoo.java.javadoc.Javadoc
com.github.tadukoo.java.javadoc.EditableJavadoc
- All Implemented Interfaces:
JavaCodeType,JavaTokens
Represents a
Javadoc that can be modified- Version:
- Alpha v.0.4
- Author:
- Logan Ferree (Tadukoo)
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.github.tadukoo.java.javadoc.Javadoc
author, condensed, content, params, returnVal, since, throwsInfos, versionFields inherited from interface com.github.tadukoo.java.JavaCodeType
NEWLINE_WITH_2_TABS, NEWLINE_WITH_4_TABSFields inherited from interface com.github.tadukoo.java.JavaTokens
ABSTRACT_MODIFIER, ANNOTATION_START_TOKEN, ASSIGNMENT_OPERATOR_TOKEN, BLOCK_CLOSE_TOKEN, BLOCK_OPEN_TOKEN, CLASS_TOKEN, EXTENDS_TOKEN, FINAL_MODIFIER, IMPLEMENTS_TOKEN, IMPORT_TOKEN, JAVADOC_AUTHOR_TOKEN, JAVADOC_LINE_TOKEN, JAVADOC_PARAM_TOKEN, JAVADOC_RETURN_TOKEN, JAVADOC_SINCE_TOKEN, JAVADOC_START_TOKEN, JAVADOC_VERSION_TOKEN, LIST_SEPARATOR_TOKEN, MODIFIERS, MULTI_LINE_COMMENT_CLOSE_TOKEN, MULTI_LINE_COMMENT_START_TOKEN, PACKAGE_TOKEN, PARAMETER_CLOSE_TOKEN, PARAMETER_OPEN_TOKEN, PRIVATE_MODIFIER, PROTECTED_MODIFIER, PUBLIC_MODIFIER, SEMICOLON, SINGLE_LINE_COMMENT_TOKEN, STATIC_MODIFIER, THROWS_TOKEN, TYPE_PARAMETER_CLOSE_TOKEN, TYPE_PARAMETER_OPEN_TOKEN, VARARGS_TOKEN, VISIBILITY_MODIFIERS -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContent(String content) voidaddContent(List<String> content) voidvoidvoidvoidaddThrowsInfo(com.github.tadukoo.util.tuple.Pair<String, String> throwsInfo) voidaddThrowsInfo(String throwable, String explanation) voidaddThrowsInfos(List<com.github.tadukoo.util.tuple.Pair<String, String>> throwsInfos) builder()voidvoidsetCondensed(boolean condensed) voidsetContent(List<String> content) voidvoidsetReturnVal(String returnVal) voidvoidsetThrowsInfos(List<com.github.tadukoo.util.tuple.Pair<String, String>> throwsInfos) voidsetVersion(String version) Methods inherited from class com.github.tadukoo.java.javadoc.Javadoc
equals, getAuthor, getContent, getJavaCodeType, getParams, getReturnVal, getSince, getThrowsInfos, getVersion, isCondensed, isEditable, toBuilderCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.tadukoo.java.JavaCodeType
escapeQuotes
-
Method Details
-
builder
- Returns:
- A new
EditableJavadoc.EditableJavadocBuilderto use to build a newEditableJavadoc
-
setCondensed
public void setCondensed(boolean condensed) - Parameters:
condensed- Whether theJavadocis condensed or not
-
addContent
- Parameters:
content- Content to be added to theJavadoc
-
addContent
- Parameters:
content- Content to be added to theJavadoc
-
setContent
- Parameters:
content- The content of theJavadoc
-
setAuthor
- Parameters:
author- The author of theJavadoc
-
setVersion
- Parameters:
version- The version for theJavadoc
-
setSince
- Parameters:
since- The "since" value for theJavadoc
-
addParam
- Parameters:
name- The name of the parameterdescription- The description of the parameter
-
addParam
- Parameters:
param- A parameter as a pair of the name and javadoc text for it
-
addParams
- Parameters:
params- The parameters to add to theJavadoc
-
setParams
- Parameters:
params- The parameters in theJavadoc
-
setReturnVal
- Parameters:
returnVal- The return string in theJavadoc
-
addThrowsInfo
- Parameters:
throwable- The throwable being thrownexplanation- The explanation of the throwable
-
addThrowsInfo
- Parameters:
throwsInfo- The throws info to be added to theJavadoc
-
addThrowsInfos
- Parameters:
throwsInfos- The throws infos to be added to theJavadoc
-
setThrowsInfos
- Parameters:
throwsInfos- The throws info for theJavadoc
-