tracefw/tracecompiler/src/com.nokia.tracecompiler/src/com/nokia/tracecompiler/source/SourceExcludedArea.java
changeset 56 aa2539c91954
parent 54 a151135b0cf9
child 60 e54443a6878c
child 62 1c2bb2fc7c87
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 * Comment or string ares are added to the excluded list
       
    17 *
       
    18 */
       
    19 package com.nokia.tracecompiler.source;
       
    20 
       
    21 /**
       
    22  * Comment or string ares are added to the excluded list
       
    23  * 
       
    24  */
       
    25 public class SourceExcludedArea extends SourceLocationBase {
       
    26 
       
    27 	/**
       
    28 	 * Line comment type
       
    29 	 */
       
    30 	public static final int LINE_COMMENT = 1; // CodForChk_Dis_Magic
       
    31 
       
    32 	/**
       
    33 	 * Multiline comment type
       
    34 	 */
       
    35 	public static final int MULTILINE_COMMENT = 2; // CodForChk_Dis_Magic
       
    36 
       
    37 	/**
       
    38 	 * String type
       
    39 	 */
       
    40 	public static final int STRING = 3; // CodForChk_Dis_Magic
       
    41 
       
    42 	/**
       
    43 	 * Character type
       
    44 	 */
       
    45 	public static final int CHARACTER = 4; // CodForChk_Dis_Magic
       
    46 
       
    47 	/**
       
    48 	 * Preprocessor definition area
       
    49 	 */
       
    50 	public static final int PREPROCESSOR_DEFINITION = 5; // CodForChk_Dis_Magic
       
    51 
       
    52 	/**
       
    53 	 * Type of area
       
    54 	 */
       
    55 	private int type;
       
    56 
       
    57 	/**
       
    58 	 * Constructor
       
    59 	 * 
       
    60 	 * @param parser
       
    61 	 *            the parser where this area belongs
       
    62 	 * @param offset
       
    63 	 *            offset to the area
       
    64 	 * @param type
       
    65 	 *            type of area
       
    66 	 */
       
    67 	SourceExcludedArea(SourceParser parser, int offset, int type) {
       
    68 		super(parser, offset);
       
    69 		this.type = type;
       
    70 	}
       
    71 
       
    72 	/**
       
    73 	 * Gets the type of this area
       
    74 	 * 
       
    75 	 * @return the type
       
    76 	 */
       
    77 	public int getType() {
       
    78 		return type;
       
    79 	}
       
    80 
       
    81 }