Package com.sun.javadoc

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


        classname = packageName + classname;
       
        ClassDoc classDoc = DocBoostUtils.findClassDoc(root, classname);
       
        String see = classDoc.qualifiedName();
       
        ProgramElementDoc classOrMethod = classDoc;
        if (methodname != null){
          List<MethodDoc> methodDocs = DocBoostUtils.findMethodDocs(
              classDoc, methodname);
View Full Code Here


          List<MethodDoc> methodDocs = DocBoostUtils.findMethodDocs(
              classDoc, methodname);
          if (methodDocs == null || methodDocs.isEmpty()) {
            throw new IllegalStateException(
                "Did not find method doc of "
                    + classDoc.qualifiedName()
+ "."
                    + methodname + " It is needed by "
                    + doc.name());
          }
          classOrMethod = methodDocs.get(0);
View Full Code Here

        classname = packageName + classname;
       
        ClassDoc classDoc = DocUtils.findClassDoc(root, classname);
       
        String see = classDoc.qualifiedName();
       
        ProgramElementDoc classOrMethod = classDoc;
        if (methodname != null){
          classOrMethod = DocUtils.findMethodDocs(classDoc, methodname).get(0);
          see = see + "." + methodname;
View Full Code Here

      } else if (doc instanceof ClassDoc) {
        ClassDoc classDoc = (ClassDoc) doc;
        while (classDoc.containingClass() != null)
          classDoc = classDoc.containingClass();

        linkWithDots = classDoc.qualifiedName();
      }

      if (linkWithDots != null) {
        linkWithDots = linkWithDots.replace('.', '/');
View Full Code Here

        /* Get referenced example bean
         */
        final ClassDoc containingClass = referencedMember.containingClass();
        final Object object;
        try {
            final Field declaredField = Class.forName(containingClass.qualifiedName(), false, Thread.currentThread()
                    .getContextClassLoader()).getDeclaredField(referencedMember.name());
            if (referencedMember.isFinal()) {
                declaredField.setAccessible(true);
            }
            object = declaredField.get(null);
View Full Code Here

      // If we found a resource class, then we can look further for a resource method
      if ((res != null) && (tag.referencedMemberName() != null)) {
        MemberDoc member = tag.referencedMember();
        if (member == null) {
          // No point looking if JavaDoc can't find the member
          return invalidLink(tag, String.format("can't find resource method %s in %s", tag.referencedMemberName(), cDoc.qualifiedName()));
        }

        if (member instanceof MethodDoc) {
          // Check for a resource method
          res = application.findResourceForMethod(cDoc, (MethodDoc) member);
View Full Code Here

  private void printMemberTypeGeneric(Type type) {
    if (type.isPrimitive() || type.qualifiedTypeName().startsWith("java.lang")) {
      print(type.simpleTypeName());
    } else {
      ClassDoc fDoc = type.asClassDoc();
      if (fDoc == null || fDoc.qualifiedName().equals(cDoc.qualifiedName()) || !this.pojoTypes.getResolvedTypes().contains(fDoc)) {
        around("span title='" + type.qualifiedTypeName() + "'", type.simpleTypeName());
      } else {
        around("a title='" + fDoc.qualifiedTypeName() + "' href='" + Utils.urlToClass(cDoc, fDoc) + "'", fDoc.simpleTypeName());
      }
    }
View Full Code Here

    private void addRelatedClasses(ClassDoc type) {
        // Generalization
        ClassDoc superType = type.superclass();
        if (superType != null &&
            !superType.qualifiedName().equals("java.lang.Object") &&
            !superType.qualifiedName().equals("java.lang.Annotation") &&
            !superType.qualifiedName().equals("java.lang.Enum")) {
            addNode(superType, false);
            addEdge(new Edge(GENERALIZATION, type, superType));
        }
View Full Code Here

    private void addRelatedClasses(ClassDoc type) {
        // Generalization
        ClassDoc superType = type.superclass();
        if (superType != null &&
            !superType.qualifiedName().equals("java.lang.Object") &&
            !superType.qualifiedName().equals("java.lang.Annotation") &&
            !superType.qualifiedName().equals("java.lang.Enum")) {
            addNode(superType, false);
            addEdge(new Edge(GENERALIZATION, type, superType));
        }
View Full Code Here

        // Generalization
        ClassDoc superType = type.superclass();
        if (superType != null &&
            !superType.qualifiedName().equals("java.lang.Object") &&
            !superType.qualifiedName().equals("java.lang.Annotation") &&
            !superType.qualifiedName().equals("java.lang.Enum")) {
            addNode(superType, false);
            addEdge(new Edge(GENERALIZATION, type, superType));
        }

        // Realization
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.