Package org.springdoc.core.providers
Class SpringDocJavadocProvider
java.lang.Object
org.springdoc.core.providers.SpringDocJavadocProvider
- All Implemented Interfaces:
JavadocProvider
The type Spring doc javadoc provider.
- Author:
- bnasslahsen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetClassJavadoc
(Class<?> cl) Gets class description.getFieldJavadoc
(Field field) Gets field javadoc.getFirstSentence
(String text) Returns the first sentence of a javadoc comment.getMethodJavadocDescription
(Method method) Gets method javadoc description.getMethodJavadocReturn
(Method method) Gets method javadoc return.getMethodJavadocThrows
(Method method) Gets method throws declaration.getParamJavadoc
(Method method, String name) Gets param javadoc.getRecordClassParamJavadoc
(Class<?> cl) Gets param descripton of record class.
-
Constructor Details
-
SpringDocJavadocProvider
public SpringDocJavadocProvider()
-
-
Method Details
-
getClassJavadoc
Gets class description.- Specified by:
getClassJavadoc
in interfaceJavadocProvider
- Parameters:
cl
- the class- Returns:
- the class description
-
getRecordClassParamJavadoc
Gets param descripton of record class.- Specified by:
getRecordClassParamJavadoc
in interfaceJavadocProvider
- Parameters:
cl
- the class- Returns:
- map of field and param descriptions
-
getMethodJavadocDescription
Gets method javadoc description.- Specified by:
getMethodJavadocDescription
in interfaceJavadocProvider
- Parameters:
method
- the method- Returns:
- the method javadoc description
-
getMethodJavadocReturn
Gets method javadoc return.- Specified by:
getMethodJavadocReturn
in interfaceJavadocProvider
- Parameters:
method
- the method- Returns:
- the method javadoc return
-
getMethodJavadocThrows
Gets method throws declaration.- Specified by:
getMethodJavadocThrows
in interfaceJavadocProvider
- Parameters:
method
- the method- Returns:
- the method throws (name-description map)
-
getParamJavadoc
Gets param javadoc.- Specified by:
getParamJavadoc
in interfaceJavadocProvider
- Parameters:
method
- the methodname
- the name- Returns:
- the param javadoc
-
getFieldJavadoc
Gets field javadoc.- Specified by:
getFieldJavadoc
in interfaceJavadocProvider
- Parameters:
field
- the field- Returns:
- the field javadoc
-
getFirstSentence
Description copied from interface:JavadocProvider
Returns the first sentence of a javadoc comment.- Specified by:
getFirstSentence
in interfaceJavadocProvider
- Parameters:
text
- the javadoc comment's text- Returns:
- the first sentence based on javadoc guidelines
-