22a25bc2d6982531c12c1879f9134fa734d6bf0d
1 /*******************************************************************************
2 * Copyright (c) 2016 EfficiOS Inc., Alexandre Montplaisir
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *******************************************************************************/
10 package org
.eclipse
.tracecompass
.lttng2
.ust
.core
.analysis
.debuginfo
;
12 import org
.eclipse
.jdt
.annotation
.Nullable
;
13 import org
.eclipse
.tracecompass
.tmf
.core
.event
.lookup
.TmfCallsite
;
16 * Extension of {@link TmfCallsite} specifically for the debug-info analysis,
17 * which will not print the function name in the event table. This name will be
18 * available by a separate aspect.
20 * @author Alexandre Montplaisir
23 public class SourceCallsite
extends TmfCallsite
{
35 public SourceCallsite(String fileName
, @Nullable String functionName
, long lineNumber
) {
36 super(fileName
, functionName
, lineNumber
);
40 public String
toString() {
41 StringBuilder builder
= new StringBuilder();
42 builder
.append(getFileName()).append(':');
43 builder
.append(Long
.toString(getLineNumber()));
44 return builder
.toString();
This page took 0.031231 seconds and 4 git commands to generate.