Interface IASTPreprocessorMacroDefinition
- All Superinterfaces:
IASTNameOwner, IASTNode, IASTPreprocessorStatement
- All Known Subinterfaces:
IASTPreprocessorFunctionStyleMacroDefinition, IASTPreprocessorObjectStyleMacroDefinition
This represents the definition of a macro.
- Restriction:
- This interface is not intended to be implemented by clients.
- Restriction:
- This interface is not intended to be extended by clients.
-
Nested Class Summary
Nested classes/interfaces inherited from interface IASTNode
IASTNode.CopyStyle -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ASTNodePropertyMACRO_NAMEdescribes the relationship between a macro definition and it's name.Fields inherited from interface IASTNameOwner
r_declaration, r_definition, r_reference, r_unclearFields inherited from interface IASTNode
EMPTY_NODE_ARRAY -
Method Summary
Methods inherited from interface IASTNameOwner
getRoleForNameMethods inherited from interface IASTNode
accept, contains, copy, copy, getChildren, getContainingFilename, getFileLocation, getLeadingSyntax, getNodeLocations, getOriginalNode, getParent, getPropertyInParent, getRawSignature, getSyntax, getTrailingSyntax, getTranslationUnit, isFrozen, isPartOfTranslationUnitFile, setParent, setPropertyInParent
-
Field Details
-
MACRO_NAME
MACRO_NAMEdescribes the relationship between a macro definition and it's name.
-
-
Method Details
-
getName
IASTName getName()Get the macro name. -
getExpansion
String getExpansion()Returns the macro expansion, or an empty string for dynamic style macros. -
getExpansionLocation
IASTFileLocation getExpansionLocation()Returns the location of the macro expansion, ornullif not supported. For built-in macros the location will always be null.- Since:
- 5.0
-
isActive
-