"Java 주석 가이드"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-== 참고 자료 == +==참고==))
34번째 줄: 34번째 줄:
*[[주석]]
*[[주석]]


==참고 자료==
==참고==
*http://www.oracle.com/technetwork/java/javase/documentation/index-137868.html
*http://www.oracle.com/technetwork/java/javase/documentation/index-137868.html


[[분류: Java]]
[[분류: Java]]

2017년 6월 27일 (화) 10:25 판

How to Write Doc Comments for the Javadoc Tool
Java 주석 가이드, 자바 코멘트 가이드

1 예시

/**
 * Returns an Image object that can then be painted on the screen. 
 * The url argument must specify an absolute {@link URL}. The name
 * argument is a specifier that is relative to the url argument. 
 * <p>
 * This method always returns immediately, whether or not the 
 * image exists. When this applet attempts to draw the image on
 * the screen, the data will be loaded. The graphics primitives 
 * that draw the image will incrementally paint on the screen. 
 *
 * @param  url  an absolute URL giving the base location of the image
 * @param  name the location of the image, relative to the url argument
 * @return      the image at the specified URL
 * @see         Image
 */
 public Image getImage(URL url, String name) {
        try {
            return getImage(new URL(url, name));
        } catch (MalformedURLException e) {
            return null;
        }
 }

2 같이 보기

3 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}