KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > mirror > declaration > MethodDeclaration


1 /*
2  * @(#)MethodDeclaration.java 1.2 04/04/20
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.mirror.declaration;
9
10
11 import com.sun.mirror.type.TypeMirror;
12 import com.sun.mirror.type.VoidType;
13
14
15 /**
16  * Represents a method of a class or interface.
17  * Note that an
18  * {@linkplain AnnotationTypeElementDeclaration annotation type element}
19  * is a kind of method.
20  *
21  * @author Joseph D. Darcy
22  * @author Scott Seligman
23  * @version 1.2 04/04/20
24  * @since 1.5
25  */

26
27 public interface MethodDeclaration extends ExecutableDeclaration {
28
29     /**
30      * Returns the formal return type of this method.
31      * Returns {@link VoidType} if this method does not return a value.
32      *
33      * @return the formal return type of this method
34      */

35     TypeMirror getReturnType();
36 }
37
Popular Tags