| Modifier and Type | Class and Description |
|---|---|
| public static class | CommentUtils.
Info about a doc comment: the position in the enclosing AST, and the parsed doc comment itself. |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final BaseConfiguration | |
| pack-priv final HashMap | dcInfoMap
A map for storing automatically generated comments for various elements, such as mandated elements (Enum.values, Enum.valueOf, etc) and JavaFX properties. |
| pack-priv final Elements | |
| pack-priv final Resources | |
| pack-priv final DocTreeFactory | |
| pack-priv final DocTrees | |
| pack-priv final Utils |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public List | Returns: a list containing the string for a given key in the doclet's resources, formatted with given argumentsthe key for the desired string key, Object string or DocTree argument to be formatted into the result o0)Returns a list containing the string for a given key in the doclet's resources, formatted with given arguments. |
| public List | Returns: a list containing the string for a given key in the doclet's resources, formatted with given argumentsthe key for the desired strings key, Object string or a DocTree argument to be formatted into the result o0, Object string or a DocTree argument to be formatted into the result o1, Object string or a DocTree argument to be formatted into the result o2)Returns a list containing the string for a given key in the doclet's resources, formatted with given arguments. |
| public CommentUtils. | |
| public CommentUtils. | |
| private boolean | Returns: whether or not there is a@param} for the componentthe record element elem, Name the name of the component component)Returns whether or not the doc comment for a record contains an |
| public LiteralTree | |
| private List | Returns: the descriptionthe resource key for the description key, TypeElement the record element elem, Name the name of the component component)Creates a description that contains a reference to a state component of a record. |
| private List | Returns: the descriptionthe resource key for the description key, Name the name name)Creates a description that contains the simple name of a program element
The description is looked up as a resource, and should contain |
| public List | |
| public ParamTree | |
| public List | |
| public ReturnTree | |
| public DocTree | |
| public TextTree | |
| public TextTree | |
| private List | |
| public DocCommentTree | |
| public CommentUtils. | |
| public CommentUtils. | |
| public void | |
| public void | |
| public void | setRecordAccessorTree(ExecutableElement
the accessor method ee)Generates the description for the accessor method for a state component of a record. |
| public void | setRecordConstructorTree(ExecutableElement
the constructor ee)Generates the description for the canonical constructor for a record. |
| public void | setRecordEqualsTree(ExecutableElement
the ee)equals methodGenerates the description for the standard |
| public void | setRecordFieldTree(VariableElement
the field ve)Generates the description for the field for a state component of a record. |
| public void | setRecordHashCodeTree(ExecutableElement
the ee)hashCode methodGenerates the description for the standard |
| public void | setRecordToStringTree(ExecutableElement
the ee)toString methodGenerates the description for the standard |
| public void | updatePropertyMethodComment(ExecutableElement
the member which is to be augmented member, Element the element containing the preferred property description property)Update the property method, property setter and/or property getter comment text so that it contains the documentation from the preferred property description (field or property method). |
| configuration | back to summary |
|---|---|
| pack-priv final BaseConfiguration configuration | |
| dcInfoMap | back to summary |
|---|---|
| pack-priv final HashMap<Element, CommentUtils. A map for storing automatically generated comments for various elements, such as mandated elements (Enum.values, Enum.valueOf, etc) and JavaFX properties.
| |
| elementUtils | back to summary |
|---|---|
| pack-priv final Elements elementUtils | |
| resources | back to summary |
|---|---|
| pack-priv final Resources resources | |
| treeFactory | back to summary |
|---|---|
| pack-priv final DocTreeFactory treeFactory | |
| trees | back to summary |
|---|---|
| pack-priv final DocTrees trees | |
| utils | back to summary |
|---|---|
| pack-priv final Utils utils | |
| CommentUtils | back to summary |
|---|---|
| protected CommentUtils(BaseConfiguration configuration) | |
| add | back to summary |
|---|---|
| private void add(List<DocTree> contents, String resourceKey) | |
| getComment | back to summary |
|---|---|
| public List Returns a list containing the string for a given key in the doclet's resources, formatted with given arguments. | |
| getComment | back to summary |
|---|---|
| public List Returns a list containing the string for a given key in the doclet's resources, formatted with given arguments. | |
| getHtmlCommentInfo | back to summary |
|---|---|
| public CommentUtils. | |
| getSyntheticCommentInfo | back to summary |
|---|---|
| public CommentUtils. | |
| hasParamForComponent | back to summary |
|---|---|
| private boolean hasParamForComponent(TypeElement elem, Name component) Returns whether or not the doc comment for a record contains an
| |
| makeCodeTree | back to summary |
|---|---|
| public LiteralTree makeCodeTree(String text) | |
| makeDescriptionWithComponent | back to summary |
|---|---|
| private List Creates a description that contains a reference to a state component of a record.
The description is looked up as a resource, and should contain
| |
| makeDescriptionWithName | back to summary |
|---|---|
| private List Creates a description that contains the simple name of a program element
The description is looked up as a resource, and should contain | |
| makeFirstSentenceTree | back to summary |
|---|---|
| public List | |
| makeParamTree | back to summary |
|---|---|
| public ParamTree makeParamTree(Name name, List<? extends DocTree> description) | |
| makePropertyDescriptionTree | back to summary |
|---|---|
| public List | |
| makeReturnTree | back to summary |
|---|---|
| public ReturnTree makeReturnTree(List<? extends DocTree> description) | |
| makeSeeTree | back to summary |
|---|---|
| public DocTree makeSeeTree(String sig, Element e) | |
| makeTextTree | back to summary |
|---|---|
| public TextTree makeTextTree(String content) | |
| makeTextTreeForResource | back to summary |
|---|---|
| public TextTree makeTextTreeForResource(String key) | |
| parse | back to summary |
|---|---|
| private List Parses a string, looking for simple embedded HTML. | |
| parse | back to summary |
|---|---|
| public DocCommentTree parse(URI uri, String text) | |
| setDocCommentInfo | back to summary |
|---|---|
| public CommentUtils. | |
| setDocCommentTree | back to summary |
|---|---|
| public CommentUtils. | |
| setEnumValueOfTree | back to summary |
|---|---|
| public void setEnumValueOfTree(ExecutableElement ee) | |
| setEnumValuesTree | back to summary |
|---|---|
| public void setEnumValuesTree(ExecutableElement ee) | |
| setRecordAccessorTree | back to summary |
|---|---|
| public void setRecordAccessorTree(ExecutableElement ee) Generates the description for the accessor method for a state component of a record.
| |
| setRecordConstructorTree | back to summary |
|---|---|
| public void setRecordConstructorTree(ExecutableElement ee) Generates the description for the canonical constructor for a record.
| |
| setRecordEqualsTree | back to summary |
|---|---|
| public void setRecordEqualsTree(ExecutableElement ee) Generates the description for the standard
| |
| setRecordFieldTree | back to summary |
|---|---|
| public void setRecordFieldTree(VariableElement ve) Generates the description for the field for a state component of a record.
| |
| setRecordHashCodeTree | back to summary |
|---|---|
| public void setRecordHashCodeTree(ExecutableElement ee) Generates the description for the standard
| |
| setRecordToStringTree | back to summary |
|---|---|
| public void setRecordToStringTree(ExecutableElement ee) Generates the description for the standard
| |
| updatePropertyMethodComment | back to summary |
|---|---|
| public void updatePropertyMethodComment(ExecutableElement member, Element property) Update the property method, property setter and/or property getter
comment text so that it contains the documentation from
the preferred property description (field or property method).
The method adds the leading sentence, copied documentation including
the defaultValue tag and the
| |
null for automatically generated comments,
such as for Enum.values, Enum.valuesOf, and JavaFX properties.
| Modifier and Type | Field and Description |
|---|---|
| public final DocCommentTree | dcTree
The doc comment tree that is the root node of a parsed doc comment,
or |
| public final TreePath | treePath
The position of the comment in the enclosing AST, or |
| Access | Constructor and Description |
|---|---|
| public |
| dcTree | back to summary |
|---|---|
| public final DocCommentTree dcTree The doc comment tree that is the root node of a parsed doc comment,
or | |
| treePath | back to summary |
|---|---|
| public final TreePath treePath The position of the comment in the enclosing AST, or | |
| DocCommentInfo | back to summary |
|---|---|
| public DocCommentInfo(TreePath treePath, DocCommentTree dcTree) | |