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: semnode.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_SEMNODE_HXX
32 #define ADC_SEMNODE_HXX
38 #include <s2_luidl/tokproct.hxx>
41 #include <ary/qualiname.hxx>
42 // #include <udm/ref.hxx>
68 /** is an implementation class for UnoIDL_PE s
70 class SemanticNode
: private TokenProcessing_Types
74 void EstablishContacts(
75 UnoIDL_PE
* io_pParentPE
,
76 ary::idl::Gate
& io_rRepository
,
77 TokenProcessing_Result
&
83 E_EnvStackAction i_eWhat2DoWithEnvStack
,
84 UnoIDL_PE
* i_pParseEnv2Push
= 0 );
85 UnoIDL_PE
* Parent() const { return pParentPE
; }
86 ary::idl::Gate
& AryGate() const { return *pAryGate
; }
87 TokenProcessing_Result
&
88 TokenResult() const { return *pTokenResult
; }
92 UnoIDL_PE
* pParentPE
;
93 ary::idl::Gate
* pAryGate
;
94 TokenProcessing_Result
*
103 virtual ~Trying_PE() {}
108 virtual void ProcessToken(
109 const Token & i_rToken );
112 UnoIDL_PE & i_rFirstTry );
114 UnoIDL_PE & i_rTry );
115 bool AmITrying() const;
116 UnoIDL_PE * NextTry() const;
120 std::vector<UnoIDL_PE*>
121 aTryableSubEnvironments;