langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/ClassUseMapper.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 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. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
43 import javax.lang.model.util.SimpleElementVisitor9; |
43 import javax.lang.model.util.SimpleElementVisitor9; |
44 import javax.lang.model.util.SimpleTypeVisitor9; |
44 import javax.lang.model.util.SimpleTypeVisitor9; |
45 import javax.lang.model.util.Types; |
45 import javax.lang.model.util.Types; |
46 |
46 |
47 import jdk.javadoc.doclet.DocletEnvironment; |
47 import jdk.javadoc.doclet.DocletEnvironment; |
48 import jdk.javadoc.internal.doclets.formats.html.ConfigurationImpl; |
48 import jdk.javadoc.internal.doclets.formats.html.HtmlConfiguration; |
49 |
49 |
50 /** |
50 /** |
51 * Map all class uses for a given class. |
51 * Map all class uses for a given class. |
52 * |
52 * |
53 * <p> |
53 * <p> |
188 private final DocletEnvironment docEnv; |
188 private final DocletEnvironment docEnv; |
189 private final Elements elementUtils; |
189 private final Elements elementUtils; |
190 private final Types typeUtils; |
190 private final Types typeUtils; |
191 private final Utils utils; |
191 private final Utils utils; |
192 |
192 |
193 public ClassUseMapper(ConfigurationImpl configuration, ClassTree classtree) { |
193 public ClassUseMapper(HtmlConfiguration configuration, ClassTree classtree) { |
194 docEnv = configuration.docEnv; |
194 docEnv = configuration.docEnv; |
195 elementUtils = docEnv.getElementUtils(); |
195 elementUtils = docEnv.getElementUtils(); |
196 typeUtils = docEnv.getTypeUtils(); |
196 typeUtils = docEnv.getTypeUtils(); |
197 utils = configuration.utils; |
197 utils = configuration.utils; |
198 this.classtree = classtree; |
198 this.classtree = classtree; |