public class GrammarBasedParser extends Object implements RecipeParser
GrammarBasedParser is an implementation of RecipeParser.
It's responsible for compiling the recipe and checking all the directives exist before concluding
that the directives are ready for execution.| Constructor and Description |
|---|
GrammarBasedParser(String namespace,
String[] directives,
DirectiveRegistry registry) |
GrammarBasedParser(String namespace,
String recipe,
DirectiveRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(DirectiveContext context)
Initialises the directive with a
DirectiveContext. |
List<Directive> |
parse()
Generates a configured set of
Executor to be executed. |
public GrammarBasedParser(String namespace, String[] directives, DirectiveRegistry registry)
public GrammarBasedParser(String namespace, String recipe, DirectiveRegistry registry)
public List<Directive> parse() throws DirectiveLoadException, DirectiveNotFoundException, DirectiveParseException
Executor to be executed.parse in interface RecipeParserExecutor.DirectiveLoadExceptionDirectiveNotFoundExceptionDirectiveParseExceptionpublic void initialize(DirectiveContext context)
DirectiveContext.initialize in interface RecipeParsercontext - Copyright © 2021 CDAP Licensed under the Apache License, Version 2.0.