1 22 package org.aspectj.tools.ajdoc; 24 25 import org.aspectj.tools.doclets.standard.AbstractSubWriter; 26 27 import com.sun.javadoc.ClassDoc; 28 import com.sun.javadoc.Doc; 29 import com.sun.javadoc.ExecutableMemberDoc; 30 import com.sun.javadoc.ProgramElementDoc; 31 import com.sun.tools.doclets.standard.ClassUseWriter; 32 import com.sun.tools.doclets.standard.ExecutableMemberSubWriter; 33 import com.sun.tools.doclets.standard.SubWriterHolderWriter; 34 35 import java.util.List ; 36 import java.util.SortedSet ; 37 38 45 public class Access { 46 47 public static void printSummaryType(AbstractSubWriter mw, 48 ProgramElementDoc member) { 49 Util.invoke(com.sun.tools.doclets.standard.AbstractSubWriter.class, 50 mw.del(), 51 "printSummaryType", 52 new Class []{ProgramElementDoc.class}, 53 new Object []{member}); 54 } 55 public static void printSummaryLink(AbstractSubWriter mw, 56 ClassDoc cd, 57 ProgramElementDoc member) { 58 Util.invoke(com.sun.tools.doclets.standard.AbstractSubWriter.class, 59 mw.del(), 60 "printSummaryLink", 61 new Class []{ClassDoc.class, 62 ProgramElementDoc.class}, 63 new Object []{cd, member}); 64 } 65 public static void printInheritedSummaryLink(AbstractSubWriter mw, 66 ClassDoc cd, 67 ProgramElementDoc member) { 68 Util.invoke(com.sun.tools.doclets.standard.AbstractSubWriter.class, 69 mw.del(), 70 "printInheritedSummaryLink", 71 new Class []{ClassDoc.class, 72 ProgramElementDoc.class}, 73 new Object []{cd, member}); 74 } 75 public static void printHeader(AbstractSubWriter mw, 76 ClassDoc cd) { 77 Util.invoke(com.sun.tools.doclets.standard.AbstractSubWriter.class, 78 mw.del(), 79 "printHeader", 80 new Class []{ClassDoc.class}, 81 new Object []{cd}); 82 } 83 public static void printBodyHtmlEnd(AbstractSubWriter mw, 84 ClassDoc cd) { 85 Util.invoke(com.sun.tools.doclets.standard.AbstractSubWriter.class, 86 mw.del(), 87 "printBodyHtmlEnd", 88 new Class []{ClassDoc.class}, 89 new Object []{cd}); 90 } 91 public static void printMember(AbstractSubWriter mw, 92 ProgramElementDoc elem) { 93 Util.invoke(com.sun.tools.doclets.standard.AbstractSubWriter.class, 94 mw.del(), 95 "printMember", 96 new Class []{ProgramElementDoc.class}, 97 new Object []{elem}); 98 } 99 public static void printDeprecatedLink(AbstractSubWriter mw, 100 ProgramElementDoc member) { 101 Util.invoke(com.sun.tools.doclets.standard.AbstractSubWriter.class, 102 mw.del(), 103 "printDeprecatedLink", 104 new Class []{ProgramElementDoc.class}, 105 new Object []{member}); 106 } 107 public static void printNavSummaryLink(AbstractSubWriter mw, 108 ClassDoc cd, 109 boolean link) { 110 Util.invoke(com.sun.tools.doclets.standard.AbstractSubWriter.class, 111 mw.del(), 112 "printNavSummaryLink", 113 new Class []{ClassDoc.class, 114 boolean.class}, 115 new Object []{cd, new Boolean (link)}); 116 } 117 public static void printNavDetailLink(AbstractSubWriter mw, 118 boolean link) { 119 Util.invoke(com.sun.tools.doclets.standard.AbstractSubWriter.class, 120 mw.del(), 121 "printNavDetailLink", 122 new Class []{boolean.class}, 123 new Object []{new Boolean (link)}); 124 } 125 public static void printTags(AbstractSubWriter mw, 126 ProgramElementDoc member) { 127 Util.invoke(com.sun.tools.doclets.standard.AbstractSubWriter.class, 128 mw.del(), 129 "printTags", 130 new Class []{ProgramElementDoc.class}, 131 new Object []{member}); 132 } 133 public static void printDeprecatedAPI(AbstractSubWriter mw, 134 List deprmembers, 135 String headingKey) { 136 Util.invoke(com.sun.tools.doclets.standard.AbstractSubWriter.class, 137 mw.del(), 138 "printDeprecatedAPI", 139 new Class []{List .class, String .class}, 140 new Object []{deprmembers, headingKey}); 141 } 142 public static void printParameters(ExecutableMemberSubWriter mw, 143 ExecutableMemberDoc member) { 144 Util.invoke(com.sun.tools.doclets.standard.ExecutableMemberSubWriter.class, 145 mw, 146 "printParameters", 147 new Class []{ExecutableMemberDoc.class}, 148 new Object []{member}); 149 } 150 public static void printUseInfo(AbstractSubWriter mw, 151 Object mems, 152 String heading) { 153 printUseInfo(mw.del(), mems, heading); 154 } 155 public static void printUseInfo 156 (com.sun.tools.doclets.standard.AbstractSubWriter mw, 157 Object mems, 158 String heading) { 159 if (mw != null) { 160 Util.invoke(com.sun.tools.doclets.standard.AbstractSubWriter.class, 161 mw, 162 "printUseInfo", 163 new Class []{Object .class, String .class}, 164 new Object []{mems, heading}); 165 } 166 } 167 public static void printCommentDef(AbstractSubWriter mw, Doc doc) { 168 Util.invoke(SubWriterHolderWriter.class, 169 writer(mw), 170 "printCommentDef", 171 new Class []{Doc.class}, 172 new Object []{doc}); 173 } 174 public static SubWriterHolderWriter writer(AbstractSubWriter mw) { 175 return (SubWriterHolderWriter) 176 Util.access(com.sun.tools.doclets.standard.AbstractSubWriter.class, 177 mw, "writer"); 178 } 179 public static SortedSet pkgSet(ClassUseWriter writer) { 180 return (SortedSet )Util.access(ClassUseWriter.class, 181 writer, 182 "pkgSet"); 183 } 184 public static ClassDoc classdoc(ClassUseWriter writer) { 185 return (ClassDoc)Util.access(ClassUseWriter.class, 186 writer, 187 "classdoc"); 188 } 189 public static void print(com.sun.tools.doclets.standard.AbstractSubWriter mw, 190 String str) { 191 Util.invoke(com.sun.tools.doclets.standard.AbstractSubWriter.class, 192 mw, 193 "print", 194 new Class []{String .class}, 195 new Object []{str}); 196 } 197 } 198 | Popular Tags |