Package com.sun.javadoc

Examples of com.sun.javadoc.Doc


    text(jreLink);
    endln();
  }

  private void emitLocation(Doc doc) {
    Doc parent = getParentDoc(doc);
    if (parent != null) {
      beginln("location");
      emitLocationLink(parent);
      endln();
    }
View Full Code Here


    } else {
      throw new IllegalStateException(
          "Expected only a member, type, or package");
    }

    Doc parent = getParentDoc(doc);
    if (parent != null) {
      emitLocationLink(parent);
    }

    beginln("link", "ref", myId);
View Full Code Here

    if (doc instanceof MemberDoc) {
      MemberDoc memberDoc = (MemberDoc) doc;
      return memberDoc.containingClass();
    } else if (doc instanceof ClassDoc) {
      ClassDoc classDoc = (ClassDoc) doc;
      Doc enclosingClass = classDoc.containingClass();
      if (enclosingClass != null) {
        return enclosingClass;
      } else {
        return classDoc.containingPackage();
      }
View Full Code Here

      className = linkText;
      methodSig = null;
    }

    ClassDoc containingClass = null;
    Doc holder = tag.holder();
    if (holder instanceof ClassDoc) {
      containingClass = (ClassDoc) holder;
    } else if (holder instanceof MemberDoc) {
      containingClass = ((MemberDoc) holder).containingClass();
    }
View Full Code Here

    }
    return null;
  }

  private MethodDoc getSuperMethodDoc(ClassDoc classDoc) {
    Doc doc = DocMap.getDocByQualifiedName(classDoc.qualifiedName()+"#"+name(),false);
    return doc instanceof MethodDoc ? (MethodDoc)doc : null;
  }
View Full Code Here

    public Object invoke(Object proxy, Method method, Object[] args)
  throws Throwable {
      String methodName = method.getName();
      if (target instanceof Doc) {
  if (methodName.equals("isIncluded")) {
    Doc doc = (Doc) target;
    return !exclude(doc) && doc.isIncluded();
  }
  if (target instanceof RootDoc) {
    if (methodName.equals("classes")) {
      return filter(((RootDoc) target).classes(), ClassDoc.class);
    } else if (methodName.equals("specifiedClasses")) {
View Full Code Here

  public String toString(Tag tag)
  {
    try
    {
     System.out.println("javadoc context " + JavadocContext.getSingleton().getConfiguration().docFileDestDirName);
     Doc holder = tag.holder();
     if (holder != null)
     {
        System.out.println("holder " + holder.getClass().getSimpleName());
        if (holder instanceof ProgramElementDoc)
        {
          System.out.println("package is " +((ProgramElementDoc)holder).containingPackage().name());
        }
     }
View Full Code Here

      String desc = null;
      if (field.isAnnotationPresent(ConfigurationDoc.class)) {
         desc = field.getAnnotation(ConfigurationDoc.class).desc();
      } else if (field.isAnnotationPresent(ConfigurationDocRef.class)) {
         ConfigurationDocRef docRef = field.getAnnotation(ConfigurationDocRef.class);
         Doc fieldDocRec = findDocElement(docRef.bean(), docRef.targetElement());
         desc = fieldDocRec.commentText();
      }
      return desc;
   }
View Full Code Here

        return (AnnotationDesc.ElementValuePair[]) getHDPProxy(array, AnnotationDesc.ElementValuePair[].class);
      }
      List<AnnotationDesc.ElementValuePair> list = new ArrayList<AnnotationDesc.ElementValuePair>(array.length);
      for (int i = 0; i < array.length; i++) {
        AnnotationDesc.ElementValuePair pair = (AnnotationDesc.ElementValuePair) getHDPProxy(array[i], null);
        Doc entry = pair.element();
        if (entry != null && ! entry.isIncluded()){
          //debug("Array Excluding: "+entry.getClass().getName()+ " " + entry);
          continue;
        }
        list.add(pair);
      }
View Full Code Here

          SeeTag seeTag = (SeeTag) tag;
          // getErrorReporter().printNotice(doc.position(),"Ref:
          // "+seeTag.name()+" M:'"+seeTag.referencedMemberName()+"'
          // C:'"+seeTag.referencedClassName()+"'
          // P:'"+seeTag.referencedPackage());
          Doc r = seeTag.referencedMember();
          if (r == null)
            r = seeTag.referencedClass();
          if (r == null)
            r = seeTag.referencedPackage();
          checkReference(doc, r,
View Full Code Here

TOP

Related Classes of com.sun.javadoc.Doc

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.