Commit | Line | Data |
---|---|---|
ce38c104 | 1 | package org.eclipse.linuxtools.internal.lttng.jni_v2_5; |
3b7509b0 WB |
2 | /******************************************************************************* |
3 | * Copyright (c) 2009 Ericsson | |
4 | * | |
5 | * All rights reserved. This program and the accompanying materials are | |
6 | * made available under the terms of the Eclipse Public License v1.0 which | |
7 | * accompanies this distribution, and is available at | |
8 | * http://www.eclipse.org/legal/epl-v10.html | |
9 | * | |
10 | * Contributors: | |
11 | * William Bourque (wbourque@gmail.com) - Initial API and implementation | |
12 | *******************************************************************************/ | |
0152140d | 13 | |
ce38c104 FC |
14 | import org.eclipse.linuxtools.internal.lttng.jni.common.Jni_C_Pointer_And_Library_Id; |
15 | import org.eclipse.linuxtools.internal.lttng.jni.exception.JniException; | |
0152140d ASL |
16 | import org.eclipse.linuxtools.lttng.jni.JniMarker; |
17 | import org.eclipse.linuxtools.lttng.jni.JniMarkerField; | |
0152140d | 18 | |
3b7509b0 WB |
19 | /** |
20 | * <b><u>JniMarker_v2_5</u></b> | |
21 | * <p> | |
22 | * JniMarker version to support Lttng traceformat of version 2.5<br> | |
23 | * This class extend abstract class JniMarker with (possibly) version specific implementation.<br> | |
24 | * <p> | |
25 | */ | |
0152140d ASL |
26 | public class JniMarker_v2_5 extends JniMarker { |
27 | ||
3b7509b0 WB |
28 | /* |
29 | * Forbid access to the default constructor | |
30 | */ | |
0152140d ASL |
31 | protected JniMarker_v2_5() { |
32 | super(); | |
33 | } | |
34 | ||
3b7509b0 | 35 | |
0152140d ASL |
36 | public JniMarker_v2_5(JniMarker_v2_5 oldMarker) { |
37 | super(oldMarker); | |
38 | } | |
39 | ||
c85e8cb2 | 40 | public JniMarker_v2_5(Jni_C_Pointer_And_Library_Id newMarkerPtr) throws JniException { |
0152140d ASL |
41 | super(newMarkerPtr); |
42 | } | |
43 | ||
44 | ||
3b7509b0 WB |
45 | /** |
46 | * Allocate (call constructor for) a new JniMarkerField.<p> | |
47 | * | |
48 | * This method is made to bypass limitation related to abstract class, see comment in JniMarker | |
49 | * | |
50 | * @return JniMarkerField a newly allocated JniMarkerField | |
51 | * | |
52 | * @see org.eclipse.linuxtools.lttng.jni.JniMarker | |
53 | */ | |
b9fb2d51 | 54 | @Override |
c85e8cb2 | 55 | public JniMarkerField allocateNewJniMarkerField(Jni_C_Pointer_And_Library_Id newMarkerFieldPtr) throws JniException { |
0152140d ASL |
56 | return new JniMarkerField_v2_5(newMarkerFieldPtr); |
57 | } | |
58 | ||
59 | } |