KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > aspectj > tools > doclets > standard > ConstructorSubWriter


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
24 import com.sun.javadoc.ClassDoc;
25 import com.sun.javadoc.ProgramElementDoc;
26 import com.sun.tools.doclets.VisibleMemberMap;
27
28 public class ConstructorSubWriter extends ExecutableMemberSubWriter {
29
30     public static class Del
31         extends com.sun.tools.doclets.standard.ConstructorSubWriter {
32         protected ConstructorSubWriter mw;
33         public Del(com.sun.tools.doclets.standard.SubWriterHolderWriter writer,
34                    ClassDoc classdoc) {
35             super(writer, classdoc);
36         }
37         public Del(com.sun.tools.doclets.standard.SubWriterHolderWriter writer)
38         {
39             super(writer);
40         }
41         public void printMembersSummary() {
42             mw.printMembersSummary();
43             mw.printIntroducedMembersSummary();
44         }
45         public void printMembers() {
46             mw.printMembers();
47         }
48         protected void navSummaryLink() {
49             mw.navSummaryLink();
50         }
51         protected void navDetailLink() {
52             mw.navDetailLink();
53         }
54         public void setDelegator(ConstructorSubWriter mw) { this.mw = mw; }
55         public void printSummaryMember(ClassDoc cd, ProgramElementDoc member) {
56             mw.printSummaryMember(cd, member);
57         }
58     }
59
60     protected Class JavaDoc delegateClass() {
61         return Del.class;
62     }
63
64     public ConstructorSubWriter
65         (com.sun.tools.doclets.standard.SubWriterHolderWriter writer,
66          ClassDoc classdoc)
67     {
68         super(writer, classdoc);
69     }
70     
71     public ConstructorSubWriter
72         (com.sun.tools.doclets.standard.SubWriterHolderWriter writer)
73     {
74         super(writer);
75     }
76     
77     public int getMemberKind() {
78         //XXX hack!!!
79
return VisibleMemberMap.CONSTRUCTORS;
80     }
81
82     protected String JavaDoc propertyName() { return "Constructor"; }
83 }
84     
85     
86
Popular Tags