자바 예 10: javadoc
[root@gdc1000 java]# cat DocTest.java
public class DocTest{
/* -------------------------------------------------*/
/** Descriptive phrase. Longer statement of purpose.
<BR><B>Precondition:</B> Precondition goes here
<BR><B>Postcondition:</B> Postcondition goes here
@param p1 A description of this parameter
@param p2 A description of this parameter
@return A description of the return value
*/
public int someMethod(double p1, String p2) {
return 0;
}
public static void main(String[] args){
}
}
[root@gdc1000 java]#
다음 과 같이 실행 합 니 다.
javadoc *.java
생 성 결과 보기
Constructor Detail
DocTest
public DocTest()
Method Detail
someMethod
public int someMethod(double p1,
java.lang.String p2)
Descriptive phrase. Longer statement of purpose.
Precondition: Precondition goes here
Postcondition: Postcondition goes here
Parameters:
p1 - A description of this parameter
p2 - A description of this parameter
Returns:
A description of the return value
main
public static void main(java.lang.String[] args)
반사 방식 으로 생 성 된 문서 일 수 있 는 기본 구조 함수 가 있 습 니까?(FIXME)