|
1 /* |
|
2 * Copyright (c) 2004-2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 using System; |
|
19 using System.Text; |
|
20 using System.Collections; |
|
21 using SymBuildParsingLib.Tree; |
|
22 using SymbianTree; |
|
23 |
|
24 namespace SymBuildParsingLib.Common.Objects |
|
25 { |
|
26 public class SymArgumentSubLevel : SymNodeAddAsChild |
|
27 { |
|
28 #region Constructors & destructor |
|
29 public SymArgumentSubLevel( SymNode aCopyFrom ) |
|
30 { |
|
31 AppendChildrenFrom( aCopyFrom ); |
|
32 } |
|
33 #endregion |
|
34 } |
|
35 |
|
36 public class SymArgument : SymDocument |
|
37 { |
|
38 #region Constructors & destructor |
|
39 public SymArgument() |
|
40 { |
|
41 } |
|
42 #endregion |
|
43 |
|
44 #region API |
|
45 #endregion |
|
46 |
|
47 #region Properties |
|
48 public string CoalescedTokenValue |
|
49 { |
|
50 get |
|
51 { |
|
52 StringBuilder ret = new StringBuilder(); |
|
53 // |
|
54 BuildRecursiveTokenValueString( this, ref ret ); |
|
55 // |
|
56 return ret.ToString(); |
|
57 } |
|
58 } |
|
59 #endregion |
|
60 |
|
61 #region Internal methods |
|
62 private void BuildRecursiveTokenValueString( SymNode aNode, ref StringBuilder aString ) |
|
63 { |
|
64 if ( aNode is SymNodeToken ) |
|
65 { |
|
66 SymNodeToken tokenNode = (SymNodeToken) aNode; |
|
67 aString.Append( tokenNode.Token ); |
|
68 } |
|
69 // |
|
70 foreach( SymNode child in aNode ) |
|
71 { |
|
72 BuildRecursiveTokenValueString( child, ref aString ); |
|
73 } |
|
74 } |
|
75 #endregion |
|
76 |
|
77 #region Data members |
|
78 #endregion |
|
79 } |
|
80 } |