Package org.springdoc.core.providers
Interface JavadocProvider
-
public interface JavadocProvider
The interface Javadoc provider.- Author:
- bnasslashen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getClassJavadoc(Class<?> cl)
Gets class description.String
getFieldJavadoc(Field field)
String
getFirstSentence(String text)
Returns the first sentence of a javadoc comment.String
getMethodJavadocDescription(Method method)
Gets method description.String
getMethodJavadocReturn(Method method)
Gets method javadoc return.Map<String,String>
getMethodJavadocThrows(Method method)
Gets method throws declaration.String
getParamJavadoc(Method method, String name)
Gets param javadoc.
-
-
-
Method Detail
-
getClassJavadoc
String getClassJavadoc(Class<?> cl)
Gets class description.- Parameters:
cl
- the class- Returns:
- the class description
-
getMethodJavadocDescription
String getMethodJavadocDescription(Method method)
Gets method description.- Parameters:
method
- the method- Returns:
- the method description
-
getMethodJavadocReturn
String getMethodJavadocReturn(Method method)
Gets method javadoc return.- Parameters:
method
- the method- Returns:
- the method javadoc return
-
getMethodJavadocThrows
Map<String,String> getMethodJavadocThrows(Method method)
Gets method throws declaration.- Parameters:
method
- the method- Returns:
- the method throws (name-description map)
-
getParamJavadoc
String getParamJavadoc(Method method, String name)
Gets param javadoc.- Parameters:
method
- the methodname
- the name- Returns:
- the param javadoc
-
-