1 52 53 package com.go.beandoc.teadoc; 54 55 61 public class SerialFieldTag extends Tag implements Comparable { 62 63 private com.sun.javadoc.SerialFieldTag mTag; 64 65 public static SerialFieldTag[] convert(RootDoc root, 66 com.sun.javadoc.SerialFieldTag[] 67 tags) { 68 int length = tags.length; 69 SerialFieldTag[] newTags = new SerialFieldTag[length]; 70 for (int i=0; i<length; i++) { 71 newTags[i] = new SerialFieldTag(root, tags[i]); 72 } 73 return newTags; 74 } 75 76 public SerialFieldTag(RootDoc root, com.sun.javadoc.SerialFieldTag tag) { 77 super(root, tag); 78 mTag = tag; 79 } 80 81 public String getFieldName() { 82 return mTag.fieldName(); 83 } 84 85 public String getFieldType() { 86 return mTag.fieldType(); 87 } 88 89 public ClassDoc getFieldTypeDoc() { 90 return new ClassDoc(mRootDoc, mTag.fieldTypeDoc()); 91 } 92 93 public String getDescription() { 94 return mTag.description(); 95 } 96 97 public int compareTo(Object obj) { 98 return mTag.compareTo(obj); 99 } 100 } 101 | Popular Tags |