Remove all existing @since annotations
[deliverable/tracecompass.git] / org.eclipse.tracecompass.ctf.core / src / org / eclipse / tracecompass / ctf / core / event / scope / FieldsScope.java
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
13 package org.eclipse.tracecompass.ctf.core.event.scope;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19 * A lttng specific speedup node field scope of a lexical scope
20 *
21 * @author Matthew Khouzam
22 */
23 @NonNullByDefault
24 public class FieldsScope extends LexicalScope {
25
26 /**
27 * ret field
28 */
29 public static final LexicalScope FIELDS_RET = new LexicalScope(FIELDS, "_ret"); //$NON-NLS-1$
30
31 /**
32 * tid field
33 */
34 public static final LexicalScope FIELDS_TID = new LexicalScope(FIELDS, "_tid"); //$NON-NLS-1$
35
36 /**
37 * The scope constructor
38 *
39 * @param parent
40 * The parent node, can be null, but shouldn't
41 * @param name
42 * the name of the field
43 */
44 public FieldsScope(LexicalScope parent, String name) {
45 super(parent, name);
46 }
47
48 @Override
49 @Nullable
50 public LexicalScope getChild(String name) {
51 if (name.equals(FIELDS_RET.getName())) {
52 return FIELDS_RET;
53 }
54 if (name.equals(FIELDS_TID.getName())) {
55 return FIELDS_TID;
56 }
57 return super.getChild(name);
58 }
59
60 }
This page took 0.031997 seconds and 5 git commands to generate.