tracesrv/tracecompiler/src/com.nokia.tracecompiler/src/com/nokia/tracecompiler/engine/rules/ExitTraceRule.java
changeset 56 aa2539c91954
equal deleted inserted replaced
54:a151135b0cf9 56:aa2539c91954
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 * Rule for exit traces
       
    17 *
       
    18 */
       
    19 package com.nokia.tracecompiler.engine.rules;
       
    20 
       
    21 import com.nokia.tracecompiler.engine.utils.TraceUtils;
       
    22 import com.nokia.tracecompiler.source.SourceContext;
       
    23 
       
    24 /**
       
    25  * Rule for exit traces
       
    26  * 
       
    27  */
       
    28 public class ExitTraceRule extends AutomaticTraceTextRule {
       
    29 
       
    30 	/*
       
    31 	 * (non-Javadoc)
       
    32 	 * 
       
    33 	 * @see com.nokia.tracecompiler.engine.rules.AutomaticTraceTextRule#
       
    34 	 *      formatTrace(com.nokia.tracecompiler.source.SourceContext)
       
    35 	 */
       
    36 	@Override
       
    37 	public String formatTrace(SourceContext context) {
       
    38 		return TraceUtils.formatTrace(RuleUtils.TEXT_FORMAT_BASE, context
       
    39 				.getClassName(), context.getFunctionName());
       
    40 	}
       
    41 
       
    42 }