Package org.springdoc.core.providers
Interface JavadocProvider
-
public interface JavadocProviderThe interface Javadoc provider.- Author:
- bnasslashen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetClassJavadoc(Class<?> cl)Gets class description.StringgetFieldJavadoc(Field field)StringgetFirstSentence(String text)Returns the first sentence of a javadoc comment.StringgetMethodJavadocDescription(Method method)Gets method description.StringgetMethodJavadocReturn(Method method)Gets method javadoc return.Map<String,String>getMethodJavadocThrows(Method method)Gets method throws declaration.StringgetParamJavadoc(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
-
-