
net.sf.xolite.expressions.jaxb_abstr.BooleanExpression Maven / Gradle / Ivy
package net.sf.xolite.expressions.jaxb_abstr;
public abstract class BooleanExpression {
/**
* Checks that all the expressions have correct number of operands and that all the used variables are defined.
*
* @param context
* the context holding the variables values.
* @throw IllegalStateException if the expression is incorrect.
*/
public abstract void validate(ExpressionContext context);
/**
* Evaluate the expression against the context.
*
* @param context
* the context holding the variables values.
* @throw IllegalStateException if the expression is incorrect.
* @return value of this boolean expression.
*/
public abstract boolean evaluate(ExpressionContext context);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy