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:
getClassJavadocin interfaceJavadocProvider- Parameters:
cl- the class- Returns:
- the class description
-
getRecordClassParamJavadoc
Gets param descripton of record class.- Specified by:
getRecordClassParamJavadocin interfaceJavadocProvider- Parameters:
cl- the class- Returns:
- map of field and param descriptions
-
getMethodJavadocDescription
Gets method javadoc description.- Specified by:
getMethodJavadocDescriptionin interfaceJavadocProvider- Parameters:
method- the method- Returns:
- the method javadoc description
-
getMethodJavadocReturn
Gets method javadoc return.- Specified by:
getMethodJavadocReturnin interfaceJavadocProvider- Parameters:
method- the method- Returns:
- the method javadoc return
-
getMethodJavadocThrows
Gets method throws declaration.- Specified by:
getMethodJavadocThrowsin interfaceJavadocProvider- Parameters:
method- the method- Returns:
- the method throws (name-description map)
-
getParamJavadoc
Gets param javadoc.- Specified by:
getParamJavadocin interfaceJavadocProvider- Parameters:
method- the methodname- the name- Returns:
- the param javadoc
-
getFieldJavadoc
Gets field javadoc.- Specified by:
getFieldJavadocin interfaceJavadocProvider- Parameters:
field- the field- Returns:
- the field javadoc
-
getFirstSentence
Description copied from interface:JavadocProviderReturns the first sentence of a javadoc comment.- Specified by:
getFirstSentencein interfaceJavadocProvider- Parameters:
text- the javadoc comment's text- Returns:
- the first sentence based on javadoc guidelines
-