1 /* |
1 /* |
2 * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2000, 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 |
84 |
84 |
85 /** Javadoc's own version of the compiler's enter phase. */ |
85 /** Javadoc's own version of the compiler's enter phase. */ |
86 JavadocEnter enter; |
86 JavadocEnter enter; |
87 |
87 |
88 /** The name table. */ |
88 /** The name table. */ |
89 Names names; |
89 private final Names names; |
90 |
90 |
91 /** The encoding name. */ |
91 /** The encoding name. */ |
92 private String encoding; |
92 private String encoding; |
93 |
93 |
94 final Symbol externalizableSym; |
94 final Symbol externalizableSym; |
107 Check chk; |
107 Check chk; |
108 Types types; |
108 Types types; |
109 JavaFileManager fileManager; |
109 JavaFileManager fileManager; |
110 Context context; |
110 Context context; |
111 DocLint doclint; |
111 DocLint doclint; |
|
112 JavaScriptScanner javaScriptScanner; |
112 |
113 |
113 WeakHashMap<JCTree, TreePath> treePaths = new WeakHashMap<JCTree, TreePath>(); |
114 WeakHashMap<JCTree, TreePath> treePaths = new WeakHashMap<JCTree, TreePath>(); |
114 |
115 |
115 /** Allow documenting from class files? */ |
116 /** Allow documenting from class files? */ |
116 boolean docClasses = false; |
117 boolean docClasses = false; |
832 // standard doclet normally generates H1, H2 |
833 // standard doclet normally generates H1, H2 |
833 doclintOpts.add(DocLint.XIMPLICIT_HEADERS + "2"); |
834 doclintOpts.add(DocLint.XIMPLICIT_HEADERS + "2"); |
834 doclint.init(t, doclintOpts.toArray(new String[doclintOpts.size()]), false); |
835 doclint.init(t, doclintOpts.toArray(new String[doclintOpts.size()]), false); |
835 } |
836 } |
836 |
837 |
|
838 JavaScriptScanner initJavaScriptScanner(boolean allowScriptInComments) { |
|
839 if (allowScriptInComments) { |
|
840 javaScriptScanner = null; |
|
841 } else { |
|
842 javaScriptScanner = new JavaScriptScanner(); |
|
843 } |
|
844 return javaScriptScanner; |
|
845 } |
|
846 |
837 boolean showTagMessages() { |
847 boolean showTagMessages() { |
838 return (doclint == null); |
848 return (doclint == null); |
839 } |
849 } |
840 } |
850 } |