1 22 package org.aspectj.tools.ajdoc; 23 24 import com.sun.javadoc.ClassDoc; 25 import com.sun.javadoc.Doc; 26 import com.sun.javadoc.ThrowsTag; 27 28 import java.util.Locale ; 29 30 35 public class ThrowsTagImpl extends TagImpl implements ThrowsTag { 36 37 private ClassDoc exception; 38 private String exceptionComment; 39 private String exceptionName; 40 41 51 public ThrowsTagImpl(Doc doc, 52 String name, 53 String text, 54 Locale loc, 55 ErrPrinter err) { 56 super(doc, name, text, loc, err); 57 String [] split = split(text); 58 exceptionName = split[0]; 59 exceptionComment = split[1]; 60 exception = findException(); 61 } 62 63 68 public ClassDoc exception() { 69 return exception; 70 } 71 72 77 public String exceptionComment() { 78 return exceptionComment; 79 } 80 81 86 public String exceptionName() { 87 return exceptionName; 88 } 89 90 95 public String kind() { 96 return "@throws"; 97 } 98 99 private ClassDoc findException() { 102 return null; 103 } 104 } 105 | Popular Tags |