Example usage for javax.lang.model.element ElementKind PARAMETER

List of usage examples for javax.lang.model.element ElementKind PARAMETER

Introduction

In this page you can find the example usage for javax.lang.model.element ElementKind PARAMETER.

Prototype

ElementKind PARAMETER

To view the source code for javax.lang.model.element ElementKind PARAMETER.

Click Source Link

Document

A parameter of a method or constructor.

Usage

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));
}