Package com.sun.javadoc

Examples of com.sun.javadoc.ClassDoc.tags()


      for (TreeNode n : root) {
         if (n.getBeanClass() == null) {
            for (Class<?> clazz : configBeans) {
               ClassDoc classDoc = rootDoc.classNamed(clazz.getName());
               if (classDoc != null) {
                  List<Tag> list = Arrays.asList(classDoc.tags(CONFIG_REF));
                  for (Tag tag : list) {
                     String text = tag.text().trim();
                     Map<String, String> p = parseTag(text);
                     String thisNode = p.get("name");
                     String parentNode = p.get("parentName");
View Full Code Here


      sb.append("<div class=\"section\"><h3><a name=\"" + n.getName() + "\"></a>" + n.getName() + "</h3>");
      sb.append("\n<p>");
      Class<?> beanClass = n.getBeanClass();
      //System.out.println("Generating " + n + " bean is " + beanClass);
      ClassDoc classDoc = rootDoc.classNamed(beanClass.getName());
      Tag[] tags = classDoc.tags(CONFIG_REF);
      for (Tag tag : tags) {
         String text = tag.text().trim();
         Map<String, String> m = parseTag(text);
         sb.append(m.get("desc"));
      }
View Full Code Here

    ClassDoc[] classes = root.classes();
    for (int i = 0; i < classes.length; ++i) {
      ClassDoc classDoc = classes[i];
      Element cls = document.createElement("class");
      functions.appendChild(cls);
      if (classDoc.tags("prefix").length == 1) {
        cls.setAttribute("prefix", classDoc.tags("prefix")[0].text());
      }
      cls.setAttribute("description", classDoc.commentText());

      MethodDoc[] methods = classDoc.methods();
View Full Code Here

    for (int i = 0; i < classes.length; ++i) {
      ClassDoc classDoc = classes[i];
      Element cls = document.createElement("class");
      functions.appendChild(cls);
      if (classDoc.tags("prefix").length == 1) {
        cls.setAttribute("prefix", classDoc.tags("prefix")[0].text());
      }
      cls.setAttribute("description", classDoc.commentText());

      MethodDoc[] methods = classDoc.methods();
      for (int j = 0; j < methods.length; j++) {
View Full Code Here

      for (Iterator iterator = classDocList.iterator(); iterator.hasNext();)
      {
         ClassDoc classDoc = (ClassDoc)iterator.next();

         if (classDoc.tags(TYPE_ALIAS_TAG).length == 1)
         {
            typeAliasMap.put(classDoc.name(), classDoc.tags(TYPE_ALIAS_TAG)[0].text());
         }
      }
View Full Code Here

      {
         ClassDoc classDoc = (ClassDoc)iterator.next();

         if (classDoc.tags(TYPE_ALIAS_TAG).length == 1)
         {
            typeAliasMap.put(classDoc.name(), classDoc.tags(TYPE_ALIAS_TAG)[0].text());
         }
      }

      return typeAliasMap;
   }
View Full Code Here

      ClassDoc viewClass = viewRootDoc.classNamed(opt.viewName);
      if(viewClass == null) {
    System.out.println("View " + opt.viewName + " not found! Exiting without generating any output.");
    return null;
      }
      if(viewClass.tags("view").length == 0) {
    System.out.println(viewClass + " is not a view!");
    return null;
      }
      if(viewClass.isAbstract()) {
    System.out.println(viewClass + " is an abstract view, no output will be generated!");
View Full Code Here

    /**
     * Builds a view along with its parent views, recursively
     */
    private static View buildView(RootDoc root, ClassDoc viewClass, OptionProvider provider) {
  ClassDoc superClass = viewClass.superclass();
  if(superClass == null || superClass.tags("view").length == 0)
      return new View(root, viewClass, provider);

  return new View(root, viewClass, buildView(root, superClass, provider));
    }

View Full Code Here

      ClassDoc viewClass = viewRootDoc.classNamed(opt.viewName);
      if(viewClass == null) {
    System.out.println("View " + opt.viewName + " not found! Exiting without generating any output.");
    return null;
      }
      if(viewClass.tags("view").length == 0) {
    System.out.println(viewClass + " is not a view!");
    return null;
      }
      if(viewClass.isAbstract()) {
    System.out.println(viewClass + " is an abstract view, no output will be generated!");
View Full Code Here

    /**
     * Builds a view along with its parent views, recursively
     */
    private static View buildView(RootDoc root, ClassDoc viewClass, OptionProvider provider) {
  ClassDoc superClass = viewClass.superclass();
  if(superClass == null || superClass.tags("view").length == 0)
      return new View(root, viewClass, provider);

  return new View(root, viewClass, buildView(root, superClass, provider));
    }

View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.