diff -r 14dc2103a631 -r ed1c9f64298a trace/tracebuilder/com.nokia.tracebuilder/src/com/nokia/tracebuilder/source/SourcePreprocessorDefinition.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/trace/tracebuilder/com.nokia.tracebuilder/src/com/nokia/tracebuilder/source/SourcePreprocessorDefinition.java Wed Jun 23 14:35:40 2010 +0300 @@ -0,0 +1,87 @@ +/* +* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +* Preprocessor definitions found from source +* +*/ +package com.nokia.tracebuilder.source; + +/** + * Preprocessor definitions found from source + * + */ +public class SourcePreprocessorDefinition extends SourceLocationBase { + + /** + * Definition name + */ + private String name; + + /** + * Definition value + */ + private String value; + + /** + * Constructor + * + * @param parser + * the document parser + * @param offset + * the offset to the location within source + */ + SourcePreprocessorDefinition(SourceParser parser, int offset) { + super(parser, offset); + } + + /** + * Sets the definition name + * + * @param name + * the name + */ + void setName(String name) { + this.name = name; + } + + /** + * Sets the definition value + * + * @param value + * the value + */ + void setValue(String value) { + this.value = value; + } + + /** + * Returns the name of the definition + * + * @return the name + */ + public String getName() { + return name; + } + + /** + * Returns the value of the definition + * + * @return the value + */ + public String getValue() { + return value; + } + +}