Klasse CommentUtils
java.lang.Object
org.jdrupes.mdoclet.internal.doclets.toolkit.CommentUtils
A utility class for handling documentation comments.
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic class
Info about a doc comment: the position in the enclosing AST, and the parsed doc comment itself. -
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetComment
(String key, Object o0) Gibt a list containing the string for a given key in the doclet's resources, formatted with given arguments zurück.getComment
(String key, Object o0, Object o1, Object o2) Gibt a list containing the string for a given key in the doclet's resources, formatted with given arguments zurück.makeCodeTree
(String text) makeFirstSentenceTree
(String content) makeParamTree
(Name name, List<? extends DocTree> description) makePropertyDescriptionTree
(List<? extends DocTree> content) makeReturnTree
(List<? extends DocTree> description) makeSeeTree
(String sig, Element e) makeTextTree
(String content) setDocCommentInfo
(Element element, CommentUtils.DocCommentInfo dci) setDocCommentTree
(Element element, List<? extends DocTree> fullBody, List<? extends DocTree> blockTags) void
void
void
Generates the description for the accessor method for a state component of a record.void
Generates the description for the canonical constructor for a record.void
Generates the description for the standard equals method for a record.void
Generates the description for the field for a state component of a record.void
Generates the description for the standard hashCode method for a record.void
Generates the description for the standard toString method for a record.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).
-
Konstruktordetails
-
CommentUtils
-
-
Methodendetails
-
makePropertyDescriptionTree
-
makeCodeTree
-
makeFirstSentenceTree
-
makeParamTree
-
makeReturnTree
-
makeSeeTree
-
makeTextTree
-
makeTextTreeForResource
-
setEnumValuesTree
-
setEnumValueOfTree
-
setRecordConstructorTree
Generates the description for the canonical constructor for a record.- Parameter:
ee
- the constructor
-
setRecordEqualsTree
Generates the description for the standard equals method for a record.- Parameter:
ee
- the equals method
-
setRecordHashCodeTree
Generates the description for the standard hashCode method for a record.- Parameter:
ee
- the hashCode method
-
setRecordToStringTree
Generates the description for the standard toString method for a record.- Parameter:
ee
- the toString method
-
setRecordAccessorTree
Generates the description for the accessor method for a state component of a record.- Parameter:
ee
- the accessor method
-
setRecordFieldTree
Generates the description for the field for a state component of a record.- Parameter:
ve
- the field
-
updatePropertyMethodComment
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 @see tags if the appropriate methods are available.
- Parameter:
member
- the member which is to be augmentedproperty
- the element containing the preferred property description
-
getComment
Gibt a list containing the string for a given key in the doclet's resources, formatted with given arguments zurück.- Parameter:
key
- the key for the desired stringo0
- string or DocTree argument to be formatted into the result- Gibt zurück:
- a list containing the string for a given key in the doclet's resources, formatted with given arguments
-
getComment
Gibt a list containing the string for a given key in the doclet's resources, formatted with given arguments zurück.- Parameter:
key
- the key for the desired stringso0
- string or a DocTree argument to be formatted into the resulto1
- string or a DocTree argument to be formatted into the resulto2
- string or a DocTree argument to be formatted into the result- Gibt zurück:
- a list containing the string for a given key in the doclet's resources, formatted with given arguments
-
getSyntheticCommentInfo
-
getHtmlCommentInfo
-
parse
-
setDocCommentTree
public CommentUtils.DocCommentInfo setDocCommentTree(Element element, List<? extends DocTree> fullBody, List<? extends DocTree> blockTags) -
setDocCommentInfo
public CommentUtils.DocCommentInfo setDocCommentInfo(Element element, CommentUtils.DocCommentInfo dci)
-