Interface IASTDeclarationListOwner

All Superinterfaces:
IASTNode
All Known Subinterfaces:
IASTCompositeTypeSpecifier, IASTTranslationUnit, ICASTCompositeTypeSpecifier, ICPPASTCompositeTypeSpecifier, ICPPASTLinkageSpecification, ICPPASTNamespaceDefinition, ICPPASTTranslationUnit

public interface IASTDeclarationListOwner extends IASTNode
Common interface for parents of declaration lists.
Since:
5.1
Restriction:
This interface is not intended to be implemented by clients.
Restriction:
This interface is not intended to be extended by clients.
  • Method Details

    • addDeclaration

      void addDeclaration(IASTDeclaration declaration)
      Adds a declaration to the owner. May only be called as long as the ast is not frozen.
    • getDeclarations

      IASTDeclaration[] getDeclarations(boolean includeInactive)
      Returns the array of declarations.
      Parameters:
      includeInactive - whether to include declarations from inactive code branches.
      Since:
      5.1
      See Also: