make/jdk/src/classes/build/tools/jdwpgen/CommandSetNode.java
changeset 55568 34c6447cced4
parent 48623 b1006bbb925a
equal deleted inserted replaced
55567:d725c6c93133 55568:34c6447cced4
     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
    36             error("Expected 'Command' item, got: " + node);
    36             error("Expected 'Command' item, got: " + node);
    37         }
    37         }
    38     }
    38     }
    39 
    39 
    40     void document(PrintWriter writer) {
    40     void document(PrintWriter writer) {
    41         writer.println("<h4 id=\"" + context.whereC + "\">" + name +
    41         writer.println("<h2 id=\"" + context.whereC + "\">" + name +
    42                        " Command Set (" +
    42                        " Command Set (" +
    43                        nameNode.value() + ")</h4>");
    43                        nameNode.value() + ")</h2>");
    44         writer.println(comment());
    44         writer.println(comment());
    45         for (Node node : components) {
    45         for (Node node : components) {
    46             node.document(writer);
    46             node.document(writer);
    47         }
    47         }
    48     }
    48     }