trace/tracebuilder/com.nokia.tracebuilder/src/com/nokia/tracebuilder/source/SourceInclude.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 * #include found from source |
|
17 * |
|
18 */ |
|
19 package com.nokia.tracebuilder.source; |
|
20 |
|
21 /** |
|
22 * #include found from source |
|
23 * |
|
24 */ |
|
25 public class SourceInclude extends SourceLocationBase { |
|
26 |
|
27 /** |
|
28 * Header name |
|
29 */ |
|
30 private String name; |
|
31 |
|
32 /** |
|
33 * Constructor |
|
34 * |
|
35 * @param parser |
|
36 * the source parser |
|
37 * @param offset |
|
38 * the offset to the location within source |
|
39 */ |
|
40 SourceInclude(SourceParser parser, int offset) { |
|
41 super(parser, offset); |
|
42 } |
|
43 |
|
44 /** |
|
45 * Sets the header name |
|
46 * |
|
47 * @param name |
|
48 * the name |
|
49 */ |
|
50 void setHeaderName(String name) { |
|
51 this.name = name; |
|
52 } |
|
53 |
|
54 /** |
|
55 * Returns the name of the header |
|
56 * |
|
57 * @return the name |
|
58 */ |
|
59 public String getHeaderName() { |
|
60 return name; |
|
61 } |
|
62 |
|
63 } |