1 52 53 package com.go.beandoc.teadoc; 54 55 61 public class ThrowsTag extends Tag { 62 63 private com.sun.javadoc.ThrowsTag mTag; 64 65 public static ThrowsTag[] convert(RootDoc root, 66 com.sun.javadoc.ThrowsTag[] tags) { 67 int length = tags.length; 68 ThrowsTag[] newTags = new ThrowsTag[length]; 69 for (int i=0; i<length; i++) { 70 newTags[i] = new ThrowsTag(root, tags[i]); 71 } 72 return newTags; 73 } 74 75 public ThrowsTag(RootDoc root, com.sun.javadoc.ThrowsTag tag) { 76 super(root, tag); 77 mTag = tag; 78 } 79 80 public String getExceptionName() { 81 return mTag.exceptionName(); 82 } 83 84 public String getExceptionComment() { 85 return mTag.exceptionComment(); 86 } 87 88 public ClassDoc getException() { 89 return new ClassDoc(mRootDoc, mTag.exception()); 90 } 91 } 92 | Popular Tags |