Class PrefixedPatternDefinitionResolver<T>

    • Constructor Detail

      • PrefixedPatternDefinitionResolver

        public PrefixedPatternDefinitionResolver()
        Constructor.
        Since:
        2.2.0
    • Method Detail

      • registerDefinitionPatternMatcherFactory

        public void registerDefinitionPatternMatcherFactory​(java.lang.String language,
                                                            DefinitionPatternMatcherFactory factory)
        Registers a DefinitionPatternMatcherFactory connected to a particular language.
        Parameters:
        language - The name of the language.
        factory - The pattern matcher factory to register.
        Since:
        2.2.0
      • addDefinitionsAsPatternMatchers

        protected java.util.Map<java.lang.String,​Definition> addDefinitionsAsPatternMatchers​(java.util.List<DefinitionPatternMatcher> matchers,
                                                                                                   java.util.Map<java.lang.String,​Definition> defsMap)
        Adds definitions, filtering and adding them to the list of definition pattern matchers. Only a subset of definitions will be transformed into definition pattern matchers.
        Specified by:
        addDefinitionsAsPatternMatchers in class AbstractPatternDefinitionResolver<T>
        Parameters:
        matchers - The list containing the currently stored definition pattern matchers.
        defsMap - The definition map to parse.
        Returns:
        The map of the definitions not recognized as containing definition patterns.