도크 렛을 사용하고있어, 다음의 문제에 봉착하고 있습니다. 클래스에서 속성을 가져 오려면 매개 변수 메서드가 도움이 될 것이라고 생각했습니다. 내 코드는 다음 중 하나 (나는 방법의 반환 유형에 대한 그 일을하고있다)과 같습니다javadoc 도크 렛 : 클래스로부터 속성을 취득하는 방법
ClassDoc retType = pMethod.returnType().asClassDoc();
if(retType == null) {
System.out.println("No returnType for method " + pMethod.name());
return false;
} else {
System.out.println("returnType for method "
+ pMethod.name() + " is from type " + pMethod.returnType().typeName());
}
FieldDoc[] fields = retType.fields();
System.out.println("fields length for type " +
retType.name() + " is " + fields.length);
내가 무엇입니까하는 방법 MyMethod라는위한
returnType이 유형 MyMethodResponse에서입니다
fields length for type MyMethodResponse is 0
어쩌면 내가 누락되었습니다. ClassDoc.fields() 메서드가 모든 속성 목록을 가져 오지 않겠습니까? 그것을 할 방법이 있습니까? 고맙습니다.