Class PlaceholderMatcher
java.lang.Object
com.winterhavenmc.library.messagebuilder.pipeline.matcher.PlaceholderMatcher
- All Implemented Interfaces:
Matcher
Default implementation of the
Matcher
interface that uses Java’s built-in
Pattern
and MatchResult
APIs to extract
macro keys from an input string.
This class transforms matching groups into MacroKey
instances using MacroKey.of(...)
, and silently skips any invalid results.
It is designed for use in both the resolution and replacement stages of the pipeline, depending on whether base keys or full macro keys are being matched.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PlaceholderMatcher
public PlaceholderMatcher()
-
-
Method Details