Eclipse CDT
Pre-release 3.0

org.eclipse.cdt.core.dom.ast
Interface IASTPreprocessorFunctionStyleMacroDefinition

All Superinterfaces:
IASTNameOwner, IASTNode, IASTPreprocessorMacroDefinition, IASTPreprocessorStatement

public interface IASTPreprocessorFunctionStyleMacroDefinition
extends IASTPreprocessorMacroDefinition

This interface represent a preprocessor function-style macro definition. e.g. #define ABC( def ) GHI Note: macros that are expanded as parameters to function style macros are not captured in this abstraction.


Field Summary
static ASTNodeProperty PARAMETER
          This property represents the relationship between a function style macro definition and one of its parameters.
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTPreprocessorMacroDefinition
MACRO_NAME
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
EMPTY_NODE_ARRAY
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNameOwner
r_declaration, r_definition, r_reference, r_unclear
 
Method Summary
 void addParameter(IASTFunctionStyleMacroParameter parm)
          Add a function-style macro parameter.
 IASTFunctionStyleMacroParameter[] getParameters()
          Get the macro parameters.
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTPreprocessorMacroDefinition
getExpansion, getName, setExpansion, setName
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
accept, getContainingFilename, getFileLocation, getNodeLocations, getParent, getPropertyInParent, getRawSignature, getTranslationUnit, setParent, setPropertyInParent
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNameOwner
getRoleForName
 

Field Detail

PARAMETER

static final ASTNodeProperty PARAMETER
This property represents the relationship between a function style macro definition and one of its parameters.

Method Detail

getParameters

IASTFunctionStyleMacroParameter[] getParameters()
Get the macro parameters.

Returns:
IASTFunctionStyleMacroParameter[] parameters

addParameter

void addParameter(IASTFunctionStyleMacroParameter parm)
Add a function-style macro parameter.

Parameters:
parm - IASTFunctionStyleMacroParameter

Eclipse CDT
Pre-release 3.0

Copyright (c) IBM Corp. and others 2004. All Rights Reserved.