Package com.winterhavenmc.library.messagebuilder.pipeline.matcher
package com.winterhavenmc.library.messagebuilder.pipeline.matcher
Provides utilities for identifying macro placeholders within message strings.
This package forms the parsing layer of the message pipeline, responsible for extracting
macro keys (e.g., %PLAYER_NAME%
, %ITEM.NAME_SINGULAR%
) from raw
message strings retrieved from the language YAML configuration.
Key Components
Matcher
– A functional interface for extractingMacroKey
instances using a regular expression.PlaceholderMatcher
– A default implementation using Java’s built-in regex API to transform matches into macro keys.
The extracted keys serve as input to the resolver pipeline, determining which context objects should be resolved and which placeholders should be replaced.
- See Also:
-
ClassDescriptionA functional interface representing a strategy for extracting
MacroKey
instances from an input string using a specified regular expression pattern.Default implementation of theMatcher
interface that uses Java’s built-inPattern
andMatchResult
APIs to extract macro keys from an input string.