Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: javax/ide/model/java/declaration/ExecutableD.java


1   /*
2    * @(#)ExecutableD.java
3    */
4   
5   package javax.ide.model.java.declaration;
6   
7   import java.util.Collection;
8   
9   /**
10   * Common supertype for constructor and method declarations.
11   *
12   * @author Andy Yu
13   */
14  public interface ExecutableD
15    extends MemberD, GenericD, HasAnnotationsD
16  {
17    // ----------------------------------------------------------------------
18  
19    /**
20     * True if this method takes a variable number of arguments.
21     *
22     * @return True if this method takes a variable number of arguments.
23     */
24    public boolean isVarArgs();
25  
26  
27    // ----------------------------------------------------------------------
28  
29    /**
30     * Gets the formal parameters, including synthetic ones.
31     *
32     * @return The collection of parameter declarations for the formal
33     * parameters of this method, including the synthetic
34     * <code>this$0</code>. <p/>
35     *
36     * Collection of ParameterDs.
37     */
38    public Collection getParameters();
39  
40    /**
41     * Gets the formal parameter types, including synthetic ones.
42     *
43     * @return The collection of type declarations for the types of the
44     * formal parameters of this method, including the synthetic
45     * <code>this$0</code>. <p/>
46     *
47     * Collection of TypeDs.
48     */
49    public Collection getParameterTypes();
50  
51    /**
52     * Gets the checked exception types. Note that, like reflection, all
53     * declared checked exceptions are listed, even RuntimeException
54     * subtypes.
55     *
56     * @return The collection of type declarations for the checked exceptions.
57     * <p/>
58     *
59     * Collection of TypeDs.
60     */
61    public Collection getExceptionTypes();
62  }