Class StandardExpressionContext
java.lang.Object
com.broadleafcommerce.rulesengine.expression.context.StandardExpressionContext
- All Implemented Interfaces:
ExpressionContext,Serializable
- Direct Known Subclasses:
StandardSpelExpressionContext
Standard implementation of
ExpressionContext for use when evaluating expressions. Fields
are immutable.- Author:
- Nathan Moore (nathanmoore).
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStandardExpressionContext(boolean matchAny, int limit, Map<String, Object> variables) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintgetLimit()'Limit' is intended to be used to limit the number of results to return when matching a group of rules against a group of objects.'Variables' is intended to be used to store named variables that are to be injected into an expression or group of expressions, replacing#variableNamereferences.inthashCode()boolean'Match any' is intended to be used to determine whether all of a group of rules must match against an object or just 1.toString()
-
Field Details
-
EMPTY_EXPRESSION_CONTEXT
-
-
Constructor Details
-
StandardExpressionContext
-
StandardExpressionContext
public StandardExpressionContext()
-
-
Method Details
-
isMatchAnyRule
public boolean isMatchAnyRule()Description copied from interface:ExpressionContext'Match any' is intended to be used to determine whether all of a group of rules must match against an object or just 1.- Specified by:
isMatchAnyRulein interfaceExpressionContext- Returns:
- whether all rules must match or any
-
getLimit
public int getLimit()Description copied from interface:ExpressionContext'Limit' is intended to be used to limit the number of results to return when matching a group of rules against a group of objects.- Specified by:
getLimitin interfaceExpressionContext- Returns:
- number of matching results to return
-
getVariables
Description copied from interface:ExpressionContext'Variables' is intended to be used to store named variables that are to be injected into an expression or group of expressions, replacing#variableNamereferences.- Specified by:
getVariablesin interfaceExpressionContext- Returns:
- variables to inject into an expression or group of expressions
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-