Package com.sun.javadoc

Examples of com.sun.javadoc.ProgramElementDoc


   private static boolean isPublicAPI(Doc doc) {
      if (doc.tags(PRIVATE_TAG).length > 0)
         return false;
      if (doc instanceof ProgramElementDoc) {
         ProgramElementDoc peDoc = (ProgramElementDoc) doc;
         if (peDoc.containingClass() != null && peDoc.containingClass().tags(PUBLIC_TAG).length > 0)
            return true;
         if (peDoc.containingPackage().tags(PUBLIC_TAG).length > 0)
            return true;
      }
      return doc.tags(PUBLIC_TAG).length > 0;
   }
View Full Code Here


   private static boolean isPublicAPI(Doc doc) {
      if (doc.tags(PRIVATE_TAG).length > 0)
         return false;
      if (doc instanceof ProgramElementDoc) {
         ProgramElementDoc peDoc = (ProgramElementDoc) doc;
         if (peDoc.containingClass() != null && peDoc.containingClass().tags(PUBLIC_TAG).length > 0)
            return true;
         if (peDoc.containingPackage().tags(PUBLIC_TAG).length > 0)
            return true;
      }
      return doc.tags(PUBLIC_TAG).length > 0;
   }
View Full Code Here

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

       
        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

        replaceMessagerRecursively(newMessager,
            (Object[]) doc.classes());
      }

      if (container instanceof ProgramElementDoc) {
        ProgramElementDoc doc = (ProgramElementDoc) container;
        replaceMessagerRecursively(newMessager,
            (Object[]) doc.annotations());
      }

      if (container instanceof ClassDoc) {
        ClassDoc doc = (ClassDoc) container;
        replaceMessagerRecursively(newMessager,
            (Object[]) doc.constructors());
        replaceMessagerRecursively(newMessager,
            (Object[]) doc.methods());
        replaceMessagerRecursively(newMessager, (Object[]) doc.fields());
        replaceMessagerRecursively(newMessager,
            (Object[]) doc.innerClasses());
      }
    }

  }
View Full Code Here

        // ---- ask the parent, if possible ----
         
        Doc doc2 = null; // holds the parent
        // get the parent
        if (doc instanceof ProgramElementDoc) {
          ProgramElementDoc member = (ProgramElementDoc) doc;
          doc2 = member.containingClass();
          if (doc2 == null) {
            doc2 = member.containingPackage();
          }
        }
        // is parent valid?
        if (doc2 instanceof Proxy &&
            Proxy.getInvocationHandler(doc2) instanceof DocHandler) {
View Full Code Here

    // add link to each @see item
    for( SeeTag tag : getAllSeeTags( doc ) )
    {
      HashMap<String, String> map = new HashMap<String, String>();
      ProgramElementDoc ref = tag.referencedClass();
      if( tag.referencedMember() != null )
      {
        ref = tag.referencedMember();
        if( ref.isMethod() && classMethods.containsKey( ref.name() ) ) {
          // link to the member as it is in this class, instead of
          // as it is in another class
          ProgramElementDoc prior = classMethods.get( ref.name() );
          ref = prior;
        }
        else if ( ref.isField() && classFields.containsKey( ref.name() ) ) {
          ProgramElementDoc prior = classFields.get( ref.name() );
          ref = prior;
        }
      }
      if( needsWriting( ref ) )
      { // add links to things that are actually written
View Full Code Here

TOP

Related Classes of com.sun.javadoc.ProgramElementDoc

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.