Interface SymbolProvider


  • public interface SymbolProvider
    Implement this service provider interface to augment the preprocessor's symbol set with custom symbols. See library, manifold-preprocessor-android-syms, for an example.
    • Method Detail

      • isDefined

        boolean isDefined​(Definitions rootDefinitions,
                          manifold.api.fs.IFile sourceFile,
                          String def)
        Returns true if the symbol exists in this provider.
        Parameters:
        rootDefinitions - The Definitions
        sourceFile - The path to the source file in context.
        def - The name of the preprocessor definition.
        Returns:
        true iff the symbol exists in this provider.
      • getValue

        String getValue​(Definitions rootDefinitions,
                        manifold.api.fs.IFile sourceFile,
                        String def)
        Returns the string representation of the value of def if it exists in this provider.
        Parameters:
        rootDefinitions -
        sourceFile - The path to the source file in context.
        def - The name of the preprocessor definition.
        Returns:
        The string representation of the value of def or null if it does not exist in thie provider.