You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ConstructorSubWriter.java 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /* -*- Mode: JDE; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
  2. *
  3. * This file is part of the debugger and core tools for the AspectJ(tm)
  4. * programming language; see http://aspectj.org
  5. *
  6. * The contents of this file are subject to the Mozilla Public License
  7. * Version 1.1 (the "License"); you may not use this file except in
  8. * compliance with the License. You may obtain a copy of the License at
  9. * either http://www.mozilla.org/MPL/ or http://aspectj.org/MPL/.
  10. *
  11. * Software distributed under the License is distributed on an "AS IS" basis,
  12. * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  13. * for the specific language governing rights and limitations under the
  14. * License.
  15. *
  16. * The Original Code is AspectJ.
  17. *
  18. * The Initial Developer of the Original Code is Xerox Corporation. Portions
  19. * created by Xerox Corporation are Copyright (C) 1999-2002 Xerox Corporation.
  20. * All Rights Reserved.
  21. */
  22. package org.aspectj.tools.doclets.standard;
  23. import com.sun.javadoc.ClassDoc;
  24. import com.sun.javadoc.ProgramElementDoc;
  25. import com.sun.tools.doclets.VisibleMemberMap;
  26. public class ConstructorSubWriter extends ExecutableMemberSubWriter {
  27. public static class Del
  28. extends com.sun.tools.doclets.standard.ConstructorSubWriter {
  29. protected ConstructorSubWriter mw;
  30. public Del(com.sun.tools.doclets.standard.SubWriterHolderWriter writer,
  31. ClassDoc classdoc) {
  32. super(writer, classdoc);
  33. }
  34. public Del(com.sun.tools.doclets.standard.SubWriterHolderWriter writer)
  35. {
  36. super(writer);
  37. }
  38. public void printMembersSummary() {
  39. mw.printMembersSummary();
  40. mw.printIntroducedMembersSummary();
  41. }
  42. public void printMembers() {
  43. mw.printMembers();
  44. }
  45. protected void navSummaryLink() {
  46. mw.navSummaryLink();
  47. }
  48. protected void navDetailLink() {
  49. mw.navDetailLink();
  50. }
  51. public void setDelegator(ConstructorSubWriter mw) { this.mw = mw; }
  52. public void printSummaryMember(ClassDoc cd, ProgramElementDoc member) {
  53. mw.printSummaryMember(cd, member);
  54. }
  55. }
  56. protected Class delegateClass() {
  57. return Del.class;
  58. }
  59. public ConstructorSubWriter
  60. (com.sun.tools.doclets.standard.SubWriterHolderWriter writer,
  61. ClassDoc classdoc)
  62. {
  63. super(writer, classdoc);
  64. }
  65. public ConstructorSubWriter
  66. (com.sun.tools.doclets.standard.SubWriterHolderWriter writer)
  67. {
  68. super(writer);
  69. }
  70. public int getMemberKind() {
  71. //XXX hack!!!
  72. return VisibleMemberMap.CONSTRUCTORS;
  73. }
  74. protected String propertyName() { return "Constructor"; }
  75. }