List of usage examples for javax.lang.model.element ElementKind PARAMETER
ElementKind PARAMETER
To view the source code for javax.lang.model.element ElementKind PARAMETER.
Click Source Link
From source file:org.mule.devkit.generation.mule.studio.editor.MuleStudioUtils.java
public String getFormattedDescription(VariableElement element) { Summary description = element.getAnnotation(Summary.class); if (description != null && StringUtils.isNotBlank(description.value())) { return formatDescription(description.value()); }/*from w w w. j av a2 s . co m*/ if (element.getKind() == ElementKind.PARAMETER) { Element executableElement = element.getEnclosingElement(); return formatDescription( javaDocUtils.getParameterSummary(element.getSimpleName().toString(), executableElement)); } return formatDescription(javaDocUtils.getSummary(element)); }