Interface IASTPreprocessorMacroDefinition

All Superinterfaces:
IASTNameOwner, IASTNode, IASTPreprocessorStatement
All Known Subinterfaces:
IASTPreprocessorFunctionStyleMacroDefinition, IASTPreprocessorObjectStyleMacroDefinition

public interface IASTPreprocessorMacroDefinition extends IASTPreprocessorStatement, IASTNameOwner
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.
  • Field Details

    • MACRO_NAME

      static final ASTNodeProperty MACRO_NAME
      MACRO_NAME describes 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, or null if not supported. For built-in macros the location will always be null.
      Since:
      5.0
    • isActive

      boolean isActive()
      Returns whether this macro definition occurs in active code.
      Specified by:
      isActive in interface IASTNode
      Since:
      5.1