Package com.sun.javadoc

Examples of com.sun.javadoc.ProgramElementDoc.containingClass()


   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

   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

         
        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?
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.