Interface CContext.Directives

Enclosing class:
CContext

public static interface CContext.Directives
Describes a C context.
Since:
19.0
  • Method Details

    • isInConfiguration

      default boolean isInConfiguration()
      This method is called immediately after the constructor, to check whether the context is part of the configuration or not. If this method returns false, all elements registered inside this context are ignored.
      Since:
      19.0
    • getHeaderFiles

      default List<String> getHeaderFiles()
      All header files used in this context. C allows two kinds of imports: header files can be surrounded with <...>, or "...". One of them must be used for every element in the returned list.
      Since:
      19.0
    • getMacroDefinitions

      default List<String> getMacroDefinitions()
      Unparameterized macro-definitions. Each entry is in the form of <macro-name> or <macro-name> <macro-value>.
      Since:
      19.0
    • getOptions

      default List<String> getOptions()
      Returns options to be passed to the C compiler when processing the directives. For example, the option "-Ipath" can be used to add a path for the lookup of header files.
      Since:
      19.0
    • getLibraries

      default List<String> getLibraries()
      Returns a collection of libraries. They are treated the same way as libraries added via the CLibrary annotation.
      Since:
      19.0
    • getLibraryPaths

      default List<String> getLibraryPaths()
      Returns a list of library paths.
      Since:
      19.0