< prev index next >

make/jdk/src/classes/build/tools/jdwpgen/ErrorSetNode.java

Print this page




  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package build.tools.jdwpgen;
  27 
  28 import java.io.*;
  29 
  30 class ErrorSetNode extends AbstractSimpleNode {
  31 
  32     void constrainComponent(Context ctx, Node node) {
  33         if (node instanceof ErrorNode) {
  34             node.constrain(ctx);
  35         } else {
  36             error("Expected 'Error' item, got: " + node);
  37         }
  38     }
  39 
  40     void document(PrintWriter writer) {
  41         writer.println("<dt>Error Data</dt>");
  42         writer.print("<dd>");
  43         if (components.isEmpty()) {
  44             writer.println("(None)");
  45         } else {
  46             writer.println("<table><tr>");
  47             writer.println("<th class=\"bold\" style=\"width: 20%\" scope=\"col\">Value");
  48             writer.println("<th class=\"bold\" scope=\"col\">Description");
  49             writer.println("</tr>");
  50             for (Node node : components) {
  51                 node.document(writer);
  52             }
  53             writer.println("</table>");
  54         }
  55         writer.print("</dd>");
  56     }
  57 
  58     void genJavaComment(PrintWriter writer, int depth) {}
  59 
  60     void genJava(PrintWriter writer, int depth) {}
  61 
  62     void genCInclude(PrintWriter writer) {}
  63 
  64     void genJavaDebugWrite(PrintWriter writer, int depth,
  65                            String writeLabel) {}
  66 
  67     void genJavaDebugWrite(PrintWriter writer, int depth,
  68                            String writeLabel, String displayValue) {}
  69 
  70     public void genJavaRead(PrintWriter writer, int depth,
  71                             String readLabel) {}
  72 
  73     void genJavaDebugRead(PrintWriter writer, int depth,
  74                           String readLabel, String displayValue) {}
  75 


  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package build.tools.jdwpgen;
  27 
  28 import java.io.*;
  29 
  30 class ErrorSetNode extends AbstractSimpleNode {
  31 
  32     void constrainComponent(Context ctx, Node node) {
  33         if (node instanceof ErrorNode) {
  34             node.constrain(ctx);
  35         } else {
  36             error("Expected 'Error' item, got: " + node);
  37         }
  38     }
  39 
  40     void document(PrintWriter writer) {
  41 
  42         writer.println("<dt>" + "Error Data");
  43         if (components.isEmpty()) {
  44             writer.println("<dd>(None)");
  45         } else {
  46             writer.println("<dd><table>");
  47         for (Node node : components) {
  48             node.document(writer);
  49         }
  50         writer.println("</table>");



  51         }

  52     }
  53 
  54     void genJavaComment(PrintWriter writer, int depth) {}
  55 
  56     void genJava(PrintWriter writer, int depth) {}
  57 
  58     void genCInclude(PrintWriter writer) {}
  59 
  60     void genJavaDebugWrite(PrintWriter writer, int depth,
  61                            String writeLabel) {}
  62 
  63     void genJavaDebugWrite(PrintWriter writer, int depth,
  64                            String writeLabel, String displayValue) {}
  65 
  66     public void genJavaRead(PrintWriter writer, int depth,
  67                             String readLabel) {}
  68 
  69     void genJavaDebugRead(PrintWriter writer, int depth,
  70                           String readLabel, String displayValue) {}
  71 
< prev index next >