Commit | Line | Data |
---|---|---|
cc98c947 MK |
1 | /******************************************************************************* |
2 | * Copyright (c) 2014 Ericsson | |
3 | * | |
4 | * All rights reserved. This program and the accompanying materials are made | |
5 | * available under the terms of the Eclipse Public License v1.0 which | |
6 | * accompanies this distribution, and is available at | |
7 | * http://www.eclipse.org/legal/epl-v10.html | |
8 | * | |
9 | * Contributors: | |
10 | * Matthew Khouzam - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
f357bcd4 | 13 | package org.eclipse.tracecompass.ctf.core.event.types; |
cc98c947 MK |
14 | |
15 | import org.eclipse.jdt.annotation.NonNullByDefault; | |
f357bcd4 | 16 | import org.eclipse.tracecompass.ctf.core.event.scope.LexicalScope; |
cc98c947 MK |
17 | |
18 | /** | |
19 | * Interface for data definitions. A definition is when a value is given to a | |
20 | * declaration | |
21 | * | |
22 | * @author Matthew Khouzam | |
cc98c947 MK |
23 | */ |
24 | @NonNullByDefault | |
25 | public interface IDefinition { | |
26 | ||
27 | /** | |
28 | * Get the complete path of this field. | |
29 | * | |
30 | * @return The path | |
31 | */ | |
32 | LexicalScope getScopePath(); | |
33 | ||
34 | /** | |
35 | * Get the declaration of this definition | |
36 | * | |
37 | * @return the declaration of a datatype | |
38 | */ | |
39 | IDeclaration getDeclaration(); | |
40 | ||
41 | } |