Package org.revapi

Interface ElementMatcher

    • Method Detail

      • getMatcherId

        String getMatcherId()
        This is distinct from the Configurable.getExtensionId(), because it identifies the matcher in the "use" positions somewhere inside the configuration of other extensions. The extensionId can be used for identifying the element matcher itself in the analysis configuration or pipeline configuration.
        Returns:
      • compile

        Optional<ElementMatcher.CompiledRecipe> compile​(String recipe)
        Tries to compile the provided recipe into a form that can test individual elements.
        Parameters:
        recipe - the recipe to compile
        Returns:
        a compiled recipe or empty optional if the string cannot be compiled by this matcher