tracefw/tracecompiler/src/com.nokia.tracecompiler/src/com/nokia/tracecompiler/source/SourceLocationInterface.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 * Interface which abstracts the underlying position framework |
|
17 * |
|
18 */ |
|
19 package com.nokia.tracecompiler.source; |
|
20 |
|
21 /** |
|
22 * Interface which abstracts the underlying position framework |
|
23 * |
|
24 */ |
|
25 public interface SourceLocationInterface { |
|
26 |
|
27 /** |
|
28 * Gets the offset of the location |
|
29 * |
|
30 * @return the offset |
|
31 */ |
|
32 int getOffset(); |
|
33 |
|
34 /** |
|
35 * Sets the offset |
|
36 * |
|
37 * @param offset |
|
38 * the new offset |
|
39 */ |
|
40 void setOffset(int offset); |
|
41 |
|
42 /** |
|
43 * Gets the length of the location |
|
44 * |
|
45 * @return the length |
|
46 */ |
|
47 int getLength(); |
|
48 |
|
49 /** |
|
50 * Sets the length |
|
51 * |
|
52 * @param length |
|
53 * the length |
|
54 */ |
|
55 void setLength(int length); |
|
56 |
|
57 /** |
|
58 * Checks if the location has been deleted |
|
59 * |
|
60 * @return true if deleted |
|
61 */ |
|
62 boolean isDeleted(); |
|
63 |
|
64 /** |
|
65 * Marks the location as deleted |
|
66 */ |
|
67 void delete(); |
|
68 |
|
69 } |
|