1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: pe_func2.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef ADC_UIDL_PE_FUNC2_HXX
32 #define ADC_UIDL_PE_FUNC2_HXX
38 // #include <ary/idl/i_gate.hxx>
39 // #include <ary/idl/ip_ce.hxx>
40 #include <s2_luidl/parsenv2.hxx>
41 #include <s2_luidl/pestate.hxx>
43 #include <ary/idl/i_param.hxx>
63 class PE_Function
: public UnoIDL_PE
,
67 typedef ary::idl::Ce_id RParent
;
68 typedef ary::idl::Ce_id RFunction
;
70 enum E_Constructor
{ constructor
};
72 /// Constructor for interfaces.
74 const RParent
& i_rCurInterface
);
76 /// Constructor for single interface based services.
78 const RParent
& i_rCurService
,
79 E_Constructor i_eCtorMarker
);
81 virtual void EstablishContacts(
82 UnoIDL_PE
* io_pParentPE
,
83 ary::Repository
& io_rRepository
,
84 TokenProcessing_Result
&
86 virtual ~PE_Function();
88 virtual void ProcessToken(
89 const Token
& i_rToken
);
91 virtual void Process_Stereotype(
94 virtual void Process_Identifier(
97 virtual void Process_Punctuation(
98 const TokPunctuation
&
100 virtual void Process_BuiltInType(
101 const TokBuiltInType
&
103 virtual void Process_ParameterHandling(
104 const TokParameterHandling
&
106 virtual void Process_Raises();
107 virtual void Process_Default();
118 expect_parameter_variable
,
119 in_parameter_variable
,
120 expect_parameter_separator
,
122 expect_exceptions_list
,
125 expect_exception_separator
,
129 void GoIntoReturnType();
130 void GoIntoParameterVariable();
131 void GoIntoException();
134 virtual void InitData();
135 virtual void ReceiveData();
136 virtual void TransferData();
137 virtual UnoIDL_PE
& MyPE();
143 ary::idl::Type_id nData_ReturnType
;
148 const RParent
* pCurParent
;
150 Dyn
<PE_Type
> pPE_Type
;
151 ary::idl::Type_id nCurParsedType
; // ReturnType or Exception
155 Dyn
<PE_Variable
> pPE_Variable
;
156 ary::idl::E_ParameterDirection
157 eCurParsedParam_Direction
;
158 ary::idl::Type_id nCurParsedParam_Type
;
159 String sCurParsedParam_Name
;
160 bool bIsForConstructors
;