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 CtExecutable9 */10 public interface CtParameter<T> extends CtNamedElement, CtVariable<T> {11 12 /**13 * Gets the executable that is the parent declaration of this parameter14 * declaration.15 */16 CtExecutable<?> getParent();17 18 /**19 * Returns <tt>true</tt> if this parameter accepts a variable number of20 * arguments (must be the last parameter of21 * {@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 }