1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 module test
{ module codemaker
{ module javamaker
{
22 enum Enum1
{ VALUE1
= -100, VALUE2
= 100 };
24 enum Enum2
{ VALUE0
= 0, VALUE1
= 1, VALUE2
= 2, VALUE4
= 4 };
26 struct Struct1
{ long member1
; };
28 struct PolyStruct
<if
,else
> {
36 [attribute
, bound
] long A1
;
37 [attribute
, bound
, readonly] long A2
;
40 (com
::sun
::star
::uno
::Exception
,
41 com
::sun
::star
::lang
::ClassNotFoundException
);
42 set raises
(com
::sun
::star
::uno
::RuntimeException
);
44 [attribute
, readonly] long A4
{
45 get raises
(com
::sun
::star
::uno
::DeploymentException
);
49 typedef boolean Boolean;
52 typedef unsigned short UnsignedShort
;
54 typedef unsigned long UnsignedLong
;
56 typedef unsigned hyper UnsignedHyper
;
58 typedef double Double;
60 typedef string String;
64 typedef Struct1
Struct;
65 typedef com
::sun
::star
::uno
::XInterface XInterface
;
66 typedef com
::sun
::star
::uno
::XNamingService XNamingService
;
68 typedef sequence
< Boolean > SequenceBoolean
;
69 typedef sequence
< Byte > SequenceByte
;
70 typedef sequence
< Short > SequenceShort
;
71 typedef sequence
< UnsignedShort
> SequenceUnsignedShort
;
72 typedef sequence
< Long > SequenceLong
;
73 typedef sequence
< UnsignedLong
> SequenceUnsignedLong
;
74 typedef sequence
< Hyper > SequenceHyper
;
75 typedef sequence
< UnsignedHyper
> SequenceUnsignedHyper
;
76 typedef sequence
< Float > SequenceFloat
;
77 typedef sequence
< Double > SequenceDouble
;
78 typedef sequence
< Char > SequenceChar
;
79 typedef sequence
< String > SequenceString
;
80 typedef sequence
< Type
> SequenceType
;
81 typedef sequence
< Any
> SequenceAny
;
82 typedef sequence
< Enum > SequenceEnum
;
83 typedef sequence
< Struct > SequenceStruct
;
84 typedef sequence
< XInterface
> SequenceXInterface
;
85 typedef sequence
< XNamingService
> SequenceXNamingService
;
104 com
::sun
::star
::uno
::XInterface p17
;
105 com
::sun
::star
::uno
::XNamingService p18
;
124 sequence
< boolean > a1
;
126 sequence
< short > a3
;
127 sequence
< unsigned short > a4
;
129 sequence
< unsigned long > a6
;
130 sequence
< hyper > a7
;
131 sequence
< unsigned hyper > a8
;
132 sequence
< float > a9
;
133 sequence
< double > a10
;
134 sequence
< char > a11
;
135 sequence
< string > a12
;
136 sequence
< type
> a13
;
138 sequence
< Enum2
> a15
;
139 sequence
< Struct1
> a16
;
140 sequence
< com
::sun
::star
::uno
::XInterface
> a17
;
141 sequence
< com
::sun
::star
::uno
::XNamingService
> a18
;
142 sequence
< sequence
< boolean > > aa1
;
143 sequence
< sequence
< byte > > aa2
;
144 sequence
< sequence
< short > > aa3
;
145 sequence
< sequence
< unsigned short > > aa4
;
146 sequence
< sequence
< long > > aa5
;
147 sequence
< sequence
< unsigned long > > aa6
;
148 sequence
< sequence
< hyper > > aa7
;
149 sequence
< sequence
< unsigned hyper > > aa8
;
150 sequence
< sequence
< float > > aa9
;
151 sequence
< sequence
< double > > aa10
;
152 sequence
< sequence
< char > > aa11
;
153 sequence
< sequence
< string > > aa12
;
154 sequence
< sequence
< type
> > aa13
;
155 sequence
< sequence
< any
> > aa14
;
156 sequence
< sequence
< Enum2
> > aa15
;
157 sequence
< sequence
< Struct1
> > aa16
;
158 sequence
< sequence
< com
::sun
::star
::uno
::XInterface
> > aa17
;
159 sequence
< sequence
< com
::sun
::star
::uno
::XNamingService
> > aa18
;
160 sequence
< SequenceBoolean
> at1
;
161 sequence
< SequenceByte
> at2
;
162 sequence
< SequenceShort
> at3
;
163 sequence
< SequenceUnsignedShort
> at4
;
164 sequence
< SequenceLong
> at5
;
165 sequence
< SequenceUnsignedLong
> at6
;
166 sequence
< SequenceHyper
> at7
;
167 sequence
< SequenceUnsignedHyper
> at8
;
168 sequence
< SequenceFloat
> at9
;
169 sequence
< SequenceDouble
> at10
;
170 sequence
< SequenceChar
> at11
;
171 sequence
< SequenceString
> at12
;
172 sequence
< SequenceType
> at13
;
173 sequence
< SequenceAny
> at14
;
174 sequence
< SequenceEnum
> at15
;
175 sequence
< SequenceStruct
> at16
;
176 sequence
< SequenceXInterface
> at17
;
177 sequence
< SequenceXNamingService
> at18
;
183 create2
([in] any... create2
)
184 raises
(com
::sun
::star
::uno
::RuntimeException
,
185 com
::sun
::star
::lang
::ClassNotFoundException
,
186 com
::sun
::star
::uno
::Exception
,
187 com
::sun
::star
::lang
::IllegalAccessException
,
188 com
::sun
::star
::uno
::DeploymentException
);
190 create3
([in] sequence
<any
> S1
)
191 raises
(com
::sun
::star
::uno
::RuntimeException
,
192 com
::sun
::star
::lang
::ClassNotFoundException
,
193 com
::sun
::star
::lang
::IllegalAccessException
,
194 com
::sun
::star
::uno
::DeploymentException
);
196 create4
([in] long javamaker
, [in] long S1
, [in] long create4
);
202 [in] unsigned short p4
,
204 [in] unsigned long p6
,
206 [in] unsigned hyper p8
,
215 [in] com
::sun
::star
::uno
::XInterface p17
,
216 [in] com
::sun
::star
::uno
::XNamingService p18
,
220 [in] UnsignedShort t4
,
222 [in] UnsignedLong t6
,
224 [in] UnsignedHyper t8
,
234 [in] XNamingService t18
,
235 [in] sequence
< boolean > a1
,
236 [in] sequence
< byte > a2
,
237 [in] sequence
< short > a3
,
238 [in] sequence
< unsigned short > a4
,
239 [in] sequence
< long > a5
,
240 [in] sequence
< unsigned long > a6
,
241 [in] sequence
< hyper > a7
,
242 [in] sequence
< unsigned hyper > a8
,
243 [in] sequence
< float > a9
,
244 [in] sequence
< double > a10
,
245 [in] sequence
< char > a11
,
246 [in] sequence
< string > a12
,
247 [in] sequence
< type
> a13
,
248 [in] sequence
< any
> a14
,
249 [in] sequence
< Enum2
> a15
,
250 [in] sequence
< Struct1
> a16
,
251 [in] sequence
< com
::sun
::star
::uno
::XInterface
> a17
,
252 [in] sequence
< com
::sun
::star
::uno
::XNamingService
> a18
,
253 [in] sequence
< sequence
< boolean > > aa1
,
254 [in] sequence
< sequence
< byte > > aa2
,
255 [in] sequence
< sequence
< short > > aa3
,
256 [in] sequence
< sequence
< unsigned short > > aa4
,
257 [in] sequence
< sequence
< long > > aa5
,
258 [in] sequence
< sequence
< unsigned long > > aa6
,
259 [in] sequence
< sequence
< hyper > > aa7
,
260 [in] sequence
< sequence
< unsigned hyper > > aa8
,
261 [in] sequence
< sequence
< float > > aa9
,
262 [in] sequence
< sequence
< double > > aa10
,
263 [in] sequence
< sequence
< char > > aa11
,
264 [in] sequence
< sequence
< string > > aa12
,
265 [in] sequence
< sequence
< type
> > aa13
,
266 [in] sequence
< sequence
< any
> > aa14
,
267 [in] sequence
< sequence
< Enum2
> > aa15
,
268 [in] sequence
< sequence
< Struct1
> > aa16
,
269 [in] sequence
< sequence
< com
::sun
::star
::uno
::XInterface
> > aa17
,
270 [in] sequence
< sequence
< com
::sun
::star
::uno
::XNamingService
> > aa18
,
271 [in] sequence
< SequenceBoolean
> at1
,
272 [in] sequence
< SequenceByte
> at2
,
273 [in] sequence
< SequenceShort
> at3
,
274 [in] sequence
< SequenceUnsignedShort
> at4
,
275 [in] sequence
< SequenceLong
> at5
,
276 [in] sequence
< SequenceUnsignedLong
> at6
,
277 [in] sequence
< SequenceHyper
> at7
,
278 [in] sequence
< SequenceUnsignedHyper
> at8
,
279 [in] sequence
< SequenceFloat
> at9
,
280 [in] sequence
< SequenceDouble
> at10
,
281 [in] sequence
< SequenceChar
> at11
,
282 [in] sequence
< SequenceString
> at12
,
283 [in] sequence
< SequenceType
> at13
,
284 [in] sequence
< SequenceAny
> at14
,
285 [in] sequence
< SequenceEnum
> at15
,
286 [in] sequence
< SequenceStruct
> at16
,
287 [in] sequence
< SequenceXInterface
> at17
,
288 [in] sequence
< SequenceXNamingService
> at18
);
293 service S3
{ interface XTest
; };
297 service abstract
: com
::sun
::star
::uno
::XInterface
{
298 abstract
([in] long abstract
); };
299 service assert
: com
::sun
::star
::uno
::XInterface
{ assert
([in] long assert
); };
301 service break
: com
::sun
::star
::uno
::XInterface
{ break
([in] long break
); };
304 service catch
: com
::sun
::star
::uno
::XInterface
{ catch
([in] long catch
); };
306 service class
: com
::sun
::star
::uno
::XInterface
{ class
([in] long class
); };
308 service continue
: com
::sun
::star
::uno
::XInterface
{
309 continue
([in] long continue
); };
311 service do
: com
::sun
::star
::uno
::XInterface
{ do
([in] long do
); };
313 service else
: com
::sun
::star
::uno
::XInterface
{ else
([in] long else
); };
315 service extends
: com
::sun
::star
::uno
::XInterface
{
316 extends
([in] long extends
); };
317 service final
: com
::sun
::star
::uno
::XInterface
{ final
([in] long final
); };
318 service finally
: com
::sun
::star
::uno
::XInterface
{
319 finally
([in] long finally
); };
321 service for
: com
::sun
::star
::uno
::XInterface
{ for
([in] long for
); };
322 service goto
: com
::sun
::star
::uno
::XInterface
{ goto
([in] long goto
); };
323 service if
: com
::sun
::star
::uno
::XInterface
{ if
([in] long if
); };
324 service implements
: com
::sun
::star
::uno
::XInterface
{
325 implements
([in] long implements
); };
326 service import
: com
::sun
::star
::uno
::XInterface
{ import
([in] long import
); };
327 service instanceof
: com
::sun
::star
::uno
::XInterface
{
328 instanceof
([in] long instanceof
); };
329 service
int: com
::sun
::star
::uno
::XInterface
{ int([in] long int); };
332 service native
: com
::sun
::star
::uno
::XInterface
{ native
([in] long native
); };
333 service new
: com
::sun
::star
::uno
::XInterface
{ new
([in] long new
); };
334 service package
: com
::sun
::star
::uno
::XInterface
{
335 package
([in] long package
); };
336 service private
: com
::sun
::star
::uno
::XInterface
{
337 private
([in] long private
); };
338 service protected
: com
::sun
::star
::uno
::XInterface
{
339 protected
([in] long protected
); };
340 service
public: com
::sun
::star
::uno
::XInterface
{ public([in] long public); };
341 service return
: com
::sun
::star
::uno
::XInterface
{ return
([in] long return
); };
343 service static
: com
::sun
::star
::uno
::XInterface
{ static
([in] long static
); };
344 service strictfp
: com
::sun
::star
::uno
::XInterface
{
345 strictfp
([in] long strictfp
); };
346 service super
: com
::sun
::star
::uno
::XInterface
{ super
([in] long super
); };
348 service synchronized
: com
::sun
::star
::uno
::XInterface
{
349 synchronized
([in] long synchronized
); };
350 service this
: com
::sun
::star
::uno
::XInterface
{ this
([in] long this
); };
351 service throw
: com
::sun
::star
::uno
::XInterface
{ throw
([in] long throw
); };
352 service throws
: com
::sun
::star
::uno
::XInterface
{ throws
([in] long throws
); };
354 service try
: com
::sun
::star
::uno
::XInterface
{ try
([in] long try
); };
356 service volatile
: com
::sun
::star
::uno
::XInterface
{
357 volatile
([in] long volatile
); };
358 service while
: com
::sun
::star
::uno
::XInterface
{ while
([in] long while
); };
364 singleton S5
{ service S2
; };
366 singleton abstract
: com
::sun
::star
::uno
::XNamingService
;
367 singleton assert
: com
::sun
::star
::uno
::XNamingService
;
368 //TODO: singleton boolean: com::sun::star::uno::XNamingService;
369 singleton break
: com
::sun
::star
::uno
::XNamingService
;
370 //TODO: singleton byte: com::sun::star::uno::XNamingService;
371 //TODO: singleton case: com::sun::star::uno::XNamingService;
372 singleton catch
: com
::sun
::star
::uno
::XNamingService
;
373 //TODO: singleton char: com::sun::star::uno::XNamingService;
374 singleton class
: com
::sun
::star
::uno
::XNamingService
;
375 //TODO: singleton const: com::sun::star::uno::XNamingService;
376 singleton continue
: com
::sun
::star
::uno
::XNamingService
;
377 //TODO: singleton default: com::sun::star::uno::XNamingService;
378 singleton do
: com
::sun
::star
::uno
::XNamingService
;
379 //TODO: singleton double: com::sun::star::uno::XNamingService;
380 singleton else
: com
::sun
::star
::uno
::XNamingService
;
381 //TODO: singleton enum: com::sun::star::uno::XNamingService;
382 singleton extends
: com
::sun
::star
::uno
::XNamingService
;
383 singleton final
: com
::sun
::star
::uno
::XNamingService
;
384 singleton finally
: com
::sun
::star
::uno
::XNamingService
;
385 //TODO: singleton float: com::sun::star::uno::XNamingService;
386 singleton for
: com
::sun
::star
::uno
::XNamingService
;
387 singleton goto
: com
::sun
::star
::uno
::XNamingService
;
388 singleton if
: com
::sun
::star
::uno
::XNamingService
;
389 singleton implements
: com
::sun
::star
::uno
::XNamingService
;
390 singleton import
: com
::sun
::star
::uno
::XNamingService
;
391 singleton instanceof
: com
::sun
::star
::uno
::XNamingService
;
392 singleton
int: com
::sun
::star
::uno
::XNamingService
;
393 //TODO: singleton interface: com::sun::star::uno::XNamingService;
394 //TODO: singleton long: com::sun::star::uno::XNamingService;
395 singleton native
: com
::sun
::star
::uno
::XNamingService
;
396 singleton new
: com
::sun
::star
::uno
::XNamingService
;
397 singleton package
: com
::sun
::star
::uno
::XNamingService
;
398 singleton private
: com
::sun
::star
::uno
::XNamingService
;
399 singleton protected
: com
::sun
::star
::uno
::XNamingService
;
400 singleton
public: com
::sun
::star
::uno
::XNamingService
;
401 singleton return
: com
::sun
::star
::uno
::XNamingService
;
402 //TODO: singleton short: com::sun::star::uno::XNamingService;
403 singleton static
: com
::sun
::star
::uno
::XNamingService
;
404 singleton strictfp
: com
::sun
::star
::uno
::XNamingService
;
405 singleton super
: com
::sun
::star
::uno
::XNamingService
;
406 //TODO: singleton switch: com::sun::star::uno::XNamingService;
407 singleton synchronized
: com
::sun
::star
::uno
::XNamingService
;
408 singleton this
: com
::sun
::star
::uno
::XNamingService
;
409 singleton throw
: com
::sun
::star
::uno
::XNamingService
;
410 singleton throws
: com
::sun
::star
::uno
::XNamingService
;
411 //TODO: singleton transient: com::sun::star::uno::XNamingService;
412 singleton try
: com
::sun
::star
::uno
::XNamingService
;
413 //TODO: singleton void: com::sun::star::uno::XNamingService;
414 singleton volatile
: com
::sun
::star
::uno
::XNamingService
;
415 singleton while
: com
::sun
::star
::uno
::XNamingService
;
419 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */