|
LargoRecipes | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Object
|
+--IngredientAmountParser.ElementParser
|
+--IngredientAmountParser.MeasureAdjectiveParser
Class that parses the measure adjective element.
| Field Summary | |
protected String |
value
The current value of the element being parsed. |
| Constructor Summary | |
private |
IngredientAmountParser.MeasureAdjectiveParser()
Construct a new MeasureAdjectiveParser. |
| Method Summary | |
String |
getValue()
Get the value stored in this parser. |
void |
parse(Stack tokenStack)
Pop the next token off the given Stack and parse it. |
protected String |
stripToken(String token)
Utility method that strips a trailing asterisk, comma, semicolon, or full stop from a token, if it is present. |
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected String value
| Constructor Detail |
private IngredientAmountParser.MeasureAdjectiveParser()
MeasureAdjectiveParser.
| Method Detail |
public void parse(Stack tokenStack)
throws UnrecoverableException
IngredientAmountParser.ElementParserStack and parse it. If that token is not part of this parser's
element, change the parser to the appropriate parser for that token
and call parse on the new parser. May manipulate the stack, for instance to
"push back" tokens.
parse in class IngredientAmountParser.ElementParsertokenStack - The Stack of tokens to process.
UnrecoverableException - if an error condition prevents completion of this task, and no
recovery is possible. Client code should abort processing and report
the error.public String getValue()
protected String stripToken(String token)
token - The token to strip.
|
LargoRecipes | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||