tracesrv/tracecompiler/src/com.nokia.tracecompiler/src/com/nokia/tracecompiler/source/ParsedType.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 * Interface for types parsed from source files
       
    17 *
       
    18 */
       
    19 package com.nokia.tracecompiler.source;
       
    20 
       
    21 /**
       
    22  * Interface for types parsed from source files
       
    23  * 
       
    24  */
       
    25 public interface ParsedType {
       
    26 
       
    27 	/**
       
    28 	 * Checks if parameter is pointer (*) or pointer reference (*&)
       
    29 	 * 
       
    30 	 * @return true if pointer, false if not
       
    31 	 */
       
    32 	public boolean isPointer();
       
    33 
       
    34 	/**
       
    35 	 * Checks if parameter type equals given type
       
    36 	 * 
       
    37 	 * @param type
       
    38 	 *            the type to be checked
       
    39 	 * @return true if types match
       
    40 	 */
       
    41 	public boolean typeEquals(String type);
       
    42 
       
    43 	/**
       
    44 	 * Checks if the type has the given qualifier
       
    45 	 * 
       
    46 	 * @param qualifier
       
    47 	 *            the qualifier to be checked
       
    48 	 * @return true if qualifier exists, false if not
       
    49 	 */
       
    50 	public boolean hasQualifier(String qualifier);
       
    51 
       
    52 }