Class RegexMatcher.ChatStandard
java.lang.Object
com.samsthenerd.inline.api.matching.RegexMatcher.Standard
com.samsthenerd.inline.api.matching.RegexMatcher.ChatStandard
- All Implemented Interfaces:
ContinuousMatcher
,InlineMatcher
,RegexMatcher
- Enclosing interface:
- RegexMatcher
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.samsthenerd.inline.api.matching.ContinuousMatcher
ContinuousMatcher.ContinuousMatchResult
Nested classes/interfaces inherited from interface com.samsthenerd.inline.api.matching.RegexMatcher
RegexMatcher.ChatStandard, RegexMatcher.Simple, RegexMatcher.Standard
-
Field Summary
Fields inherited from class com.samsthenerd.inline.api.matching.RegexMatcher.Standard
IDENTIFIER_REGEX, IDENTIFIER_REGEX_INSENSITIVE, SEPARATOR_STYLES, SEPARATORS_REGEX
-
Constructor Summary
ConstructorsConstructorDescriptionChatStandard
(String namespace, String innerRegex, net.minecraft.util.Identifier id, BiFunction<String, MatchContext.ChatMatchContext, InlineMatch> matcher, MatcherInfo info) -
Method Summary
Modifier and TypeMethodDescriptiongetMatch
(MatchResult regexMatch, MatchContext matchContext) Parses an InlineMatch out of the regexMatch.Methods inherited from class com.samsthenerd.inline.api.matching.RegexMatcher.Standard
getId, getInfo, getMatchAndGroup, getRegex
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.samsthenerd.inline.api.matching.ContinuousMatcher
match
Methods inherited from interface com.samsthenerd.inline.api.matching.RegexMatcher
match
-
Constructor Details
-
ChatStandard
public ChatStandard(String namespace, String innerRegex, net.minecraft.util.Identifier id, BiFunction<String, MatchContext.ChatMatchContext, InlineMatch> matcher, MatcherInfo info)
-
-
Method Details
-
getMatch
Description copied from interface:RegexMatcher
Parses an InlineMatch out of the regexMatch.- Specified by:
getMatch
in interfaceRegexMatcher
- Overrides:
getMatch
in classRegexMatcher.Standard
- Parameters:
regexMatch
- a single match from the provided regex.matchContext
- a match context provided in-case it's needed. It generally won't be.- Returns:
- InlineMatch that gets attached to the entire regex match or null for no match
-