test/langtools/jdk/javadoc/doclet/testOverridenMethods/pkg5/Interfaces.java
changeset 48346 1f38b6c89f8a
parent 48345 4966e9237b88
parent 48292 191ae61bd1e9
child 48347 4f9683bf0923
equal deleted inserted replaced
48345:4966e9237b88 48346:1f38b6c89f8a
     1 /*
       
     2  * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
       
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       
     4  *
       
     5  * This code is free software; you can redistribute it and/or modify it
       
     6  * under the terms of the GNU General Public License version 2 only, as
       
     7  * published by the Free Software Foundation.
       
     8  *
       
     9  * This code is distributed in the hope that it will be useful, but WITHOUT
       
    10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
       
    11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
       
    12  * version 2 for more details (a copy is included in the LICENSE file that
       
    13  * accompanied this code).
       
    14  *
       
    15  * You should have received a copy of the GNU General Public License version
       
    16  * 2 along with this work; if not, write to the Free Software Foundation,
       
    17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
       
    18  *
       
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
       
    20  * or visit www.oracle.com if you need additional information or have any
       
    21  * questions.
       
    22  */
       
    23 
       
    24 package pkg5;
       
    25 
       
    26 public class Interfaces {
       
    27      public interface A {
       
    28 
       
    29          /** field f in A */
       
    30          public int f = 0;
       
    31 
       
    32          /** A property in parent */
       
    33          DoubleProperty rate = null;
       
    34          public void setRate(double l);
       
    35          public double getRate();
       
    36          public DoubleProperty rateProperty();
       
    37          // A support class
       
    38          public interface DoubleProperty {}
       
    39 
       
    40          /** AA in A */
       
    41          public interface AA {}
       
    42 
       
    43          /** m0 in A */
       
    44          public void m0();
       
    45 
       
    46          /** m1 in A */
       
    47          public void m1();
       
    48 
       
    49          /** m2 in A */
       
    50          public void m2();
       
    51 
       
    52          /** m3 in A */
       
    53          public void m3();
       
    54      }
       
    55 
       
    56      public interface B extends A {
       
    57          // No comment
       
    58          public void m0();
       
    59 
       
    60          /** m1 in B */
       
    61          public void m1();
       
    62 
       
    63          /** {@inheritDoc} */
       
    64          public void m2();
       
    65 
       
    66          /** @throws Exception e */
       
    67          public void m3() throws Exception;
       
    68 
       
    69          /** n in B */
       
    70          public void n();
       
    71      }
       
    72 
       
    73      public interface C extends A, B  {
       
    74          /** m in C */
       
    75          public void m();
       
    76 
       
    77          /** o in C */
       
    78          public void o();
       
    79      }
       
    80 
       
    81     /**
       
    82      * The child of all children.
       
    83      *
       
    84      * Start of links <p>
       
    85      * {@link m0},
       
    86      * {@link m1},
       
    87      * {@link m2},
       
    88      * {@link m3},
       
    89      * {@link m},
       
    90      * {@link n},
       
    91      * {@link o},
       
    92      * End of links
       
    93      *
       
    94      * @see #m0()
       
    95      * @see #m1()
       
    96      * @see #m2()
       
    97      * @see #m3()
       
    98      * @see #m
       
    99      * @see #n
       
   100      * @see #o
       
   101      */
       
   102     public interface D extends A, B, C {
       
   103          /** m in D */
       
   104          public void m();
       
   105 
       
   106          /** n in D */
       
   107          public void n();
       
   108 
       
   109          // no comment
       
   110          public void o();
       
   111      }
       
   112  }