< prev index next >

test/langtools/jdk/javadoc/doclet/testMemberInheritance/TestMemberInheritance.java

Print this page




  54                 "<a href=\"BaseClass.html#pubField\">",
  55                 // Public method should be inherited
  56                 "<a href=\"BaseClass.html#pubMethod()\">",
  57                 // Public inner class should be inherited.
  58                 "<a href=\"BaseClass.pubInnerClass.html\" title=\"class in pkg\">",
  59                 // Protected field should be inherited
  60                 "<a href=\"BaseClass.html#proField\">",
  61                 // Protected method should be inherited
  62                 "<a href=\"BaseClass.html#proMethod()\">",
  63                 // Protected inner class should be inherited.
  64                 "<a href=\"BaseClass.proInnerClass.html\" title=\"class in pkg\">",
  65                 // New labels as of 1.5.0
  66                 "Nested classes/interfaces inherited from class&nbsp;pkg."
  67                 + "<a href=\"BaseClass.html\" title=\"class in pkg\">BaseClass</a>",
  68                 "Nested classes/interfaces inherited from interface&nbsp;pkg."
  69                 + "<a href=\"BaseInterface.html\" title=\"interface in pkg\">BaseInterface</a>");
  70 
  71         checkOutput("pkg/BaseClass.html", true,
  72                 // Test overriding/implementing methods with generic parameters.
  73                 "<dl>\n"
  74                 + "<dt><span class=\"overrideSpecifyLabel\">Specified by:</span></dt>\n"
  75                 + "<dd><code><a href=\"BaseInterface.html#getAnnotation(java.lang.Class)\">"
  76                 + "getAnnotation</a></code>&nbsp;in interface&nbsp;<code>"
  77                 + "<a href=\"BaseInterface.html\" title=\"interface in pkg\">"
  78                 + "BaseInterface</a></code></dd>\n"
  79                 + "</dl>");
  80 
  81         checkOutput("diamond/Z.html", true,
  82                 // Test diamond inheritance member summary (6256068)
  83                 "<code><a href=\"A.html#aMethod()\">aMethod</a></code>");
  84 
  85         checkOutput("inheritDist/C.html", true,
  86                 // Test that doc is inherited from closed parent (6270645)
  87                 "<div class=\"block\">m1-B</div>");
  88 
  89         checkOutput("pkg/SubClass.html", false,
  90                 "<a href=\"BaseClass.html#staticMethod()\">staticMethod</a></code>");
  91 
  92         checkOutput("pkg1/Implementer.html", true,
  93                 // ensure the method makes it
  94                 "<td class=\"colFirst\"><code>static java.time.Period</code></td>\n"
  95                 + "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\">"
  96                 + "<a href=\"#between(java.time.LocalDate,java.time.LocalDate)\">"
  97                 + "between</a></span>​(java.time.LocalDate&nbsp;startDateInclusive,\n"
  98                 + "java.time.LocalDate&nbsp;endDateExclusive)</code></th>");
  99 
 100         checkOutput("pkg1/Implementer.html", false,
 101                 "<h3>Methods inherited from interface&nbsp;pkg1.<a href=\"Interface.html\""
 102                 + " title=\"interface in pkg1\">Interface</a></h3>\n"
 103                 + "<code><a href=\"Interface.html#between(java.time.chrono.ChronoLocalDate"
 104                 + ",java.time.chrono.ChronoLocalDate)\">between</a></code>"
 105         );
 106 
 107         checkOutput("pkg2/DocumentedNonGenericChild.html", true,
 108                 "<section class=\"description\">\n<hr>\n"
 109                 + "<pre>public abstract class <span class=\"typeNameLabel\">"
 110                 + "DocumentedNonGenericChild</span>\n"
 111                 + "extends java.lang.Object</pre>\n"
 112                 + "</section>");
 113 
 114         checkOutput("pkg2/DocumentedNonGenericChild.html", true,
 115                 "<td class=\"colFirst\"><code>protected abstract java.lang.String</code></td>\n"
 116                 + "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\">"
 117                 + "<a href=\"#parentMethod()\">parentMethod</a></span>()</code></th>\n"
 118                 + "<td class=\"colLast\">\n"
 119                 + "<div class=\"block\">Returns some value.</div>\n"
 120                 + "</td>\n");
 121 
 122         checkOutput("pkg2/DocumentedNonGenericChild.html", true,
 123                 "<h3><a id=\"parentMethod()\">parentMethod</a></h3>\n"

 124                 + "<div class=\"memberSignature\"><span class=\"modifiers\">protected abstract</span>"
 125                 + "&nbsp;<span class=\"returnType\">java.lang.String</span>&nbsp;"
 126                 + "<span class=\"memberName\">parentMethod</span>()</div>");
 127 
 128     }
 129 }


  54                 "<a href=\"BaseClass.html#pubField\">",
  55                 // Public method should be inherited
  56                 "<a href=\"BaseClass.html#pubMethod()\">",
  57                 // Public inner class should be inherited.
  58                 "<a href=\"BaseClass.pubInnerClass.html\" title=\"class in pkg\">",
  59                 // Protected field should be inherited
  60                 "<a href=\"BaseClass.html#proField\">",
  61                 // Protected method should be inherited
  62                 "<a href=\"BaseClass.html#proMethod()\">",
  63                 // Protected inner class should be inherited.
  64                 "<a href=\"BaseClass.proInnerClass.html\" title=\"class in pkg\">",
  65                 // New labels as of 1.5.0
  66                 "Nested classes/interfaces inherited from class&nbsp;pkg."
  67                 + "<a href=\"BaseClass.html\" title=\"class in pkg\">BaseClass</a>",
  68                 "Nested classes/interfaces inherited from interface&nbsp;pkg."
  69                 + "<a href=\"BaseInterface.html\" title=\"interface in pkg\">BaseInterface</a>");
  70 
  71         checkOutput("pkg/BaseClass.html", true,
  72                 // Test overriding/implementing methods with generic parameters.
  73                 "<dl>\n"
  74                 + "<dt><span class=\"overrideSpecifyLabel\">Specified by:</span></dt>\n"
  75                 + "<dd><code><a href=\"BaseInterface.html#getAnnotation(java.lang.Class)\">"
  76                 + "getAnnotation</a></code>&nbsp;in interface&nbsp;<code>"
  77                 + "<a href=\"BaseInterface.html\" title=\"interface in pkg\">"
  78                 + "BaseInterface</a></code></dd>\n"
  79                 + "</dl>");
  80 
  81         checkOutput("diamond/Z.html", true,
  82                 // Test diamond inheritance member summary (6256068)
  83                 "<code><a href=\"A.html#aMethod()\">aMethod</a></code>");
  84 
  85         checkOutput("inheritDist/C.html", true,
  86                 // Test that doc is inherited from closed parent (6270645)
  87                 "<div class=\"block\">m1-B</div>");
  88 
  89         checkOutput("pkg/SubClass.html", false,
  90                 "<a href=\"BaseClass.html#staticMethod()\">staticMethod</a></code>");
  91 
  92         checkOutput("pkg1/Implementer.html", true,
  93                 // ensure the method makes it
  94                 "<td class=\"colFirst\"><code>static java.time.Period</code></td>\n"
  95                 + "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\">"
  96                 + "<a href=\"#between(java.time.LocalDate,java.time.LocalDate)\">"
  97                 + "between</a></span>​(java.time.LocalDate&nbsp;startDateInclusive,\n"
  98                 + "java.time.LocalDate&nbsp;endDateExclusive)</code></th>");
  99 
 100         checkOutput("pkg1/Implementer.html", false,
 101                 "<h3>Methods inherited from interface&nbsp;pkg1.<a href=\"Interface.html\""
 102                 + " title=\"interface in pkg1\">Interface</a></h3>\n"
 103                 + "<code><a href=\"Interface.html#between(java.time.chrono.ChronoLocalDate"
 104                 + ",java.time.chrono.ChronoLocalDate)\">between</a></code>"
 105         );
 106 
 107         checkOutput("pkg2/DocumentedNonGenericChild.html", true,
 108                 "<section class=\"description\">\n<hr>\n"
 109                 + "<pre>public abstract class <span class=\"typeNameLabel\">"
 110                 + "DocumentedNonGenericChild</span>\n"
 111                 + "extends java.lang.Object</pre>\n"
 112                 + "</section>");
 113 
 114         checkOutput("pkg2/DocumentedNonGenericChild.html", true,
 115                 "<td class=\"colFirst\"><code>protected abstract java.lang.String</code></td>\n"
 116                 + "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\">"
 117                 + "<a href=\"#parentMethod()\">parentMethod</a></span>()</code></th>\n"
 118                 + "<td class=\"colLast\">\n"
 119                 + "<div class=\"block\">Returns some value.</div>\n"
 120                 + "</td>\n");
 121 
 122         checkOutput("pkg2/DocumentedNonGenericChild.html", true,
 123                 "<section class=\"detail\" id=\"parentMethod()\">\n"
 124                 + "<h3>parentMethod</h3>\n"
 125                 + "<div class=\"memberSignature\"><span class=\"modifiers\">protected abstract</span>"
 126                 + "&nbsp;<span class=\"returnType\">java.lang.String</span>&nbsp;"
 127                 + "<span class=\"memberName\">parentMethod</span>()</div>");
 128 
 129     }
 130 }
< prev index next >