tracesrv/tracecompiler/src/com.nokia.tracecompiler/src/com/nokia/tracecompiler/source/TypeMapping.java
changeset 56 aa2539c91954
parent 41 838cdffd57ce
equal deleted inserted replaced
54:a151135b0cf9 56:aa2539c91954
       
     1 /*
       
     2 * Copyright (c) 2007 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 * Source to parameter type mapping
       
    17 *
       
    18 */
       
    19 package com.nokia.tracecompiler.source;
       
    20 
       
    21 /**
       
    22  * Type returned by
       
    23  * {@link SourceUtils#mapSymbianTypeToParameterType(ParsedType)}
       
    24  * 
       
    25  */
       
    26 public final class TypeMapping {
       
    27 
       
    28 	/**
       
    29 	 * Parameter type
       
    30 	 */
       
    31 	public String type;
       
    32 
       
    33 	/**
       
    34 	 * Explicit casting needs to be used when calling trace function
       
    35 	 */
       
    36 	public boolean needsCasting;
       
    37 
       
    38 	/**
       
    39 	 * Value is changed to pointer before passing to trace function
       
    40 	 */
       
    41 	public boolean valueToPointer;
       
    42 
       
    43 	/**
       
    44 	 * Contructor
       
    45 	 * 
       
    46 	 * @param type
       
    47 	 *            the parameter type
       
    48 	 */
       
    49 	public TypeMapping(String type) {
       
    50 		this.type = type;
       
    51 	}
       
    52 
       
    53 	/**
       
    54 	 * Checks if type is void
       
    55 	 * 
       
    56 	 * @return true if type is void
       
    57 	 */
       
    58 	public boolean isVoid() {
       
    59 		return type == null;
       
    60 	}
       
    61 
       
    62 }