langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/tree/DocPretty.java
changeset 37009 476d8d615222
parent 34567 c74f68484156
child 42831 feff6f296019
equal deleted inserted replaced
37008:55c73d04e57c 37009:476d8d615222
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2016, 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
   258         }
   258         }
   259         return null;
   259         return null;
   260     }
   260     }
   261 
   261 
   262     @DefinedBy(Api.COMPILER_TREE)
   262     @DefinedBy(Api.COMPILER_TREE)
       
   263     public Void visitHidden(HiddenTree node, Void p) {
       
   264         try {
       
   265             printTagName(node);
       
   266             if (!node.getBody().isEmpty()) {
       
   267                 print(" ");
       
   268                 print(node.getBody());
       
   269             }
       
   270         } catch (IOException e) {
       
   271             throw new UncheckedIOException(e);
       
   272         }
       
   273         return null;
       
   274     }
       
   275 
       
   276     @DefinedBy(Api.COMPILER_TREE)
   263     public Void visitIdentifier(IdentifierTree node, Void p) {
   277     public Void visitIdentifier(IdentifierTree node, Void p) {
   264         try {
   278         try {
   265             print(node.getName());
   279             print(node.getName());
   266         } catch (IOException e) {
   280         } catch (IOException e) {
   267             throw new UncheckedIOException(e);
   281             throw new UncheckedIOException(e);