Commit | Line | Data |
---|---|---|
7b4f13e6 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 | package org.eclipse.linuxtools.ctf.core.event.types; | |
13 | ||
14 | import java.util.List; | |
15 | ||
16 | import org.eclipse.jdt.annotation.NonNullByDefault; | |
17 | import org.eclipse.jdt.annotation.Nullable; | |
18 | import org.eclipse.linuxtools.ctf.core.event.scope.IDefinitionScope; | |
19 | ||
20 | /** | |
21 | * Array definition, used for compound definitions and fixed length strings | |
22 | * | |
23 | * @author Matthew Khouzam | |
24 | * @since 3.1 | |
25 | */ | |
26 | @NonNullByDefault | |
27 | public abstract class AbstractArrayDefinition extends Definition { | |
28 | ||
29 | /** | |
30 | * Constructor | |
31 | * | |
32 | * @param declaration | |
33 | * the event declaration | |
34 | * | |
35 | * @param definitionScope | |
36 | * the definition is in a scope, (normally a struct) what is it? | |
37 | * @param fieldName | |
38 | * the name of the definition. (it is a field in the parent | |
39 | * scope) | |
40 | */ | |
41 | public AbstractArrayDefinition(IDeclaration declaration, @Nullable IDefinitionScope definitionScope, String fieldName) { | |
42 | super(declaration, definitionScope, fieldName); | |
43 | } | |
44 | ||
45 | /** | |
46 | * Get the defintions, an array is a collection of definitions | |
47 | * | |
48 | * @return the definitions | |
49 | */ | |
50 | public abstract List<Definition> getDefinitions(); | |
51 | ||
52 | } |