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,
List<String> keyList) |
public RuleLogicExpressionParser()
public boolean validateExpression(List<String> errorMessages, List<String> keyList)
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–2014 The Kuali Foundation. All rights reserved.