1 /*******************************************************************************
2 * Copyright (c) 2013, 2014 Ericsson
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
10 * Bernd Hufmann - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.tmf
.core
.event
.lookup
;
15 import org
.eclipse
.jdt
.annotation
.NonNull
;
16 import org
.eclipse
.jdt
.annotation
.Nullable
;
19 * The generic call site structure in TMF. A call site has:
22 * <li> a function name (optional)
26 * @author Bernd Hufmann
30 public interface ITmfCallsite
{
33 * Returns the file name of the call site.
35 * @return the file name
37 @NonNull String
getFileName();
40 * Returns the function name of the call site.
42 * @return the function name or null
43 * @deprecated Should not be part of this interface anymore.
46 @Nullable String
getFunctionName();
49 * Returns the line number of the call site.
51 * @return the line number
52 * @deprecated Use {@link #getLineNo()} instead, which can return null.
58 * Returns the line number of the call site.
60 * @return The line number, or 'null' if unavailable
63 default @Nullable Long
getLineNo() {
64 /* TODO Change to abstract method once getLineNumber() is removed */
65 return getLineNumber();
This page took 0.04523 seconds and 5 git commands to generate.