~ubuntu-branches/debian/sid/eclipse-cdt/sid

« back to all changes in this revision

Viewing changes to results/plugins/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/IASTMacroExpansionLocation.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2011-10-06 21:15:04 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20111006211504-8dutmljjih0zikfv
Tags: 8.0.1-1
* New upstream release.
* Split the JNI packages into a separate architecture dependent
  package and made eclipse-cdt architecture independent.
* Install JNI libraries into multiarch aware location
* Bumped Standards-Version to 3.9.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*******************************************************************************
2
 
 * Copyright (c) 2008, 2009 Wind River Systems, Inc. and others.
3
 
 * All rights reserved. This program and the accompanying materials
4
 
 * are made available under the terms of the Eclipse Public License v1.0
5
 
 * which accompanies this distribution, and is available at
6
 
 * http://www.eclipse.org/legal/epl-v10.html
7
 
 *
8
 
 * Contributors:
9
 
 *    Markus Schorn - initial API and implementation
10
 
 *******************************************************************************/ 
11
 
package org.eclipse.cdt.core.dom.ast;
12
 
 
13
 
/**
14
 
 * Node location inside of a macro expansion.
15
 
 * @since 5.0
16
 
 * 
17
 
 * @noextend This interface is not intended to be extended by clients.
18
 
 * @noimplement This interface is not intended to be implemented by clients.
19
 
 */
20
 
public interface IASTMacroExpansionLocation extends IASTNodeLocation {
21
 
 
22
 
        /**
23
 
         * Returns the expansion node enclosing this location. This will be the outermost
24
 
         * macro expansion that can actually be found in the code.
25
 
         */
26
 
        public IASTPreprocessorMacroExpansion getExpansion();
27
 
 
28
 
        /**
29
 
         * Returns an offset within the macro-expansion. The offset can be used to compare
30
 
         * nodes within the same macro-expansion. However, it does not serve as an offset
31
 
         * into a file.
32
 
         */
33
 
        public int getNodeOffset();
34
 
 
35
 
        /**
36
 
         * Returns the length of this location. The length can be used to compare this location
37
 
         * with others from within the same macro-expansion. However, the length does not neccessarily
38
 
         * relate to a length in terms of characters.
39
 
         */
40
 
        public int getNodeLength();
41
 
}