KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)ExecutableDeclaration.java 1.2 04/03/08
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 java.util.Collection JavaDoc;
12
13 import com.sun.mirror.type.ReferenceType;
14
15
16 /**
17  * Represents a method or constructor of a class or interface.
18  *
19  * @author Joseph D. Darcy
20  * @author Scott Seligman
21  * @version 1.2 04/03/08
22  * @since 1.5
23  */

24
25 public interface ExecutableDeclaration extends MemberDeclaration {
26
27     /**
28      * Returns <tt>true</tt> if this method or constructor accepts a variable
29      * number of arguments.
30      *
31      * @return <tt>true</tt> if this method or constructor accepts a variable
32      * number of arguments
33      */

34     boolean isVarArgs();
35
36     /**
37      * Returns the formal type parameters of this method or constructor.
38      * They are returned in declaration order.
39      *
40      * @return the formal type parameters of this method or constructor,
41      * or an empty collection if there are none
42      */

43     Collection JavaDoc<TypeParameterDeclaration> getFormalTypeParameters();
44
45     /**
46      * Returns the formal parameters of this method or constructor.
47      * They are returned in declaration order.
48      *
49      * @return the formal parameters of this method or constructor,
50      * or an empty collection if there are none
51      */

52     Collection JavaDoc<ParameterDeclaration> getParameters();
53
54     /**
55      * Returns the exceptions and other throwables listed in this
56      * method or constructor's <tt>throws</tt> clause.
57      *
58      * @return the exceptions and other throwables listed in the
59      * <tt>throws</tt> clause, or an empty collection if there are none
60      */

61     Collection JavaDoc<ReferenceType> getThrownTypes();
62 }
63
Popular Tags