2015-11-29 02:52:17 +00:00
|
|
|
/*
|
2021-01-25 21:45:54 +00:00
|
|
|
* Copyright (c) 2012, 2021, Oracle and/or its affiliates. All rights reserved.
|
2015-11-29 02:52:17 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
*
|
|
|
|
* This code is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License version 2 only, as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
* version 2 for more details (a copy is included in the LICENSE file that
|
|
|
|
* accompanied this code).
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License version
|
|
|
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
|
|
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*
|
|
|
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
|
|
* or visit www.oracle.com if you need additional information or have any
|
|
|
|
* questions.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @test
|
2017-04-20 21:37:15 +00:00
|
|
|
* @bug 7112427 8012295 8025633 8026567 8061305 8081854 8150130 8162363
|
2018-04-24 18:54:03 +00:00
|
|
|
* 8167967 8172528 8175200 8178830 8182257 8186332 8182765 8025091
|
2021-02-23 18:55:13 +00:00
|
|
|
* 8203791 8184205 8249633 8261976
|
2015-11-29 02:52:17 +00:00
|
|
|
* @summary Test of the JavaFX doclet features.
|
2018-12-21 18:38:33 +00:00
|
|
|
* @library ../../lib
|
8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Co-authored-by: Vicente Romero <vicente.romero@oracle.com>
Co-authored-by: Andreas Lundblad <andreas.lundblad@oracle.com>
Co-authored-by: Andrey Nazarov <andrey.x.nazarov@oracle.com>
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Kumar Srinivasan <kumar.x.srinivasan@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: jjg, jlahoda, vromero, mcimadamore, bpatel, ksrini, darcy, anazarov, dfuchs
2016-03-17 19:04:28 +00:00
|
|
|
* @modules jdk.javadoc/jdk.javadoc.internal.tool
|
2018-12-21 18:38:33 +00:00
|
|
|
* @build javadoc.tester.*
|
2015-11-29 02:52:17 +00:00
|
|
|
* @run main TestJavaFX
|
|
|
|
*/
|
|
|
|
|
2021-01-06 19:26:17 +00:00
|
|
|
import java.io.IOException;
|
|
|
|
import java.nio.file.Files;
|
|
|
|
import java.nio.file.Path;
|
|
|
|
|
2018-12-21 18:38:33 +00:00
|
|
|
import javadoc.tester.JavadocTester;
|
|
|
|
|
2015-11-29 02:52:17 +00:00
|
|
|
public class TestJavaFX extends JavadocTester {
|
|
|
|
|
|
|
|
public static void main(String... args) throws Exception {
|
|
|
|
TestJavaFX tester = new TestJavaFX();
|
2020-06-18 21:07:49 +00:00
|
|
|
tester.setAutomaticCheckAccessibility(false);
|
|
|
|
tester.setAutomaticCheckLinks(false);
|
2015-11-29 02:52:17 +00:00
|
|
|
tester.runTests();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Test
|
2018-12-21 18:38:33 +00:00
|
|
|
public void test1() {
|
2015-11-29 02:52:17 +00:00
|
|
|
javadoc("-d", "out1",
|
|
|
|
"-sourcepath", testSrc,
|
|
|
|
"-javafx",
|
2018-04-24 18:54:03 +00:00
|
|
|
"--disable-javafx-strict-checks",
|
2021-08-24 16:10:25 +00:00
|
|
|
"-Xdoclint:all,-missing",
|
2015-11-29 02:52:17 +00:00
|
|
|
"-package",
|
|
|
|
"pkg1");
|
|
|
|
checkExit(Exit.OK);
|
|
|
|
|
|
|
|
checkOutput("pkg1/C.html", true,
|
2020-05-05 20:02:30 +00:00
|
|
|
"""
|
|
|
|
<dt>See Also:</dt>
|
2021-05-07 10:45:48 +00:00
|
|
|
<dd>
|
|
|
|
<ul class="see-list">
|
|
|
|
<li><a href="#getRate()"><code>getRate()</code></a></li>
|
|
|
|
<li><a href="#setRate(double)"><code>setRate(double)</code></a></li>
|
|
|
|
</ul>
|
|
|
|
</dd>""",
|
2020-05-05 20:02:30 +00:00
|
|
|
"""
|
|
|
|
<div class="member-signature"><span class="modifiers">public final</span> <\
|
2021-05-10 20:25:43 +00:00
|
|
|
span class="return-type">void</span> <span class="element-name">setRate</span><wbr>\
|
|
|
|
<span class="parameters">(double value)</span></div>
|
2021-09-08 17:38:05 +00:00
|
|
|
<div class="block">Sets the value of the <code>rate</code> property.</div>
|
2020-05-05 20:02:30 +00:00
|
|
|
<dl class="notes">
|
|
|
|
<dt>Property description:</dt>""",
|
|
|
|
"""
|
|
|
|
<div class="member-signature"><span class="modifiers">public final</span> <\
|
2020-11-27 19:12:31 +00:00
|
|
|
span class="return-type">double</span> <span class="element-name">getRate</span>()<\
|
|
|
|
/div>
|
2021-09-08 17:38:05 +00:00
|
|
|
<div class="block">Gets the value of the <code>rate</code> property.</div>
|
2020-05-05 20:02:30 +00:00
|
|
|
<dl class="notes">
|
|
|
|
<dt>Property description:</dt>""",
|
|
|
|
"""
|
2021-04-30 09:48:09 +00:00
|
|
|
<div class="col-first odd-row-color"><code>final <a href="C.DoubleProperty.html" title\
|
2021-02-12 08:32:47 +00:00
|
|
|
="class in pkg1">C.DoubleProperty</a></code></div>
|
|
|
|
<div class="col-second odd-row-color"><code><a href="#rateProperty" class="membe\
|
|
|
|
r-name-link">rate</a></code></div>
|
2020-10-12 09:36:43 +00:00
|
|
|
<div class="col-last odd-row-color">
|
2020-05-05 20:02:30 +00:00
|
|
|
<div class="block">Defines the direction/speed at which the <code>Timeline</code> is expected to
|
2020-10-12 09:36:43 +00:00
|
|
|
be played.</div>""",
|
2020-02-27 20:16:03 +00:00
|
|
|
"<dt>Default value:</dt>",
|
2020-05-05 20:02:30 +00:00
|
|
|
"""
|
|
|
|
<dt>Since:</dt>
|
|
|
|
<dd>JavaFX 8.0</dd>""",
|
2020-02-27 20:16:03 +00:00
|
|
|
"<dt>Property description:</dt>",
|
2020-05-05 20:02:30 +00:00
|
|
|
"""
|
2021-01-25 21:45:54 +00:00
|
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-\
|
2021-02-12 08:32:47 +00:00
|
|
|
tab2 method-summary-table-tab4"><code><a href="#setTestMethodProperty()" class="\
|
|
|
|
member-name-link">setTestMethodProperty</a>()</code></div>""",
|
2020-05-05 20:02:30 +00:00
|
|
|
"""
|
2021-02-12 08:32:47 +00:00
|
|
|
<div class="col-second even-row-color"><code><a href="#pausedProperty" class="me\
|
|
|
|
mber-name-link">paused</a></code></div>
|
2020-10-12 09:36:43 +00:00
|
|
|
<div class="col-last even-row-color">
|
2020-05-05 20:02:30 +00:00
|
|
|
<div class="block">Defines if paused.</div>""",
|
|
|
|
"""
|
|
|
|
<section class="detail" id="pausedProperty">
|
|
|
|
<h3>paused</h3>
|
|
|
|
<div class="member-signature"><span class="modifiers">public final</span> <\
|
|
|
|
span class="return-type"><a href="C.BooleanProperty.html" title="class in pkg1">\
|
2020-11-27 19:12:31 +00:00
|
|
|
C.BooleanProperty</a></span> <span class="element-name">pausedProperty</span></div>
|
2020-05-05 20:02:30 +00:00
|
|
|
<div class="block">Defines if paused. The second line.</div>""",
|
|
|
|
"""
|
|
|
|
<section class="detail" id="isPaused()">
|
|
|
|
<h3>isPaused</h3>
|
|
|
|
<div class="member-signature"><span class="modifiers">public final</span> <\
|
2021-05-10 20:25:43 +00:00
|
|
|
span class="return-type">double</span> <span class="element-name">isPaused<\
|
|
|
|
/span>()</div>
|
2021-09-08 17:38:05 +00:00
|
|
|
<div class="block">Gets the value of the <code>paused</code> property.</div>""",
|
2020-05-05 20:02:30 +00:00
|
|
|
"""
|
|
|
|
<section class="detail" id="setPaused(boolean)">
|
|
|
|
<h3>setPaused</h3>
|
|
|
|
<div class="member-signature"><span class="modifiers">public final</span> <\
|
2021-05-10 20:25:43 +00:00
|
|
|
span class="return-type">void</span> <span class="element-name">setPaused</\
|
|
|
|
span><wbr><span class="parameters">(boolean value)</span></div>
|
2021-09-08 17:38:05 +00:00
|
|
|
<div class="block">Sets the value of the <code>paused</code> property.</div>
|
2020-05-05 20:02:30 +00:00
|
|
|
<dl class="notes">
|
|
|
|
<dt>Property description:</dt>
|
|
|
|
<dd>Defines if paused. The second line.</dd>
|
|
|
|
<dt>Default value:</dt>
|
|
|
|
<dd>false</dd>""",
|
|
|
|
"""
|
|
|
|
<section class="detail" id="isPaused()">
|
|
|
|
<h3>isPaused</h3>
|
|
|
|
<div class="member-signature"><span class="modifiers">public final</span> <\
|
2021-05-10 20:25:43 +00:00
|
|
|
span class="return-type">double</span> <span class="element-name">isPaused<\
|
|
|
|
/span>()</div>
|
2021-09-08 17:38:05 +00:00
|
|
|
<div class="block">Gets the value of the <code>paused</code> property.</div>
|
2020-05-05 20:02:30 +00:00
|
|
|
<dl class="notes">
|
|
|
|
<dt>Property description:</dt>
|
|
|
|
<dd>Defines if paused. The second line.</dd>
|
|
|
|
<dt>Default value:</dt>
|
|
|
|
<dd>false</dd>""",
|
|
|
|
"""
|
|
|
|
<section class="detail" id="rateProperty">
|
|
|
|
<h3>rate</h3>
|
|
|
|
<div class="member-signature"><span class="modifiers">public final</span> <\
|
|
|
|
span class="return-type"><a href="C.DoubleProperty.html" title="class in pkg1">C\
|
2020-11-27 19:12:31 +00:00
|
|
|
.DoubleProperty</a></span> <span class="element-name">rateProperty</span></div>
|
2020-05-05 20:02:30 +00:00
|
|
|
<div class="block">Defines the direction/speed at which the <code>Timeline</code> is expected to
|
|
|
|
be played. This is the second line.</div>""",
|
|
|
|
"""
|
2021-09-08 17:38:05 +00:00
|
|
|
<section class="detail" id="setRate(double)">
|
|
|
|
<h3>setRate</h3>
|
|
|
|
<div class="member-signature"><span class="modifiers">public final</span> <\
|
|
|
|
span class="return-type">void</span> <span class="element-name">setRate</sp\
|
|
|
|
an><wbr><span class="parameters">(double value)</span></div>
|
|
|
|
<div class="block">Sets the value of the <code>rate</code> property.</div>
|
|
|
|
<dl class="notes">
|
|
|
|
<dt>Property description:</dt>
|
|
|
|
<dd>Defines the direction/speed at which the <code>Timeline</code> is expected to
|
|
|
|
be played. This is the second line.</dd>
|
|
|
|
<dt>Default value:</dt>
|
|
|
|
<dd>11</dd>
|
|
|
|
<dt>Parameters:</dt>
|
|
|
|
<dd><code>value</code> - the value for the <code>rate</code> property</dd>
|
|
|
|
<dt>Since:</dt>
|
|
|
|
<dd>JavaFX 8.0</dd>""",
|
|
|
|
"""
|
|
|
|
<section class="detail" id="getRate()">
|
|
|
|
<h3>getRate</h3>
|
|
|
|
<div class="member-signature"><span class="modifiers">public final</span> <\
|
|
|
|
span class="return-type">double</span> <span class="element-name">getRate</span>()<\
|
|
|
|
/div>
|
|
|
|
<div class="block">Gets the value of the <code>rate</code> property.</div>
|
|
|
|
<dl class="notes">
|
|
|
|
<dt>Property description:</dt>
|
|
|
|
<dd>Defines the direction/speed at which the <code>Timeline</code> is expected to
|
|
|
|
be played. This is the second line.</dd>
|
|
|
|
<dt>Default value:</dt>
|
|
|
|
<dd>11</dd>
|
|
|
|
<dt>Returns:</dt>
|
|
|
|
<dd>the value of the <code>rate</code> property</dd>
|
|
|
|
<dt>Since:</dt>
|
|
|
|
<dd>JavaFX 8.0</dd>""",
|
2020-05-05 20:02:30 +00:00
|
|
|
"""
|
2021-02-23 18:55:13 +00:00
|
|
|
<section class="property-summary" id="property-summary">
|
2020-05-05 20:02:30 +00:00
|
|
|
<h2>Property Summary</h2>
|
2020-10-12 09:36:43 +00:00
|
|
|
<div class="caption"><span>Properties</span></div>
|
|
|
|
<div class="summary-table three-column-summary">""",
|
2020-05-05 20:02:30 +00:00
|
|
|
"""
|
2021-04-30 09:48:09 +00:00
|
|
|
<div class="col-first even-row-color"><code>final <a href="C.BooleanProperty.html" title="class in pkg1">C.BooleanProperty</a></code></div>
|
2020-05-05 20:02:30 +00:00
|
|
|
""",
|
|
|
|
"""
|
2021-04-30 09:48:09 +00:00
|
|
|
<div class="col-first odd-row-color"><code>final <a href="C.DoubleProperty.html" title="class in pkg1">C.DoubleProperty</a></code></div>
|
2020-05-05 20:02:30 +00:00
|
|
|
""");
|
2015-11-29 02:52:17 +00:00
|
|
|
|
|
|
|
checkOutput("pkg1/C.html", false,
|
2017-02-02 04:14:52 +00:00
|
|
|
"A()",
|
2020-05-05 20:02:30 +00:00
|
|
|
"""
|
2020-10-12 09:36:43 +00:00
|
|
|
<h2>Property Summary</h2>
|
|
|
|
<div id="method-summary-table">
|
|
|
|
<div class="table-tabs" role="tablist" aria-orientation="horizontal">\
|
|
|
|
<button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-cont\
|
|
|
|
rols="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" o\
|
|
|
|
nclick="show('method-summary-table', 'method-summary-table', 3)" class="active-t\
|
|
|
|
able-tab">All Methods</button>\
|
|
|
|
<button id="method-summary-table-tab2" role="tab" aria-selected="false" aria-con\
|
|
|
|
trols="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)"\
|
|
|
|
onclick="show('method-summary-table', 'method-summary-table-tab2', 3)" class="t\
|
|
|
|
able-tab">Instance Methods</button>\
|
|
|
|
<button id="method-summary-table-tab4" role="tab" aria-selected="false" aria-con\
|
|
|
|
trols="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)"\
|
|
|
|
onclick="show('method-summary-table', 'method-summary-table-tab4', 3)" class="t\
|
|
|
|
able-tab">Concrete Methods</button>\
|
|
|
|
</div>""",
|
2020-05-05 20:02:30 +00:00
|
|
|
"""
|
2020-10-12 09:36:43 +00:00
|
|
|
<tr id="i0" class="even-row-color">
|
2020-05-05 20:02:30 +00:00
|
|
|
<td class="col-first"><code><a href="C.BooleanProperty.html" title="class in pkg1">C.BooleanProperty</a></code></td>
|
|
|
|
""",
|
|
|
|
"""
|
2020-10-12 09:36:43 +00:00
|
|
|
<tr id="i1" class="odd-row-color">
|
2020-05-05 20:02:30 +00:00
|
|
|
<td class="col-first"><code><a href="C.DoubleProperty.html" title="class in pkg1">C.DoubleProperty</a></code></td>
|
|
|
|
""");
|
2015-11-29 02:52:17 +00:00
|
|
|
|
2016-10-10 18:21:00 +00:00
|
|
|
checkOutput("index-all.html", true,
|
2020-05-05 20:02:30 +00:00
|
|
|
"""
|
2021-09-08 17:38:05 +00:00
|
|
|
<div class="block">Gets the value of the <code>paused</code> property.</div>""",
|
2020-05-05 20:02:30 +00:00
|
|
|
"""
|
|
|
|
<div class="block">Defines if paused.</div>""");
|
2016-10-10 18:21:00 +00:00
|
|
|
|
2015-11-29 02:52:17 +00:00
|
|
|
checkOutput("pkg1/D.html", true,
|
2020-05-05 20:02:30 +00:00
|
|
|
"""
|
2021-02-23 18:55:13 +00:00
|
|
|
<h3 id="properties-inherited-from-class-pkg1.C">Properties inherited from class&\
|
2020-05-05 20:02:30 +00:00
|
|
|
nbsp;pkg1.<a href="C.html" title="class in pkg1">C</a></h3>
|
|
|
|
<code><a href="C.html#pausedProperty">paused</a>, <a href="C.html#rateProperty">rate</a></code></div>""");
|
2015-11-29 02:52:17 +00:00
|
|
|
|
|
|
|
checkOutput("pkg1/D.html", false, "shouldNotAppear");
|
|
|
|
}
|
2018-03-06 18:45:47 +00:00
|
|
|
|
2015-11-29 02:52:17 +00:00
|
|
|
/*
|
|
|
|
* Test with -javafx option enabled, to ensure property getters and setters
|
|
|
|
* are treated correctly.
|
|
|
|
*/
|
|
|
|
@Test
|
2018-12-21 18:38:33 +00:00
|
|
|
public void test2() {
|
2015-11-29 02:52:17 +00:00
|
|
|
javadoc("-d", "out2a",
|
|
|
|
"-sourcepath", testSrc,
|
|
|
|
"-javafx",
|
2018-04-24 18:54:03 +00:00
|
|
|
"--disable-javafx-strict-checks",
|
2020-10-07 13:08:34 +00:00
|
|
|
"--no-platform-links",
|
2021-08-24 16:10:25 +00:00
|
|
|
"-Xdoclint:all,-missing",
|
2015-11-29 02:52:17 +00:00
|
|
|
"-package",
|
|
|
|
"pkg2");
|
|
|
|
checkExit(Exit.OK);
|
|
|
|
checkOutput("pkg2/Test.html", true,
|
2020-05-05 20:02:30 +00:00
|
|
|
"""
|
2021-08-24 16:10:25 +00:00
|
|
|
<section class="property-details" id="property-detail">
|
|
|
|
<h2>Property Details</h2>
|
|
|
|
<ul class="member-list">
|
|
|
|
<li>
|
|
|
|
<section class="detail" id="betaProperty">
|
|
|
|
<h3>beta</h3>
|
|
|
|
<div class="member-signature"><span class="modifiers">public</span> <span c\
|
|
|
|
lass="return-type">java.lang.Object</span> <span class="element-name">betaProperty<\
|
|
|
|
/span></div>
|
|
|
|
<dl class="notes">
|
|
|
|
<dt>See Also:</dt>
|
|
|
|
<dd>
|
|
|
|
<ul class="see-list">
|
|
|
|
<li><a href="#betaProperty()"><code>betaProperty()</code></a></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
</section>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<section class="detail" id="gammaProperty">
|
|
|
|
<h3>gamma</h3>
|
|
|
|
<div class="member-signature"><span class="modifiers">public final</span> <\
|
|
|
|
span class="return-type">java.util.List<java.lang.String></span> <spa\
|
|
|
|
n class="element-name">gammaProperty</span></div>
|
|
|
|
<dl class="notes">
|
|
|
|
<dt>See Also:</dt>
|
|
|
|
<dd>
|
|
|
|
<ul class="see-list">
|
|
|
|
<li><a href="#gammaProperty()"><code>gammaProperty()</code></a></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
</section>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<section class="detail" id="deltaProperty">
|
|
|
|
<h3>delta</h3>
|
|
|
|
<div class="member-signature"><span class="modifiers">public final</span> <\
|
|
|
|
span class="return-type">java.util.List<java.util.Set<? super java.lang.Ob\
|
|
|
|
ject>></span> <span class="element-name">deltaProperty</span></div>
|
|
|
|
<dl class="notes">
|
|
|
|
<dt>See Also:</dt>
|
|
|
|
<dd>
|
|
|
|
<ul class="see-list">
|
|
|
|
<li><a href="#deltaProperty()"><code>deltaProperty()</code></a></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
</section>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</section>""",
|
2020-05-05 20:02:30 +00:00
|
|
|
"""
|
2021-02-23 18:55:13 +00:00
|
|
|
<section class="property-summary" id="property-summary">
|
2020-05-05 20:02:30 +00:00
|
|
|
<h2>Property Summary</h2>
|
2020-10-12 09:36:43 +00:00
|
|
|
<div class="caption"><span>Properties</span></div>
|
|
|
|
<div class="summary-table three-column-summary">""");
|
2017-02-02 04:14:52 +00:00
|
|
|
|
|
|
|
checkOutput("pkg2/Test.html", false,
|
2020-05-05 20:02:30 +00:00
|
|
|
"""
|
|
|
|
<h2>Property Summary</h2>
|
2020-10-12 09:36:43 +00:00
|
|
|
<div id="method-summary-table">
|
|
|
|
<div class="table-tabs" role="tablist" aria-orientation="horizontal">\
|
|
|
|
<button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-cont\
|
|
|
|
rols="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" o\
|
|
|
|
nclick="show('method-summary-table', 'method-summary-table', 3)" class="active-t\
|
|
|
|
able-tab">All Methods</button>\
|
|
|
|
<button id="method-summary-table-tab2" role="tab" aria-selected="false" aria-con\
|
|
|
|
trols="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)"\
|
|
|
|
onclick="show('method-summary-table', 'method-summary-table-tab2', 3)" class="t\
|
|
|
|
able-tab">Instance Methods</button>\
|
|
|
|
<button id="method-summary-table-tab4" role="tab" aria-selected="false" aria-con\
|
|
|
|
trols="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)"\
|
|
|
|
onclick="show('method-summary-table', 'method-summary-table-tab4', 3)" class="t\
|
|
|
|
able-tab">Concrete Methods</button>\
|
|
|
|
</div>""");
|
2015-11-29 02:52:17 +00:00
|
|
|
}
|
2016-03-03 22:54:44 +00:00
|
|
|
|
2015-11-29 02:52:17 +00:00
|
|
|
/*
|
|
|
|
* Test without -javafx option, to ensure property getters and setters
|
|
|
|
* are treated just like any other java method.
|
|
|
|
*/
|
|
|
|
@Test
|
2018-12-21 18:38:33 +00:00
|
|
|
public void test3() {
|
2015-11-29 02:52:17 +00:00
|
|
|
javadoc("-d", "out2b",
|
|
|
|
"-sourcepath", testSrc,
|
2020-10-07 13:08:34 +00:00
|
|
|
"--no-platform-links",
|
2015-11-29 02:52:17 +00:00
|
|
|
"-package",
|
|
|
|
"pkg2");
|
|
|
|
checkExit(Exit.OK);
|
2019-03-04 19:19:34 +00:00
|
|
|
checkOutput("pkg2/Test.html", false, "<h2>Property Summary</h2>");
|
2018-03-06 18:45:47 +00:00
|
|
|
checkOutput("pkg2/Test.html", true,
|
2020-05-05 20:02:30 +00:00
|
|
|
"""
|
2020-10-12 09:36:43 +00:00
|
|
|
<div class="table-header col-first">Modifier and Type</div>
|
|
|
|
<div class="table-header col-second">Method</div>
|
|
|
|
<div class="table-header col-last">Description</div>
|
2021-01-25 21:45:54 +00:00
|
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-t\
|
|
|
|
ab2 method-summary-table-tab4"><code><T> java.lang.Object</code></div>
|
|
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-\
|
2021-02-12 08:32:47 +00:00
|
|
|
tab2 method-summary-table-tab4"><code><a href="#alphaProperty(java.util.List)" c\
|
2021-05-10 20:25:43 +00:00
|
|
|
lass="member-name-link">alphaProperty</a><wbr>(java.util.List<T> foo)\
|
|
|
|
</code></div>
|
2021-01-25 21:45:54 +00:00
|
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-ta\
|
|
|
|
b2 method-summary-table-tab4"> </div>
|
|
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-ta\
|
|
|
|
b2 method-summary-table-tab4"><code>java.lang.Object</code></div>
|
|
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-t\
|
2021-02-12 08:32:47 +00:00
|
|
|
ab2 method-summary-table-tab4"><code><a href="#betaProperty()" class="member-nam\
|
|
|
|
e-link">betaProperty</a>()</code></div>
|
2021-01-25 21:45:54 +00:00
|
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab\
|
|
|
|
2 method-summary-table-tab4"> </div>
|
|
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-t\
|
2021-04-30 09:48:09 +00:00
|
|
|
ab2 method-summary-table-tab4"><code>final java.util.List<java.util.Set<? \
|
|
|
|
super java.lang.Object>></code></div>
|
2021-01-25 21:45:54 +00:00
|
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-\
|
2021-02-12 08:32:47 +00:00
|
|
|
tab2 method-summary-table-tab4"><code><a href="#deltaProperty()" class="member-n\
|
|
|
|
ame-link">deltaProperty</a>()</code></div>
|
2021-01-25 21:45:54 +00:00
|
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-ta\
|
|
|
|
b2 method-summary-table-tab4"> </div>
|
|
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-ta\
|
2021-04-30 09:48:09 +00:00
|
|
|
b2 method-summary-table-tab4"><code>final java.util.List<java.lang.String>\
|
|
|
|
</code></div>
|
2021-01-25 21:45:54 +00:00
|
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-t\
|
2021-02-12 08:32:47 +00:00
|
|
|
ab2 method-summary-table-tab4"><code><a href="#gammaProperty()" class="member-na\
|
|
|
|
me-link">gammaProperty</a>()</code></div>
|
2021-01-25 21:45:54 +00:00
|
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab\
|
|
|
|
2 method-summary-table-tab4"> </div>"""
|
2018-03-06 18:45:47 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2016-03-03 22:54:44 +00:00
|
|
|
/*
|
|
|
|
* Force the doclet to emit a warning when processing a synthesized,
|
2017-04-20 21:37:15 +00:00
|
|
|
* DocComment, and ensure that the run succeeds, using the newer
|
|
|
|
* --javafx flag.
|
2016-03-03 22:54:44 +00:00
|
|
|
*/
|
|
|
|
@Test
|
2018-12-21 18:38:33 +00:00
|
|
|
public void test4() {
|
2016-03-03 22:54:44 +00:00
|
|
|
javadoc("-d", "out4",
|
2017-04-20 21:37:15 +00:00
|
|
|
"--javafx",
|
2018-04-24 18:54:03 +00:00
|
|
|
"--disable-javafx-strict-checks",
|
2016-03-03 22:54:44 +00:00
|
|
|
"-Xdoclint:none",
|
|
|
|
"-sourcepath", testSrc,
|
|
|
|
"-package",
|
|
|
|
"pkg4");
|
|
|
|
checkExit(Exit.OK);
|
|
|
|
|
|
|
|
// make sure the doclet indeed emits the warning
|
2021-07-08 20:23:02 +00:00
|
|
|
checkOutput(Output.OUT, true, "C.java:31: warning: invalid input: '<'");
|
2016-03-03 22:54:44 +00:00
|
|
|
}
|
2021-01-06 19:26:17 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Verify that no warnings are produced on methods that may have synthesized comments.
|
|
|
|
*/
|
|
|
|
@Test
|
|
|
|
public void test5() throws IOException {
|
|
|
|
Path src5 = Files.createDirectories(Path.of("src5").resolve("pkg"));
|
|
|
|
Files.writeString(src5.resolve("MyClass.java"),
|
|
|
|
"""
|
|
|
|
package pkg;
|
|
|
|
|
|
|
|
// The following import not required with --disable-javafx-strict-checks
|
|
|
|
// import javafx.beans.property.*;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This is my class.
|
|
|
|
*/
|
|
|
|
public class MyClass {
|
|
|
|
/**
|
|
|
|
* This is my property that enables something
|
|
|
|
*/
|
|
|
|
private BooleanProperty something = new SimpleBooleanProperty(false);
|
|
|
|
|
|
|
|
public final boolean isSomething() {
|
|
|
|
return something.get();
|
|
|
|
}
|
|
|
|
|
|
|
|
public final void setSomething(boolean val) {
|
|
|
|
something.set(val);
|
|
|
|
}
|
|
|
|
|
|
|
|
public final BooleanProperty somethingProperty() {
|
|
|
|
return something;
|
|
|
|
}
|
|
|
|
|
|
|
|
/** Dummy declaration. */
|
|
|
|
public class BooleanProperty { }
|
|
|
|
}
|
|
|
|
""");
|
|
|
|
|
|
|
|
javadoc("-d", "out5",
|
|
|
|
"--javafx",
|
|
|
|
"--disable-javafx-strict-checks",
|
2021-05-25 01:33:13 +00:00
|
|
|
"--no-platform-links",
|
2021-08-11 18:03:40 +00:00
|
|
|
"-Xdoclint:all,-missing",
|
2021-01-06 19:26:17 +00:00
|
|
|
"--source-path", "src5",
|
|
|
|
"pkg");
|
|
|
|
checkExit(Exit.OK);
|
|
|
|
|
|
|
|
checkOutput(Output.OUT, false,
|
2021-10-16 03:04:11 +00:00
|
|
|
": warning:",
|
2021-01-06 19:26:17 +00:00
|
|
|
"no comment");
|
|
|
|
}
|
2015-11-29 02:52:17 +00:00
|
|
|
}
|