public class RuleLogicExpressionParser extends Object
| Constructor and Description |
|---|
RuleLogicExpressionParser() |
| Modifier and Type | Method and Description |
|---|---|
String |
getExpression() |
List<ExpressionToken> |
getTokenList() |
PropositionEditor |
parseExpressionIntoRule(RuleEditor ruleEditor,
RuleViewHelperService viewHelper)
Method to rebuild the tree based on the set token list that was built from given expression.
|
PropositionEditor |
ruleFromStack(Stack<ExpressionToken> tokenStack,
Map<String,PropositionEditor> simplePropositions,
Queue<PropositionEditor> compoundPropositions,
RuleEditor rule,
RuleViewHelperService viewHelper)
Build the proposition tree from the token stack in reverse order.
|
void |
setExpression(String expression) |
boolean |
validateExpression(List<String> errorMessages) |
public RuleLogicExpressionParser()
public boolean validateExpression(List<String> errorMessages)
public void setExpression(String expression)
public String getExpression()
public List<ExpressionToken> getTokenList()
public PropositionEditor parseExpressionIntoRule(RuleEditor ruleEditor, RuleViewHelperService viewHelper)
ruleEditor - viewHelper - public PropositionEditor ruleFromStack(Stack<ExpressionToken> tokenStack, Map<String,PropositionEditor> simplePropositions, Queue<PropositionEditor> compoundPropositions, RuleEditor rule, RuleViewHelperService viewHelper)
tokenStack - simplePropositions - compoundPropositions - rule - Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.