rcp: Move plugins to their own sub-directory
[deliverable/tracecompass.git] / org.eclipse.tracecompass.ctf.core / src / org / eclipse / tracecompass / ctf / core / event / scope / FieldsScope.java
CommitLineData
70f60307
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 13package org.eclipse.tracecompass.ctf.core.event.scope;
70f60307
MK
14
15import org.eclipse.jdt.annotation.NonNullByDefault;
16import org.eclipse.jdt.annotation.Nullable;
17
18/**
19 * A lttng specific speedup node field scope of a lexical scope
20 *
21 * @author Matthew Khouzam
70f60307
MK
22 */
23@NonNullByDefault
fbe6fa6f 24public final class FieldsScope extends LexicalScope {
70f60307
MK
25
26 /**
27 * The scope constructor
28 *
29 * @param parent
30 * The parent node, can be null, but shouldn't
31 * @param name
32 * the name of the field
33 */
fbe6fa6f 34 FieldsScope(ILexicalScope parent, String name) {
70f60307
MK
35 super(parent, name);
36 }
37
38 @Override
39 @Nullable
fbe6fa6f 40 public ILexicalScope getChild(String name) {
70f60307
MK
41 if (name.equals(FIELDS_RET.getName())) {
42 return FIELDS_RET;
43 }
44 if (name.equals(FIELDS_TID.getName())) {
45 return FIELDS_TID;
46 }
47 return super.getChild(name);
48 }
49
50}
This page took 0.049388 seconds and 5 git commands to generate.