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 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.ctf
.core
.event
.scope
;
15 import org
.eclipse
.jdt
.annotation
.NonNullByDefault
;
16 import org
.eclipse
.jdt
.annotation
.Nullable
;
19 * A lttng specific speedup node (v variant for event headers) of a lexical
20 * scope they normally contain a timestamp
22 * @author Matthew Khouzam
25 public final class EventHeaderVScope
extends LexicalScope
{
28 * The scope constructor
31 * The parent node, can be null, but shouldn't
33 * the name of the field
35 EventHeaderVScope(ILexicalScope parent
, String name
) {
41 public ILexicalScope
getChild(String name
) {
42 if (name
.equals(EVENT_HEADER_V_TIMESTAMP
.getName())) {
43 return EVENT_HEADER_V_TIMESTAMP
;
45 if (name
.equals(EVENT_HEADER_V_ID
.getName())) {
46 return EVENT_HEADER_V_ID
;
48 return super.getChild(name
);
This page took 0.033852 seconds and 6 git commands to generate.