本文整理匯總了Java中com.sun.javadoc.ClassDoc.commentText方法的典型用法代碼示例。如果您正苦於以下問題:Java ClassDoc.commentText方法的具體用法?Java ClassDoc.commentText怎麽用?Java ClassDoc.commentText使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.sun.javadoc.ClassDoc
的用法示例。
在下文中一共展示了ClassDoc.commentText方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: PSItemDoc
import com.sun.javadoc.ClassDoc; //導入方法依賴的package包/類
private PSItemDoc(ClassDoc classDoc) {
this.classDoc = classDoc;
this.name = classDoc.name();
this.description = classDoc.commentText();
this.itemFieldDocs = new ArrayList<>();
this.providerDocs = new ArrayList<>();
List<FieldDoc> allFields = new ArrayList<>();
this.getAllFieldDocs(classDoc, allFields);
for (FieldDoc fieldDoc : allFields) {
PSItemFieldDoc itemFieldDoc = PSItemFieldDoc.build(this, fieldDoc);
if (itemFieldDoc != null) this.itemFieldDocs.add(itemFieldDoc);
}
for (MethodDoc methodDoc : classDoc.methods()) {
PSOperatorDoc providerDoc = PSOperatorDoc.build(classDoc, methodDoc);
if (providerDoc != null) this.providerDocs.add(providerDoc);
}
}
示例2: converter
import com.sun.javadoc.ClassDoc; //導入方法依賴的package包/類
@Override
public DocTag converter(SeeTag o) {
ClassDoc aClass = o.referencedClass().findClass(o.referencedClassName());
String text = aClass.commentText();
String classType = aClass.qualifiedTypeName();
try {
Class<?> classz = Class.forName(classType);
List<FieldInfo> fields = analysisFields(classz, aClass);
ObjectInfo objectInfo = new ObjectInfo();
objectInfo.setType(Class.forName(classType));
objectInfo.setFieldInfos(fields);
objectInfo.setComment(text);
return new SeeTagImpl(o.name(), objectInfo);
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
return null;
}
示例3: PSOperatorWrapperDoc
import com.sun.javadoc.ClassDoc; //導入方法依賴的package包/類
private PSOperatorWrapperDoc(ClassDoc classDoc) {
this.classDoc = classDoc;
this.name = classDoc.name();
this.description = classDoc.commentText();
this.operatorDocs = new ArrayList<>();
for (MethodDoc methodDoc : classDoc.methods()) {
PSOperatorDoc operatorDoc = PSOperatorDoc.build(classDoc, methodDoc);
if (operatorDoc != null) this.operatorDocs.add(operatorDoc);
}
}