public class MessageMatcherParser
extends de.sayayi.lib.antlr4.AbstractAntlr4Parser
| Modifier and Type | Class and Description |
|---|---|
static class |
MessageMatcherParser.Service |
| Modifier and Type | Field and Description |
|---|---|
protected ClassLoader |
classLoader |
static MessageMatcherParser |
INSTANCE |
protected java.util.function.Function<String,de.sayayi.lib.protocol.Level> |
levelResolver |
| Constructor and Description |
|---|
MessageMatcherParser(ClassLoader classLoader,
java.util.function.Function<String,de.sayayi.lib.protocol.Level> levelResolver) |
| Modifier and Type | Method and Description |
|---|---|
protected @NotNull RuntimeException |
createException(@NotNull org.antlr.v4.runtime.Token startToken,
@NotNull org.antlr.v4.runtime.Token stopToken,
@NotNull String formattedMessage,
@NotNull String errorMsg,
org.antlr.v4.runtime.RecognitionException ex) |
@NotNull de.sayayi.lib.protocol.matcher.MessageMatcher |
parseMessageMatcher(@NotNull String messageMatcherText) |
@NotNull de.sayayi.lib.protocol.TagSelector |
parseTagSelector(@NotNull String tagSelectorText) |
public static final MessageMatcherParser INSTANCE
protected final ClassLoader classLoader
protected final java.util.function.Function<String,de.sayayi.lib.protocol.Level> levelResolver
public MessageMatcherParser(ClassLoader classLoader,
java.util.function.Function<String,de.sayayi.lib.protocol.Level> levelResolver)
@Contract(pure=true) @NotNull public @NotNull de.sayayi.lib.protocol.matcher.MessageMatcher parseMessageMatcher(@NotNull @NotNull String messageMatcherText)
@Contract(pure=true) @NotNull public @NotNull de.sayayi.lib.protocol.TagSelector parseTagSelector(@NotNull @NotNull String tagSelectorText)
@NotNull protected @NotNull RuntimeException createException(@NotNull @NotNull org.antlr.v4.runtime.Token startToken, @NotNull @NotNull org.antlr.v4.runtime.Token stopToken, @NotNull @NotNull String formattedMessage, @NotNull @NotNull String errorMsg, org.antlr.v4.runtime.RecognitionException ex)
createException in class de.sayayi.lib.antlr4.AbstractAntlr4Parser