KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > spoon > reflect > declaration > CtParameter


1 package spoon.reflect.declaration;
2
3 import spoon.reflect.reference.CtParameterReference;
4
5 /**
6  * This element defines an executable parameter declaration.
7  *
8  * @see CtExecutable
9  */

10 public interface CtParameter<T> extends CtNamedElement, CtVariable<T> {
11
12     /**
13      * Gets the executable that is the parent declaration of this parameter
14      * declaration.
15      */

16     CtExecutable<?> getParent();
17
18     /**
19      * Returns <tt>true</tt> if this parameter accepts a variable number of
20      * arguments (must be the last parameter of
21      * {@link CtExecutable#getParameters()}).
22      */

23     boolean isVarArgs();
24
25     /**
26      * Sets this parameter to have varargs.
27      */

28     void setVarArgs(boolean varArgs);
29
30     CtParameterReference<T> getReference();
31 }
Popular Tags