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 | ||
13 | package org.eclipse.linuxtools.ctf.core.event.scope; | |
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 | |
22 | * @since 3.1 | |
23 | */ | |
24 | @NonNullByDefault | |
25 | public class PacketHeaderScope extends LexicalScope { | |
26 | ||
27 | /** | |
28 | * Constructor | |
29 | */ | |
30 | public PacketHeaderScope() { | |
31 | super(PACKET, "header"); //$NON-NLS-1$ | |
32 | } | |
33 | ||
34 | @Override | |
35 | public String toString() { | |
36 | return "packet.header"; //$NON-NLS-1$ | |
37 | } | |
38 | ||
39 | } |