Package com.sun.javadoc

Examples of com.sun.javadoc.Type


      }
    }
  }

  private void processSuperClass(ClassDoc classDoc, Collection<String> ignore) {
    Type type = classDoc.superclassType();
    if ((type != null) && !type.qualifiedTypeName().equals(Object.class.getCanonicalName())) {
      cc.catalysts.cdoclet.generator.Type superClass = GeneratorUtils.getType(type, getGenerator(), ignore);

      if (superClass != cc.catalysts.cdoclet.generator.Type.NULL && !ignore.contains(superClass.getName())) {
        getGenerator().setSuperclass(superClass, isException(classDoc));
      }
View Full Code Here


    } else if (argument instanceof WildcardType) {
      types = argument.asWildcardType().extendsBounds();
      bounds.put("?", getType(Object.class.getCanonicalName(), generator, generator.getTypeMap())); // default, will be overridden
    }
    if (types != null) {
      Type boundType = types.length > 0 ? types[0] : null;

      if (boundType != null) {
        cc.catalysts.cdoclet.generator.Type bound = getType(boundType, generator, ignore, visited);

        if (bound != cc.catalysts.cdoclet.generator.Type.NULL) {
          logger.debug("Adding boundary {} extends {} <{}>", new Object[]{argument.qualifiedTypeName(), boundType.qualifiedTypeName(), boundType.getClass().getCanonicalName()});
          bounds.put(argument.qualifiedTypeName(), bound);
        }
      }
    }
  }
View Full Code Here

            } else {
                outputFile.println("  <!-- start class " + pkgName + "." + className + " -->");
                outputFile.print("  <class name=\"" + className + "\"");
            }
            // Add attributes to the class element
            Type parent = cd[i].superclassType();
            if (parent != null)
                outputFile.println(" extends=\"" + buildEmittableTypeString(parent) + "\"");
            outputFile.println("    abstract=\"" + cd[i].isAbstract() + "\"");
            addCommonModifiers(cd[i], 4);
            outputFile.println(">");
View Full Code Here

    write(parameters);
   
    ParamTag[] ptags=m.paramTags();
    write(ptags);
   
    Type t=m.returnType();
    writeType("returntype",t);
    writeModifiers(m.modifiers());
    writeSummary(m.firstSentenceTags());
    writeComment(m.commentText());
   
View Full Code Here

    }
    write("</parameters>");
  }
  private void write(Parameter p) {
    write("<parameter type=\""+p.typeName()+"\"  name=\""+p.name() + "\">");
    Type t=p.type();
    writeType("type",t);
    write("</parameter>");
   
  }
View Full Code Here

TOP

Related Classes of com.sun.javadoc.Type

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.