equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
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 |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
52 error("Expected 'Constant', got: " + node); |
52 error("Expected 'Constant', got: " + node); |
53 } |
53 } |
54 } |
54 } |
55 |
55 |
56 void document(PrintWriter writer) { |
56 void document(PrintWriter writer) { |
57 writer.println("<h4 id=\"" + context.whereC + "\">" + name + |
57 writer.println("<h2 id=\"" + context.whereC + "\">" + name + " Constants</h2>"); |
58 " Constants</h4>"); |
|
59 writer.println(comment()); |
58 writer.println(comment()); |
60 writer.println("<table><tr>"); |
59 writer.println("<table><tr>"); |
61 writer.println("<th style=\"width: 20%\"><th style=\"width: 5%\"><th style=\"width: 65%\">"); |
60 writer.println("<th class=\"bold\" style=\"width: 30%\" scope=\"col\">Name"); |
62 ConstantNode n; |
61 writer.println("<th class=\"centered bold\" style=\"width: 5%\" scope=\"col\">Value"); |
|
62 writer.println("<th class=\"bold\" style=\"width: 65%\" scope=\"col\">Description"); |
|
63 writer.println("</tr>"); |
63 for (Node node : components) { |
64 for (Node node : components) { |
64 n = (ConstantNode)node; |
65 node.document(writer); |
65 writer.println("<span id=\"" + name + "_" + n.name + "\"></span>"); |
|
66 n.document(writer); |
|
67 } |
66 } |
68 writer.println("</table>"); |
67 writer.println("</table>"); |
69 } |
68 } |
70 |
69 |
71 void documentIndex(PrintWriter writer) { |
70 void documentIndex(PrintWriter writer) { |