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.

SubWriterHolderWriter.java 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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.DocletAbortException;
  26. import java.io.IOException;
  27. public abstract class SubWriterHolderWriter
  28. extends com.sun.tools.doclets.standard.SubWriterHolderWriter
  29. {
  30. public SubWriterHolderWriter(String filename) throws IOException {
  31. super(filename);
  32. }
  33. public SubWriterHolderWriter(String path, String filename, String relpath)
  34. throws IOException, DocletAbortException {
  35. super(path, filename, relpath);
  36. }
  37. public void printSummaryMember(AbstractSubWriter mw, ClassDoc cd,
  38. ProgramElementDoc member) {
  39. super.printSummaryMember(mw, cd, member);
  40. if (mw instanceof AbstractSubWriterAJ) {
  41. AbstractSubWriterAJ aj = (AbstractSubWriterAJ)mw;
  42. if (aj.hasCrosscuts(cd, member)) {
  43. aj.printSummaryCrosscuts(cd, member);
  44. }
  45. }
  46. }
  47. public String getPreQualifiedClassLink(ClassDoc cd, String where) {
  48. return getPkgName(cd) + getClassLink(cd, where, cd.name());
  49. }
  50. public void printPreQualifiedClassLink(ClassDoc cd, String where) {
  51. print(getPreQualifiedClassLink(cd, where));
  52. }
  53. }