org.kuali.student.common.messagebuilder.booleanmessage.ast
Class BooleanFunction
java.lang.Object
org.kuali.student.common.messagebuilder.booleanmessage.ast.BooleanFunction
public class BooleanFunction
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BooleanFunction
public BooleanFunction(String booleanExpression)
getVariables
public List<String> getVariables()
- Parse function string to get the variables
1. Need this function at rule creation time (i.e when in BRMS) to insert
the action part of the rules
2. Also need this at runtime to populate the HashMaps in the
proposition which are used as tree leaf nodes in the AST.
- Returns:
- List of variables
getSymbols
public List<String> getSymbols()
- Parse function string to get all the symbols.
Need this only at rule creation time. Can't load the symbols in
getVariables() because the AST removes the parenthesis and
we need those. Get them from the string which has been
validated in the constructor example A0*B4+(C*D)
- Returns:
- List of symbols
Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.