Package manifold.preprocessor.api
Interface SymbolProvider
-
public interface SymbolProviderImplement this service provider interface to augment the preprocessor's symbol set with custom symbols. See library, manifold-preprocessor-android-syms, for an example.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetValue(Definitions rootDefinitions, manifold.api.fs.IFile sourceFile, String def)Returns the string representation of the value ofdefif it exists in this provider.booleanisDefined(Definitions rootDefinitions, manifold.api.fs.IFile sourceFile, String def)Returns true if the symbol exists in this provider.
-
-
-
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 DefinitionssourceFile- 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 ofdefif 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
defor null if it does not exist in thie provider.
-
-