0
|
1 |
/*
|
|
2 |
* Copyright (c) 2008 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 |
*/
|
|
17 |
|
|
18 |
package com.nokia.s60tools.util.sourcecode;
|
|
19 |
|
|
20 |
/**
|
|
21 |
* Class for holding source file information.
|
|
22 |
*/
|
|
23 |
public class SourceFileLocation {
|
|
24 |
|
|
25 |
/**
|
|
26 |
* Folder name constant for release directory
|
|
27 |
*/
|
|
28 |
public static final String RELEASE_FOLDER_NAME = "RELEASE"; //$NON-NLS-1$
|
|
29 |
|
|
30 |
/**
|
|
31 |
* Folder name constant for epoc32
|
|
32 |
*/
|
|
33 |
public static final String EPOC32_FOLDER_NAME = "epoc32"; //$NON-NLS-1$
|
|
34 |
|
|
35 |
/**
|
|
36 |
* Value for method offset in source file if offset was not found or is not set.
|
|
37 |
*/
|
|
38 |
public static final int OFFSET_NOT_FOUND = -1;
|
|
39 |
|
|
40 |
/**
|
|
41 |
* Ordinal
|
|
42 |
*/
|
|
43 |
private String ordinal = null;
|
|
44 |
|
|
45 |
/**
|
|
46 |
* Name of the method
|
|
47 |
*/
|
|
48 |
private String methodName = null;
|
|
49 |
|
|
50 |
/**
|
|
51 |
* Source file location
|
|
52 |
*/
|
|
53 |
private String sourceFileLocation = null;
|
|
54 |
|
|
55 |
/**
|
|
56 |
* Name of the DLL where method is exported
|
|
57 |
*/
|
|
58 |
private String dllName = null;
|
|
59 |
|
|
60 |
/**
|
|
61 |
* Name of the object file, where method is exported
|
|
62 |
*/
|
|
63 |
private String objectName = null;
|
|
64 |
|
|
65 |
/**
|
|
66 |
* Method address
|
|
67 |
*/
|
|
68 |
private String methodAddress = null;
|
|
69 |
|
|
70 |
/**
|
|
71 |
* Method line offset.
|
|
72 |
*/
|
|
73 |
private int methodLineOffset = OFFSET_NOT_FOUND;
|
|
74 |
|
|
75 |
|
|
76 |
/**
|
|
77 |
* Gets method ordinal
|
|
78 |
* @return the ordinal
|
|
79 |
*/
|
|
80 |
public String getOrdinal() {
|
|
81 |
return ordinal;
|
|
82 |
}
|
|
83 |
|
|
84 |
/**
|
|
85 |
* Sets method ordinal
|
|
86 |
* @param ordinal the ordinal to set
|
|
87 |
*/
|
|
88 |
public void setOrdinal(String ordinal) {
|
|
89 |
this.ordinal = ordinal;
|
|
90 |
}
|
|
91 |
|
|
92 |
/**
|
|
93 |
* Gets method name
|
|
94 |
* @return the methodName
|
|
95 |
*/
|
|
96 |
public String getMethodName() {
|
|
97 |
return methodName;
|
|
98 |
}
|
|
99 |
|
|
100 |
/**
|
|
101 |
* Sets method name
|
|
102 |
* @param methodName the methodName to set
|
|
103 |
*/
|
|
104 |
public void setMethodName(String methodName) {
|
|
105 |
this.methodName = methodName;
|
|
106 |
}
|
|
107 |
|
|
108 |
/**
|
|
109 |
* Gets source file location
|
|
110 |
* @return the sourceFileLocation in absolute path.
|
|
111 |
*/
|
|
112 |
public String getSourceFileLocation() {
|
|
113 |
return sourceFileLocation;
|
|
114 |
}
|
|
115 |
|
|
116 |
/**
|
|
117 |
* Sets source file location
|
|
118 |
* @param sourceFileLocation in absolute format.
|
|
119 |
*/
|
|
120 |
public void setSourceFileLocation(String sourceFileLocation) {
|
|
121 |
this.sourceFileLocation = sourceFileLocation;
|
|
122 |
}
|
|
123 |
|
|
124 |
/**
|
|
125 |
* Gets DLL name
|
|
126 |
* @return the dllName
|
|
127 |
*/
|
|
128 |
public String getDllName() {
|
|
129 |
return dllName;
|
|
130 |
}
|
|
131 |
|
|
132 |
/**
|
|
133 |
* Sets DLL name
|
|
134 |
* @param dllName the dllName to set
|
|
135 |
*/
|
|
136 |
public void setDllName(String dllName) {
|
|
137 |
this.dllName = dllName;
|
|
138 |
}
|
|
139 |
|
|
140 |
/**
|
|
141 |
* Gets object name
|
|
142 |
* @return the objectName
|
|
143 |
*/
|
|
144 |
public String getObjectName() {
|
|
145 |
return objectName;
|
|
146 |
}
|
|
147 |
|
|
148 |
/**
|
|
149 |
* Sets object name
|
|
150 |
* @param objectName the objectName to set
|
|
151 |
*/
|
|
152 |
public void setObjectName(String objectName) {
|
|
153 |
this.objectName = objectName;
|
|
154 |
}
|
|
155 |
|
|
156 |
/**
|
|
157 |
* Sets the address of the method
|
|
158 |
* @param methodAddress
|
|
159 |
*/
|
|
160 |
public void setMethodAddress(String methodAddress) {
|
|
161 |
this.methodAddress = methodAddress;
|
|
162 |
}
|
|
163 |
/**
|
|
164 |
* Get method address
|
|
165 |
* @return the address of the method
|
|
166 |
*/
|
|
167 |
public String getMethodAddress() {
|
|
168 |
return methodAddress;
|
|
169 |
}
|
|
170 |
|
|
171 |
/**
|
|
172 |
* Gets method offset
|
|
173 |
* @return the methodLineOffset or 0 if not known or set.
|
|
174 |
*/
|
|
175 |
public int getMethodOffset() {
|
|
176 |
return methodLineOffset;
|
|
177 |
}
|
|
178 |
|
|
179 |
/**
|
|
180 |
* Sets method offset
|
|
181 |
* @param methodLineOffset the methodLineOffset to set
|
|
182 |
*/
|
|
183 |
public void setMethodOffset(int methodLineOffset) {
|
|
184 |
this.methodLineOffset = methodLineOffset;
|
|
185 |
}
|
|
186 |
}
|