1 52 53 package com.go.beandoc.teadoc; 54 55 61 public class Tag implements java.io.Serializable { 62 63 protected RootDoc mRootDoc; 64 65 private com.sun.javadoc.Tag mTag; 66 67 public static Tag[] convert(RootDoc root, com.sun.javadoc.Tag[] tags) { 68 int length = tags.length; 69 Tag[] newTags = new Tag[length]; 70 for (int i=0; i<length; i++) { 71 newTags[i] = new Tag(root, tags[i]); 72 } 73 return newTags; 74 } 75 76 public Tag(RootDoc root, com.sun.javadoc.Tag tag) { 77 mRootDoc = root; 78 mTag = tag; 79 } 80 81 public RootDoc getRootDoc() { 82 return mRootDoc; 83 } 84 85 public String getName() { 86 return mTag.name(); 87 } 88 89 public String getKind() { 90 return mTag.kind(); 91 } 92 93 public String getText() { 94 return mTag.text(); 95 } 96 97 public String toString() { 98 return mTag.toString(); 99 } 100 101 public Tag[] getInlineTags() { 102 return convert(mRootDoc, mTag.inlineTags()); 103 } 104 105 public Tag[] getFirstSentenceTags() { 106 return convert(mRootDoc, mTag.firstSentenceTags()); 107 } 108 } 109 | Popular Tags |