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: |
|
15 * |
|
16 * Properties associated with formatting rules |
|
17 * |
|
18 */ |
|
19 package com.nokia.tracecompiler.engine.rules; |
|
20 |
|
21 import com.nokia.tracecompiler.engine.rules.osttrace.OstTraceFormatRule; |
|
22 import com.nokia.tracecompiler.engine.rules.osttrace.OstTraceParserRule; |
|
23 import com.nokia.tracecompiler.engine.source.SourceParserRule; |
|
24 import com.nokia.tracecompiler.project.TraceProjectAPI; |
|
25 |
|
26 /** |
|
27 * Constants for rules engine |
|
28 * |
|
29 */ |
|
30 interface RulesEngineConstants { |
|
31 |
|
32 /** |
|
33 * Trace parsers |
|
34 */ |
|
35 SourceParserRule[] TRACE_PARSERS = { new OstTraceParserRule() }; |
|
36 |
|
37 /** |
|
38 * Printf parsers |
|
39 */ |
|
40 String[] PRINTF_PARSERS = { "RDebug::Print", //$NON-NLS-1$ |
|
41 "Kern::Printf" //$NON-NLS-1$ |
|
42 }; |
|
43 |
|
44 /** |
|
45 * List of supported API's |
|
46 */ |
|
47 TraceProjectAPI[] TRACE_APIS = { new OstTraceFormatRule() }; |
|
48 |
|
49 /** |
|
50 * Persistent extensions |
|
51 */ |
|
52 ClassNameWrapper[] PERSISTENT_EXTENSIONS = { |
|
53 new ClassNameWrapper(ParameterTypeMappingRule.STORAGE_NAME, |
|
54 ParameterTypeMappingRule.class), |
|
55 new ClassNameWrapper(ArrayParameterRuleImpl.STORAGE_NAME, |
|
56 ArrayParameterRuleImpl.class) }; |
|
57 |
|
58 } |
|