make/jdk/src/classes/build/tools/jdwpgen/ConstantNode.java
changeset 58057 f894baf8d871
parent 57916 97257da4ac8d
child 58679 9c3209ff7550
equal deleted inserted replaced
58056:db92a157dd70 58057:f894baf8d871
    53                        nameNode.value() + ";");
    53                        nameNode.value() + ";");
    54     }
    54     }
    55 
    55 
    56     void document(PrintWriter writer) {
    56     void document(PrintWriter writer) {
    57         //Add anchor to each constant with format <constant table name>_<constant name>
    57         //Add anchor to each constant with format <constant table name>_<constant name>
       
    58         if (!(parent instanceof AbstractNamedNode)) {
       
    59             error("Parent must be ConstantSetNode, but it's " + parent.getClass().getSimpleName());
       
    60         }
       
    61         String tableName = ((AbstractNamedNode)parent).name;
    58         writer.println("<tr>"
    62         writer.println("<tr>"
    59                         + "<th scope=\"row\">" + name
    63                         + "<th scope=\"row\">"
       
    64                             + "<span id=\"" + tableName + "_" + name + "\"></span>"
       
    65                             + name
    60                         + "<td class=\"centered\">" + nameNode.value()
    66                         + "<td class=\"centered\">" + nameNode.value()
    61                         + "<td>" + comment() + "&nbsp;"
    67                         + "<td>" + comment() + "&nbsp;"
    62                     + "</tr>");
    68                     + "</tr>");
    63     }
    69     }
    64 
    70