Commit | Line | Data |
---|---|---|
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 | 13 | package org.eclipse.tracecompass.ctf.core.event.scope; |
70f60307 MK |
14 | |
15 | import org.eclipse.jdt.annotation.NonNullByDefault; | |
16 | ||
17 | /** | |
18 | * A lttng specific speedup node (the packet header with magic, uuid and stream | |
19 | * id ) of a lexical scope the sole reason to have this is to accelerate tostring() | |
20 | * | |
21 | * @author Matthew Khouzam | |
70f60307 MK |
22 | */ |
23 | @NonNullByDefault | |
24 | public class PacketHeaderScope extends LexicalScope { | |
25 | ||
26 | /** | |
27 | * Constructor | |
28 | */ | |
29 | public PacketHeaderScope() { | |
30 | super(PACKET, "header"); //$NON-NLS-1$ | |
31 | } | |
32 | ||
33 | @Override | |
34 | public String toString() { | |
35 | return "packet.header"; //$NON-NLS-1$ | |
36 | } | |
37 | ||
38 | } |