|
1 /* |
|
2 * Copyright (c) 2009 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: wrapper class for manual test. |
|
15 * |
|
16 */ |
|
17 package com.nokia.testfw.cmdtool.test; |
|
18 |
|
19 import java.util.Vector; |
|
20 |
|
21 import com.nokia.testfw.cmdtool.cbrowserwrapper.*; |
|
22 |
|
23 public class GccxmlWrapperTest implements IParseListener { |
|
24 |
|
25 |
|
26 public GccxmlWrapperTest() |
|
27 { |
|
28 } |
|
29 |
|
30 public void Run(String bldfilename) |
|
31 { |
|
32 IParseWrapper wrapper = new CBrowserWrapper(); |
|
33 wrapper.AddParseListener(this); |
|
34 Vector<SymCMMPInfo> mmpList = wrapper.Parse(bldfilename); |
|
35 for(int i=0;i<mmpList.size();i++) |
|
36 { |
|
37 SymCMMPInfo mmpInfo = mmpList.get(i); |
|
38 System.out.println("======================================"); |
|
39 System.out.println("MMP FILE:" + mmpInfo.Name); |
|
40 |
|
41 for(SymCClassInfo classInfo: mmpInfo.ClassList()) |
|
42 { |
|
43 System.out.println(" Class:" + classInfo.Name); |
|
44 |
|
45 for(SymCMethodInfo methodInfo : classInfo.FunctionList()) |
|
46 { |
|
47 System.out.print(" " + methodInfo.toString() + "\r\n"); |
|
48 System.out.print(" >>>md: " + methodInfo.DefinitionFile + "\r\n"); |
|
49 System.out.print(" >>>mi: " + methodInfo.ImplementationFile + "\r\n"); |
|
50 } |
|
51 } |
|
52 |
|
53 } |
|
54 |
|
55 System.out.println("**********************************************************"); |
|
56 |
|
57 } |
|
58 |
|
59 public void GetParseMessage(ParseEventType type, String message) { |
|
60 // TODO Auto-generated method stub |
|
61 if(type == ParseEventType.Done) |
|
62 { |
|
63 System.out.println("Done!"); |
|
64 } |
|
65 else if(type == ParseEventType.Failed) |
|
66 { |
|
67 System.out.println("Error: " + message); |
|
68 } |
|
69 else |
|
70 { |
|
71 System.out.println(message); |
|
72 } |
|
73 } |
|
74 } |