~ubuntu-branches/ubuntu/trusty/eclipse-linuxtools/trusty

« back to all changes in this revision

Viewing changes to lttng/org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/internal/lttng/jni_v2_5/JniMarker_v2_5.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2012-06-29 12:07:30 UTC
  • Revision ID: package-import@ubuntu.com-20120629120730-bfri1xys1i71dpn6
Tags: upstream-1.0.0
ImportĀ upstreamĀ versionĀ 1.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.eclipse.linuxtools.internal.lttng.jni_v2_5;
 
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
 *******************************************************************************/
 
13
 
 
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;
 
16
import org.eclipse.linuxtools.lttng.jni.JniMarker;
 
17
import org.eclipse.linuxtools.lttng.jni.JniMarkerField;
 
18
 
 
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
 */
 
26
public class JniMarker_v2_5 extends JniMarker {
 
27
        
 
28
        /*
 
29
         * Forbid access to the default constructor
 
30
         */
 
31
        protected JniMarker_v2_5() {
 
32
                super();
 
33
    }
 
34
    
 
35
        
 
36
    public JniMarker_v2_5(JniMarker_v2_5 oldMarker) {
 
37
        super(oldMarker);
 
38
    }
 
39
    
 
40
    public JniMarker_v2_5(Jni_C_Pointer_And_Library_Id newMarkerPtr) throws JniException {
 
41
        super(newMarkerPtr);
 
42
    }
 
43
        
 
44
    
 
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
     */
 
54
    @Override
 
55
        public JniMarkerField allocateNewJniMarkerField(Jni_C_Pointer_And_Library_Id newMarkerFieldPtr) throws JniException {
 
56
        return new JniMarkerField_v2_5(newMarkerFieldPtr);
 
57
    }
 
58
    
 
59
}