Class PipelineRuleParser
java.lang.Object
org.graylog.plugins.pipelineprocessor.parser.PipelineRuleParser
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparsePipeline
(String id, String source) parsePipelines
(String pipelines) Parses the given rule source and optionally generates a Java class for it if the classloader is not null.static String
static String
-
Field Details
-
WALKER
public static final org.antlr.v4.runtime.tree.ParseTreeWalker WALKER
-
-
Constructor Details
-
PipelineRuleParser
-
-
Method Details
-
parseRule
- Throws:
ParseException
-
parseRule
Parses the given rule source and optionally generates a Java class for it if the classloader is not null.- Parameters:
id
- the id of the rule, necessary to generate coderule
- rule source codesilent
- don't emit status messages during parsing- Returns:
- the parse rule
- Throws:
ParseException
- if a one or more parse errors occur
-
parsePipelines
- Throws:
ParseException
-
parsePipeline
-
unquote
-
unescape
-