tracesrv/tracecompiler/src/com.nokia.tracecompiler/src/com/nokia/tracecompiler/source/TokenizerSearchData.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 * Contains search variables during SourceParameterTokenizer.tokenizeParameters call
       
    17 *
       
    18 */
       
    19 package com.nokia.tracecompiler.source;
       
    20 
       
    21 /**
       
    22  * Contains search variables during SourceParameterTokenizer.tokenizeParameters
       
    23  * call
       
    24  * 
       
    25  */
       
    26 final class TokenizerSearchData {
       
    27 
       
    28 	/**
       
    29 	 * Iterator over source characters
       
    30 	 */
       
    31 	SourceIterator itr;
       
    32 
       
    33 	/**
       
    34 	 * Current character
       
    35 	 */
       
    36 	char value;
       
    37 
       
    38 	/**
       
    39 	 * Previous character
       
    40 	 */
       
    41 	char previousValue = ' ';
       
    42 
       
    43 	/**
       
    44 	 * Number of '(' encountered without matching ')' character
       
    45 	 */
       
    46 	int openBracketCount;
       
    47 
       
    48 	/**
       
    49 	 * Index for start of parameter
       
    50 	 */
       
    51 	int tagStartIndex;
       
    52 
       
    53 	/**
       
    54 	 * Index for start of parameter
       
    55 	 */
       
    56 	int paramStartIndex;
       
    57 
       
    58 	/**
       
    59 	 * Initial count of '(' characters at beginning of parameter
       
    60 	 */
       
    61 	int initialBracketCount;
       
    62 
       
    63 	/**
       
    64 	 * Closing ')' character has been found.
       
    65 	 */
       
    66 	boolean complete;
       
    67 
       
    68 	/**
       
    69 	 * Ending ';' or '{' character has been found
       
    70 	 */
       
    71 	boolean endFound;
       
    72 
       
    73 	/**
       
    74 	 * Within quotes flag
       
    75 	 */
       
    76 	boolean inQuotes;
       
    77 
       
    78 	/**
       
    79 	 * Parameter definition object
       
    80 	 */
       
    81 	SourceParameter sourceParameter;
       
    82 
       
    83 	/**
       
    84 	 * Data flag
       
    85 	 */
       
    86 	boolean hasData;
       
    87 }