36
36
import jdk .javadoc .internal .doclets .formats .html .markup .Text ;
37
37
import jdk .javadoc .internal .doclets .toolkit .Content ;
38
38
import jdk .javadoc .internal .doclets .toolkit .Resources ;
39
- import jdk .javadoc .internal .doclets .toolkit .util .DocletConstants ;
40
39
import jdk .javadoc .internal .doclets .toolkit .util .VisibleMemberTable ;
41
40
42
41
53
52
public class Contents {
54
53
55
54
public final Content allClassesLabel ;
55
+ public final Content allClassesAndInterfacesLabel ;
56
56
public final Content allImplementedInterfacesLabel ;
57
57
public final Content allModulesLabel ;
58
58
public final Content allPackagesLabel ;
@@ -128,13 +128,14 @@ public class Contents {
128
128
public final Content navAnnotationTypeMember ;
129
129
public final Content navAnnotationTypeOptionalMember ;
130
130
public final Content navAnnotationTypeRequiredMember ;
131
+ public final Content navClassesAndInterfaces ;
131
132
public final Content navConstructor ;
133
+ public final Content navDescription ;
132
134
public final Content navEnum ;
133
135
public final Content navField ;
134
136
public final Content navHelpNavigation ;
135
137
public final Content navHelpPages ;
136
138
public final Content navMethod ;
137
- public final Content navModuleDescription ;
138
139
public final Content navModules ;
139
140
public final Content navNested ;
140
141
public final Content navPackages ;
@@ -150,6 +151,8 @@ public class Contents {
150
151
public final Content packageLabel ;
151
152
public final Content package_ ;
152
153
public final Content packagesLabel ;
154
+ public final Content packageSubNavLabel ;
155
+ public final Content packageSummaryLabel ;
153
156
public final Content parameters ;
154
157
public final Content previewAPI ;
155
158
public final Content previewLabel ;
@@ -159,7 +162,7 @@ public class Contents {
159
162
public final Content propertyLabel ;
160
163
public final Content propertyDetailsLabel ;
161
164
public final Content propertySummaryLabel ;
162
- public final Content record ;
165
+ public final Content records ;
163
166
public final Content recordComponents ;
164
167
public final Content referencedIn ;
165
168
public final Content relatedPackages ;
@@ -182,15 +185,6 @@ public class Contents {
182
185
183
186
private final EnumMap <VisibleMemberTable .Kind , Content > navLinkLabels ;
184
187
185
- public final String annotationTypeSummary ;
186
- public final String classSummary ;
187
- public final String enumSummary ;
188
- public final String errorSummary ;
189
- public final String exceptionSummary ;
190
- public final String interfaceSummary ;
191
- public final String packageSummary ;
192
- public final String recordSummary ;
193
-
194
188
private final Resources resources ;
195
189
196
190
/**
@@ -203,6 +197,7 @@ public class Contents {
203
197
this .resources = configuration .getDocResources ();
204
198
205
199
allClassesLabel = getNonBreakResource ("doclet.All_Classes" );
200
+ this .allClassesAndInterfacesLabel = getContent ("doclet.All_Classes_And_Interfaces" );
206
201
allImplementedInterfacesLabel = getContent ("doclet.All_Implemented_Interfaces" );
207
202
allModulesLabel = getNonBreakResource ("doclet.All_Modules" );
208
203
allPackagesLabel = getNonBreakResource ("doclet.All_Packages" );
@@ -278,13 +273,14 @@ public class Contents {
278
273
navAnnotationTypeMember = getContent ("doclet.navAnnotationTypeMember" );
279
274
navAnnotationTypeOptionalMember = getContent ("doclet.navAnnotationTypeOptionalMember" );
280
275
navAnnotationTypeRequiredMember = getContent ("doclet.navAnnotationTypeRequiredMember" );
276
+ navClassesAndInterfaces = getContent ("doclet.navClassesAndInterfaces" );
281
277
navConstructor = getContent ("doclet.navConstructor" );
282
278
navEnum = getContent ("doclet.navEnum" );
283
279
navField = getContent ("doclet.navField" );
284
280
navHelpNavigation = getContent ("doclet.navNavigation" );
285
281
navHelpPages = getContent ("doclet.navPages" );
286
282
navMethod = getContent ("doclet.navMethod" );
287
- navModuleDescription = getContent ("doclet.navModuleDescription " );
283
+ navDescription = getContent ("doclet.navDescription " );
288
284
navModules = getContent ("doclet.navModules" );
289
285
navNested = getContent ("doclet.navNested" );
290
286
navPackages = getContent ("doclet.navPackages" );
@@ -300,6 +296,8 @@ public class Contents {
300
296
packageLabel = getContent ("doclet.Package" );
301
297
package_ = getContent ("doclet.package" );
302
298
packagesLabel = getContent ("doclet.Packages" );
299
+ packageSubNavLabel = getContent ("doclet.Package_Sub_Nav" );
300
+ this .packageSummaryLabel = getContent ("doclet.Package_Summary" );
303
301
parameters = getContent ("doclet.Parameters" );
304
302
previewAPI = getContent ("doclet.Preview_API" );
305
303
previewLabel = getContent ("doclet.Preview_Label" );
@@ -309,7 +307,7 @@ public class Contents {
309
307
propertyLabel = getContent ("doclet.Property" );
310
308
propertyDetailsLabel = getContent ("doclet.Property_Detail" );
311
309
propertySummaryLabel = getContent ("doclet.Property_Summary" );
312
- record = getContent ("doclet.RecordClass " );
310
+ records = getContent ("doclet.RecordClasses " );
313
311
recordComponents = getContent ("doclet.RecordComponents" );
314
312
referencedIn = getContent ("doclet.ReferencedIn" );
315
313
relatedPackages = getContent ("doclet.Related_Packages" );
@@ -331,20 +329,15 @@ record = getContent("doclet.RecordClass");
331
329
valueLabel = getContent ("doclet.Value" );
332
330
333
331
navLinkLabels = new EnumMap <>(VisibleMemberTable .Kind .class );
334
- navLinkLabels .put (VisibleMemberTable .Kind .INNER_CLASSES , getContent ("doclet.navNested" ));
332
+ navLinkLabels .put (VisibleMemberTable .Kind .NESTED_CLASSES , getContent ("doclet.navNested" ));
335
333
navLinkLabels .put (VisibleMemberTable .Kind .ENUM_CONSTANTS , getContent ("doclet.navEnum" ));
336
334
navLinkLabels .put (VisibleMemberTable .Kind .FIELDS , getContent ("doclet.navField" ));
337
335
navLinkLabels .put (VisibleMemberTable .Kind .CONSTRUCTORS , getContent ("doclet.navConstructor" ));
338
336
navLinkLabels .put (VisibleMemberTable .Kind .METHODS , getContent ("doclet.navMethod" ));
339
-
340
- this .annotationTypeSummary = resources .getText ("doclet.Annotation_Types_Summary" );
341
- this .classSummary = resources .getText ("doclet.Class_Summary" );
342
- this .enumSummary = resources .getText ("doclet.Enum_Summary" );
343
- this .errorSummary = resources .getText ("doclet.Error_Summary" );
344
- this .exceptionSummary = resources .getText ("doclet.Exception_Summary" );
345
- this .interfaceSummary = resources .getText ("doclet.Interface_Summary" );
346
- this .packageSummary = resources .getText ("doclet.Package_Summary" );
347
- this .recordSummary = resources .getText ("doclet.Record_Class_Summary" );
337
+ navLinkLabels .put (VisibleMemberTable .Kind .ANNOTATION_TYPE_MEMBER_OPTIONAL ,
338
+ getContent ("doclet.navAnnotationTypeOptionalMember" ));
339
+ navLinkLabels .put (VisibleMemberTable .Kind .ANNOTATION_TYPE_MEMBER_REQUIRED ,
340
+ getContent ("doclet.navAnnotationTypeRequiredMember" ));
348
341
}
349
342
350
343
/**
0 commit comments