langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/VisibleMemberMap.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 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 |
36 import javax.lang.model.type.TypeMirror; |
36 import javax.lang.model.type.TypeMirror; |
37 |
37 |
38 import com.sun.source.doctree.DocCommentTree; |
38 import com.sun.source.doctree.DocCommentTree; |
39 import com.sun.source.doctree.DocTree; |
39 import com.sun.source.doctree.DocTree; |
40 |
40 |
41 import jdk.javadoc.internal.doclets.toolkit.Configuration; |
41 import jdk.javadoc.internal.doclets.toolkit.BaseConfiguration; |
42 import jdk.javadoc.internal.doclets.toolkit.Messages; |
42 import jdk.javadoc.internal.doclets.toolkit.Messages; |
43 |
43 |
44 /** |
44 /** |
45 * A data structure that encapsulates the visible members of a particular |
45 * A data structure that encapsulates the visible members of a particular |
46 * type for a given class tree. To use this data structure, you must specify |
46 * type for a given class tree. To use this data structure, you must specify |
124 private final Kind kind; |
124 private final Kind kind; |
125 |
125 |
126 /** |
126 /** |
127 * The configuration this VisibleMemberMap was created with. |
127 * The configuration this VisibleMemberMap was created with. |
128 */ |
128 */ |
129 private final Configuration configuration; |
129 private final BaseConfiguration configuration; |
130 private final Messages messages; |
130 private final Messages messages; |
131 private final Utils utils; |
131 private final Utils utils; |
132 private final Comparator<Element> comparator; |
132 private final Comparator<Element> comparator; |
133 |
133 |
134 private final Map<TypeElement, List<Element>> propertiesCache; |
134 private final Map<TypeElement, List<Element>> propertiesCache; |
145 * deprecated members are excluded from the map. If the field |
145 * deprecated members are excluded from the map. If the field |
146 * configuration.javafx is true the JavaFX features are used. |
146 * configuration.javafx is true the JavaFX features are used. |
147 */ |
147 */ |
148 public VisibleMemberMap(TypeElement typeElement, |
148 public VisibleMemberMap(TypeElement typeElement, |
149 Kind kind, |
149 Kind kind, |
150 Configuration configuration) { |
150 BaseConfiguration configuration) { |
151 this.typeElement = typeElement; |
151 this.typeElement = typeElement; |
152 this.kind = kind; |
152 this.kind = kind; |
153 this.configuration = configuration; |
153 this.configuration = configuration; |
154 this.messages = configuration.getMessages(); |
154 this.messages = configuration.getMessages(); |
155 this.utils = configuration.utils; |
155 this.utils = configuration.utils; |