langtools/test/tools/javac/lib/DPrinter.java
changeset 46184 f1325703ea85
parent 42831 feff6f296019
equal deleted inserted replaced
46183:5091e36e106b 46184:f1325703ea85
     1 /*
     1 /*
     2  * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 2017, 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.
     7  * published by the Free Software Foundation.
  1132         public Void visitStartElement(StartElementTree node, Void p) {
  1132         public Void visitStartElement(StartElementTree node, Void p) {
  1133             printName("name", node.getName());
  1133             printName("name", node.getName());
  1134             printList("attrs", node.getAttributes());
  1134             printList("attrs", node.getAttributes());
  1135             printString("selfClosing", String.valueOf(node.isSelfClosing()));
  1135             printString("selfClosing", String.valueOf(node.isSelfClosing()));
  1136             return visitBlockTag(node, null);
  1136             return visitBlockTag(node, null);
       
  1137         }
       
  1138 
       
  1139         public Void visitSummary(SummaryTree node, Void p) {
       
  1140             printString("name", node.getTagName());
       
  1141             printList("summary", node.getSummary());
       
  1142             return visitInlineTag(node, null);
  1137         }
  1143         }
  1138 
  1144 
  1139         public Void visitText(TextTree node, Void p) {
  1145         public Void visitText(TextTree node, Void p) {
  1140             printLimitedEscapedString("body", node.getBody());
  1146             printLimitedEscapedString("body", node.getBody());
  1141             return visitTree(node, null);
  1147             return visitTree(node, null);