public class GrammarWalker extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
GrammarWalker.Visitor<E extends Exception>
A visitor for the the recipe grammar.
|
| Constructor and Description |
|---|
GrammarWalker(Compiler compiler,
DirectiveContext context) |
| Modifier and Type | Method and Description |
|---|---|
<E extends Exception> |
walk(String recipe,
GrammarWalker.Visitor<E> visitor)
Walks the grammar tree generated by the recipe.
|
public GrammarWalker(Compiler compiler, DirectiveContext context)
public <E extends Exception> void walk(String recipe, GrammarWalker.Visitor<E> visitor) throws CompileException, DirectiveParseException, E extends Exception
E - type of exception that can be thrown by the visitorrecipe - the recipe to parsevisitor - the visitor for walking the grammar treeCompileException - if failed to compile the recipeDirectiveParseException - if a directive in the recipe is invalidE - if the visitor throws an exceptionE extends ExceptionCopyright © 2024 CDAP Licensed under the Apache License, Version 2.0.