Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 95ef5ff6a9c357eae8a0b6e793e7f8df6e77ee71 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*******************************************************************************
 * Copyright (c) 2013 Ericsson
 *
 * All rights reserved. This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License v1.0 which
 * accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   Bernd Hufmann - Initial API and implementation
 *******************************************************************************/

package org.eclipse.linuxtools.tmf.core.event.lookup;


/**
 * The generic call site structure in TMF. A call site has:
 * <ul>
 * <li> a file name
 * <li> a function name (optional)
 * <li> a line number
 * </ul>
 *
 * @author Bernd Hufmann
 * @since 2.0
 *
 * @see TmfCallsite
 */
public interface ITmfCallsite {
    /**
     * Returns the file name of the call site.
     * @return the file name
     */
    public String getFileName();

    /**
     * Returns the function name of the call site.
     * @return the function name or null
     */
    public String getFunctionName();

    /**
     * Returns the line number of the call site.
     * @return the line number
     */
    public long getLineNumber();
}

Back to the top