langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/ConstructorWriterImpl.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 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 |
67 * @param typeElement the class being documented. |
67 * @param typeElement the class being documented. |
68 */ |
68 */ |
69 public ConstructorWriterImpl(SubWriterHolderWriter writer, TypeElement typeElement) { |
69 public ConstructorWriterImpl(SubWriterHolderWriter writer, TypeElement typeElement) { |
70 super(writer, typeElement); |
70 super(writer, typeElement); |
71 |
71 |
72 VisibleMemberMap visibleMemberMap = new VisibleMemberMap( |
72 VisibleMemberMap visibleMemberMap = configuration.getVisibleMemberMap( |
73 typeElement, |
73 typeElement, |
74 VisibleMemberMap.Kind.CONSTRUCTORS, configuration); |
74 VisibleMemberMap.Kind.CONSTRUCTORS); |
75 List<Element> constructors = visibleMemberMap.getMembers(typeElement); |
75 List<Element> constructors = visibleMemberMap.getMembers(typeElement); |
76 for (Element constructor : constructors) { |
76 for (Element constructor : constructors) { |
77 if (utils.isProtected(constructor) || utils.isPrivate(constructor)) { |
77 if (utils.isProtected(constructor) || utils.isPrivate(constructor)) { |
78 setFoundNonPubConstructor(true); |
78 setFoundNonPubConstructor(true); |
79 } |
79 } |