1
/*******************************************************************************
2
* Copyright (c) 2004, 2009 IBM Corporation 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
9
* IBM - Initial API and implementation
10
* Markus Schorn (Wind River Systems)
11
*******************************************************************************/
12
package org.eclipse.cdt.core.dom.ast;
15
* Models bindings for macro names.
17
* @noextend This interface is not intended to be extended by clients.
18
* @noimplement This interface is not intended to be implemented by clients.
20
public interface IMacroBinding extends IBinding {
23
* Returns <code>true</code> if this is a function-style macro.
26
boolean isFunctionStyle();
29
* Returns <code>true</code> if this is a dynamic macro.
35
* Returns the parameter names or <code>null</code> if this is not a function style macro.
37
char[][] getParameterList();
40
* Returns the expansion of this macro definition, or <code>null</code> if the definition is not
41
* available. For dynamic macros an exemplary image is returned.
44
char[] getExpansion();
47
* Returns the parameter list where the name of the last parameter is changed if this is a variadic macro,
48
* or <code>null</code> if this is not a function style macro.
49
* The parameter '...' will be changed to '__VA_ARGS__'
50
* Parameters like 'a...' will be changed to 'a'.
53
char[][] getParameterPlaceholderList();
56
* Returns the image of the expansion (also containing comments), or <code>null</code> if the definition
57
* is not available. For dynamic macros an exemplary image is returned.
60
char[] getExpansionImage();