Interface SymbolFilter


  • public interface SymbolFilter
    Provides a mechanism by which the GlueEmitter can look at all of the #defines, enum values and function symbols and perform certain filtering and processing which requires all of them to be visible simultaneously.
    • Method Detail

      • filterSymbols

        void filterSymbols​(List<ConstantDefinition> constants,
                           List<FunctionSymbol> functions)
        Filters the given constant and function symbols. The caller will query the SymbolFilter for its resulting constant and function symbol lists after this routine returns.
        Parameters:
        defines - a list of Define objects
        functions - a list of FunctionSymbol objects
      • getConstants

        List<ConstantDefinition> getConstants()
        Returns the filtered list of constants. This method may return a new list, the original list, or null, in which case the original list will be used.
      • getFunctions

        List<FunctionSymbol> getFunctions()
        Returns the filtered list of function symbols. This method may return a new list, the original list, or null, in which case the original list will be used.