< prev index next >

langtools/test/tools/javadoc/sampleapi/lib/sampleapi/generator/DocCommentGenerator.java

Print this page




 146             return next;
 147         }
 148 
 149         public static String nextLink() {
 150             String next = "Also check "
 151                           + (((index % 2) == 0) ? "{@link " : "{@linkplain ")
 152                           + links[index]
 153                           + "} for details.\n";
 154             index = (index + 1) % links.length;
 155             return next;
 156         }
 157     }
 158 
 159     public static class VersionTag {
 160 
 161         static String[] versions = new String[] {
 162             "1.5, 09/01/04",
 163             "1.6, 12/11/06",
 164             "1.7, 07/28/11",
 165             "1.8, 04/19/14",
 166             "1.9, 06/03/16" };
 167 
 168         static int index = 0;
 169 
 170         public static String nextVersion() {
 171             String next = "@version " + versions[index];
 172             index = (index + 1) % versions.length;
 173             return next;
 174         }
 175     }
 176 
 177     //
 178     // getters (build comments for entities)
 179     //
 180 
 181     public String getPackageComment() {
 182         return Text.LOREMIPSUM
 183                + "\n <p>" + Text.LIEUROPANLINGUES
 184                + "\n" + Text.CODE
 185                + "\n" + LinkTag.nextLink()
 186                + "\n" + LinkTag.nextSee()




 146             return next;
 147         }
 148 
 149         public static String nextLink() {
 150             String next = "Also check "
 151                           + (((index % 2) == 0) ? "{@link " : "{@linkplain ")
 152                           + links[index]
 153                           + "} for details.\n";
 154             index = (index + 1) % links.length;
 155             return next;
 156         }
 157     }
 158 
 159     public static class VersionTag {
 160 
 161         static String[] versions = new String[] {
 162             "1.5, 09/01/04",
 163             "1.6, 12/11/06",
 164             "1.7, 07/28/11",
 165             "1.8, 04/19/14",
 166             "9,   06/03/16" };
 167 
 168         static int index = 0;
 169 
 170         public static String nextVersion() {
 171             String next = "@version " + versions[index];
 172             index = (index + 1) % versions.length;
 173             return next;
 174         }
 175     }
 176 
 177     //
 178     // getters (build comments for entities)
 179     //
 180 
 181     public String getPackageComment() {
 182         return Text.LOREMIPSUM
 183                + "\n <p>" + Text.LIEUROPANLINGUES
 184                + "\n" + Text.CODE
 185                + "\n" + LinkTag.nextLink()
 186                + "\n" + LinkTag.nextSee()


< prev index next >