1 /* |
1 /* |
2 * Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2011, 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 |
28 import java.util.*; |
28 import java.util.*; |
29 |
29 |
30 import com.sun.javadoc.*; |
30 import com.sun.javadoc.*; |
31 import com.sun.tools.doclets.internal.toolkit.*; |
31 import com.sun.tools.doclets.internal.toolkit.*; |
32 import com.sun.tools.doclets.internal.toolkit.taglets.*; |
32 import com.sun.tools.doclets.internal.toolkit.taglets.*; |
33 import com.sun.tools.doclets.internal.toolkit.util.*; |
|
34 import com.sun.tools.doclets.formats.html.markup.*; |
33 import com.sun.tools.doclets.formats.html.markup.*; |
35 |
34 |
36 /** |
35 /** |
37 * Generate serialized form for serializable fields. |
36 * Generate serialized form for serializable fields. |
38 * Documentation denoted by the tags <code>serial</code> and |
37 * Documentation denoted by the tags <code>serial</code> and |
51 ClassDoc classdoc) { |
50 ClassDoc classdoc) { |
52 super(writer, classdoc); |
51 super(writer, classdoc); |
53 } |
52 } |
54 |
53 |
55 public List<FieldDoc> members(ClassDoc cd) { |
54 public List<FieldDoc> members(ClassDoc cd) { |
56 return Util.asList(cd.serializableFields()); |
55 return Arrays.asList(cd.serializableFields()); |
57 } |
56 } |
58 |
57 |
59 protected void printTypeLinkNoDimension(Type type) { |
58 protected void printTypeLinkNoDimension(Type type) { |
60 ClassDoc cd = type.asClassDoc(); |
59 ClassDoc cd = type.asClassDoc(); |
61 //Linking to package private classes in serialized for causes |
60 //Linking to package private classes in serialized for causes |