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,
DirectiveContext context) |
GrammarBasedParser(String namespace,
String recipe,
DirectiveRegistry registry) |
GrammarBasedParser(String namespace,
String recipe,
DirectiveRegistry registry,
DirectiveContext context) |
| Modifier and Type | Method and Description |
|---|---|
List<Directive> |
parse()
Parses the recipe provided to this class and instantiate a list of
Directive from the recipe. |
public GrammarBasedParser(String namespace, String recipe, DirectiveRegistry registry)
public GrammarBasedParser(String namespace, String[] directives, DirectiveRegistry registry, DirectiveContext context)
public GrammarBasedParser(String namespace, String recipe, DirectiveRegistry registry, DirectiveContext context)
public List<Directive> parse() throws DirectiveLoadException, DirectiveNotFoundException, DirectiveParseException
Directive from the recipe.parse in interface RecipeParserDirective.DirectiveLoadExceptionDirectiveNotFoundExceptionDirectiveParseExceptionCopyright © 2022 CDAP Licensed under the Apache License, Version 2.0.