public class RecipeParser extends Object
| Constructor and Description |
|---|
RecipeParser() |
| Modifier and Type | Method and Description |
|---|---|
protected HashMap<String,RecipeCommand> |
createRecipeCommands() |
protected String[] |
extractArguments(String[] commandLine) |
protected Set<String> |
getReplacementVariables(String cmdLine) |
boolean |
isReplaceReplacementVariables()
If the parser should replace replacement variables with their corresponding values (as found in
the parser context),
true is returned. |
void |
parseRecipe(RecipeContext context) |
protected void |
parseRecipeCommandLine(RecipeContext context,
String line) |
String |
replaceReplacementVariables(RecipeContext context,
String input) |
void |
setReplaceReplacementVariables(boolean flag) |
protected String[] |
splitCommandLine(String cmdLine) |
public boolean isReplaceReplacementVariables()
true is returned. If false then the replacement
variables remain as is when they are passed to their command processor objects.public void setReplaceReplacementVariables(boolean flag)
public void parseRecipe(RecipeContext context) throws Exception
Exceptionprotected void parseRecipeCommandLine(RecipeContext context, String line) throws Exception
Exceptionprotected HashMap<String,RecipeCommand> createRecipeCommands()
public String replaceReplacementVariables(RecipeContext context, String input)
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.