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 boolean
boolean
int
getLimit()
'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#variableName
references.int
hashCode()
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:
isMatchAnyRule
in 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:
getLimit
in 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#variableName
references.- Specified by:
getVariables
in interfaceExpressionContext
- Returns:
- variables to inject into an expression or group of expressions
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-