1 /*******************************************************************************
2 * Copyright (c) 2014 Ericsson
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
10 * Matthew Khouzam - Initial API and implementation
11 *******************************************************************************/
12 package org
.eclipse
.tracecompass
.ctf
.core
.event
.types
;
14 import java
.util
.List
;
16 import org
.eclipse
.jdt
.annotation
.NonNullByDefault
;
17 import org
.eclipse
.jdt
.annotation
.Nullable
;
18 import org
.eclipse
.tracecompass
.ctf
.core
.event
.scope
.IDefinitionScope
;
21 * Array definition, used for compound definitions and fixed length strings
23 * @author Matthew Khouzam
26 public abstract class AbstractArrayDefinition
extends Definition
{
32 * the event declaration
34 * @param definitionScope
35 * the definition is in a scope, (normally a struct) what is it?
37 * the name of the definition. (it is a field in the parent
40 public AbstractArrayDefinition(IDeclaration declaration
, @Nullable IDefinitionScope definitionScope
, String fieldName
) {
41 super(declaration
, definitionScope
, fieldName
);
45 * Get the defintions, an array is a collection of definitions
47 * @return the definitions
49 public abstract List
<Definition
> getDefinitions();
52 * Get the the number of elements in the array
54 * @return how many elements in the array
57 public abstract int getLength();