- Timestamp:
- 02/16/06 13:24:34 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.modelica.mdt.core/src/org/modelica/mdt/core/compiler/ElementsInfo.java
r321 r323 72 72 private String path = null; 73 73 private String id = null; 74 private String typeName = null; 75 private String direction = null; 74 76 75 77 public ElementsInfo(List elementsInfo) … … 233 235 return classFileName; 234 236 } 235 236 237 237 238 /** … … 246 247 return id; 247 248 } 249 250 /** 251 * @return the contents of 'typename' field 252 */ 253 public String getTypeName() 254 { 255 if (typeName == null) 256 { 257 parseUntil("typename"); 258 } 259 return typeName; 260 } 261 262 /** 263 * @return the contents of 'direction' field 264 */ 265 public String getDirection() 266 { 267 if (direction == null) 268 { 269 parseUntil("direction"); 270 } 271 return direction; 272 } 273 248 274 249 275 /** … … 346 372 nameLength = 2; 347 373 id = rawField.substring(nameLength+1).trim(); 348 } 374 } 375 else if (rawField.startsWith("typename=")) 376 { 377 nameLength = 8; 378 typeName = rawField.substring(nameLength+1).trim(); 379 } 380 else if (rawField.startsWith("direction=")) 381 { 382 nameLength = 9; 383 direction = rawField.substring(nameLength+1).trim(); 384 385 /* 386 * remove "" around the fields value by removing 387 * first and last character 388 */ 389 direction = 390 direction.substring(1, direction.length() - 1); 391 392 } 349 393 else /* we are not interedted in this particular field at all */ 350 394 {
Note: See TracChangeset
for help on using the changeset viewer.