Elide GraalVM25.6.0-elide.4
All types
Versions and modules

CContext.Directives

Javainterfacein org.graalvm.nativeimage.csince 19.0

public interface CContext.Directives
Enclosing type
CContext

Describes a C context.

Methods6

boolean isInConfiguration()

isInConfiguration

defaultsince 19.0
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.

Returns

boolean
No description.
List<String> getHeaderFiles()

getHeaderFiles

defaultsince 19.0
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.

Returns

List<String>
No description.
List<String> getMacroDefinitions()

getMacroDefinitions

defaultsince 19.0
default List<String> getMacroDefinitions()

Unparameterized macro-definitions. Each entry is in the form of <macro-name> or <macro-name> <macro-value>.

Returns

List<String>
No description.
List<String> getOptions()

getOptions

defaultsince 19.0
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.

Returns

List<String>
No description.
List<String> getLibraries()

getLibraries

defaultsince 19.0
default List<String> getLibraries()

Returns a collection of libraries. They are treated the same way as libraries added via the CLibrary annotation.

Returns

List<String>
No description.
List<String> getLibraryPaths()

getLibraryPaths

defaultsince 19.0
default List<String> getLibraryPaths()

Returns a list of library paths.

Returns

List<String>
No description.