trace/tracebuilder/com.nokia.tracebuilder/src/com/nokia/tracebuilder/source/SourcePreprocessorDefinition.java
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007 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 * Preprocessor definitions found from source |
|
17 * |
|
18 */ |
|
19 package com.nokia.tracebuilder.source; |
|
20 |
|
21 /** |
|
22 * Preprocessor definitions found from source |
|
23 * |
|
24 */ |
|
25 public class SourcePreprocessorDefinition extends SourceLocationBase { |
|
26 |
|
27 /** |
|
28 * Definition name |
|
29 */ |
|
30 private String name; |
|
31 |
|
32 /** |
|
33 * Definition value |
|
34 */ |
|
35 private String value; |
|
36 |
|
37 /** |
|
38 * Constructor |
|
39 * |
|
40 * @param parser |
|
41 * the document parser |
|
42 * @param offset |
|
43 * the offset to the location within source |
|
44 */ |
|
45 SourcePreprocessorDefinition(SourceParser parser, int offset) { |
|
46 super(parser, offset); |
|
47 } |
|
48 |
|
49 /** |
|
50 * Sets the definition name |
|
51 * |
|
52 * @param name |
|
53 * the name |
|
54 */ |
|
55 void setName(String name) { |
|
56 this.name = name; |
|
57 } |
|
58 |
|
59 /** |
|
60 * Sets the definition value |
|
61 * |
|
62 * @param value |
|
63 * the value |
|
64 */ |
|
65 void setValue(String value) { |
|
66 this.value = value; |
|
67 } |
|
68 |
|
69 /** |
|
70 * Returns the name of the definition |
|
71 * |
|
72 * @return the name |
|
73 */ |
|
74 public String getName() { |
|
75 return name; |
|
76 } |
|
77 |
|
78 /** |
|
79 * Returns the value of the definition |
|
80 * |
|
81 * @return the value |
|
82 */ |
|
83 public String getValue() { |
|
84 return value; |
|
85 } |
|
86 |
|
87 } |