Package com.sun.javadoc

Examples of com.sun.javadoc.AnnotationValue


    * Initialises the name of this parameter.
    *
    * @param param the parameter's Java documentation object.
    */
   private void initName(PathParameter type, final Parameter param) {
      final AnnotationValue value =
         elementValue(param, PathVariable.class, "value");
      if (value == null) {
         type.setName(param.name());
      } else {
         if (StringUtils.isBlank(value.value().toString())) {
            type.setName(param.name());
         } else {
            type.setName(value.value().toString().trim());
         }
      }
   }
View Full Code Here


    * Initialises the name of this parameter.
    *
    * @param param the parameter's Java documentation object.
    */
   private void initName(RequestParameter type, final Parameter param) {
      final AnnotationValue value =
         elementValue(param, RequestParam.class, "value");
      if (value == null) {
         type.setName(param.name());
      } else {
         if (StringUtils.isBlank(value.value().toString())) {
            type.setName(param.name());
         } else {
            type.setName(value.value().toString().trim());
         }
      }
   }
View Full Code Here

    * @param param the parameter's Java documentation object.
    * @param tags the Java documentation tags of the parameters of the method
    *           this parameter belongs to.
    */
   private void initRequired(RequestParameter type, final Parameter param) {
      final AnnotationValue value =
         elementValue(param, RequestParam.class, "required");
      if (value != null) {
         type.setRequired(Boolean.getBoolean(value.value().toString().trim()));
      }

   }
View Full Code Here

    * @param param the parameter's Java documentation object.
    * @param tags the Java documentation tags of the parameters of the method
    *           this parameter belongs to.
    */
   private void initDefaultValue(RequestParameter type, final Parameter param) {
      final AnnotationValue value =
         elementValue(param, RequestParam.class, "defaultValue");
      if (value != null) {
         type.setDefaultValue(value.value().toString().trim());
      }

   }
View Full Code Here

    *
    * @param param the parameter's Java documentation object.
    */
   private void initName(FieldedParameter type, final Parameter param) {

      final AnnotationValue value = getAnnotationValue(param);
      if (value == null) {
         type.setName(param.name());
      } else {
         if (isBlank(value.value().toString())) {
            type.setName(param.name());
         } else {
            type.setName(value.value().toString().trim());
         }
      }
   }
View Full Code Here

      LOG.info(controller.getName());

      // Controller-level $RequestMapping annotation?
      String baseUri = "";
      AnnotationValue urlAnnotation =
         elementValue(classDoc, RequestMapping.class, "value");
      if (urlAnnotation != null) {
         String[] methodUris = parseValueAnnotation(urlAnnotation);
         // Assume just one...
         baseUri = methodUris[0];
View Full Code Here

    for (AnnotationDesc documentation : documentations) {
      for (ElementValuePair pair : documentation.elementValues()) {
        AnnotationTypeElementDoc elementDoc = pair.element();
        String key = pair.toString();
        if (key.startsWith("text=")) {
          AnnotationValue value = pair.value();
          Object string = value.value();
          additionalComment.append(string).append("\n");
        }
      }
    }
View Full Code Here

TOP

Related Classes of com.sun.javadoc.AnnotationValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.