1 /* |
1 /* |
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 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 |
27 |
27 |
28 import java.util.HashSet; |
28 import java.util.HashSet; |
29 import java.util.Set; |
29 import java.util.Set; |
30 |
30 |
31 import com.sun.javadoc.*; |
31 import com.sun.javadoc.*; |
32 import com.sun.tools.javac.jvm.Profile; |
|
33 import com.sun.tools.doclets.internal.toolkit.*; |
32 import com.sun.tools.doclets.internal.toolkit.*; |
34 import com.sun.tools.doclets.internal.toolkit.util.*; |
33 import com.sun.tools.doclets.internal.toolkit.util.*; |
35 |
34 |
36 /** |
35 /** |
37 * The factory for constructing builders. |
36 * The factory for constructing builders. |
92 */ |
91 */ |
93 public AbstractBuilder getPackageSummaryBuilder(PackageDoc pkg, PackageDoc prevPkg, |
92 public AbstractBuilder getPackageSummaryBuilder(PackageDoc pkg, PackageDoc prevPkg, |
94 PackageDoc nextPkg) throws Exception { |
93 PackageDoc nextPkg) throws Exception { |
95 return PackageSummaryBuilder.getInstance(context, pkg, |
94 return PackageSummaryBuilder.getInstance(context, pkg, |
96 writerFactory.getPackageSummaryWriter(pkg, prevPkg, nextPkg)); |
95 writerFactory.getPackageSummaryWriter(pkg, prevPkg, nextPkg)); |
97 } |
|
98 |
|
99 /** |
|
100 * Return the builder that builds the profile summary. |
|
101 * |
|
102 * @param profile the profile being documented. |
|
103 * @param prevProfile the previous profile being documented. |
|
104 * @param nextProfile the next profile being documented. |
|
105 * @return the builder that builds the profile summary. |
|
106 */ |
|
107 public AbstractBuilder getProfileSummaryBuilder(Profile profile, Profile prevProfile, |
|
108 Profile nextProfile) throws Exception { |
|
109 return ProfileSummaryBuilder.getInstance(context, profile, |
|
110 writerFactory.getProfileSummaryWriter(profile, prevProfile, nextProfile)); |
|
111 } |
|
112 |
|
113 /** |
|
114 * Return the builder that builds the profile package summary. |
|
115 * |
|
116 * @param pkg the profile package being documented. |
|
117 * @param prevPkg the previous profile package being documented. |
|
118 * @param nextPkg the next profile package being documented. |
|
119 * @param profile the profile being documented. |
|
120 * @return the builder that builds the profile package summary. |
|
121 */ |
|
122 public AbstractBuilder getProfilePackageSummaryBuilder(PackageDoc pkg, PackageDoc prevPkg, |
|
123 PackageDoc nextPkg, Profile profile) throws Exception { |
|
124 return ProfilePackageSummaryBuilder.getInstance(context, pkg, |
|
125 writerFactory.getProfilePackageSummaryWriter(pkg, prevPkg, nextPkg, |
|
126 profile), profile); |
|
127 } |
96 } |
128 |
97 |
129 /** |
98 /** |
130 * Return the builder for the class. |
99 * Return the builder for the class. |
131 * |
100 * |