1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24#ifndef __com_sun_star_reflection_XParameter_idl__
25#define __com_sun_star_reflection_XParameter_idl__
26
27#include "com/sun/star/reflection/XMethodParameter.idl"
28
29module com {  module sun {  module star {  module reflection {
30
31/**
32   Reflects a parameter of an interface method or a service constructor.
33
34   <p>This type supersedes <type>XMethodParameter</type>, which only supports
35   parameters of interface methods (which cannot have rest parameters).</p>
36
37   @since OOo 2.0
38 */
39interface XParameter: XMethodParameter {
40    /**
41       Returns whether this is a rest parameter.
42
43       <p>A rest parameter must always come last in a parameter list.</p>
44
45       <p>Currently, only service constructors can have rest parameters, and
46       those rest parameters must be in parameters of type <atom>any</atom>.</p>
47
48       @return <TRUE/> if and only if this parameter is a rest parameter
49     */
50    boolean isRestParameter();
51};
52
53}; }; }; };
54
55#endif
56