Class StandardSpelExpressionContext
- java.lang.Object
-
- com.broadleafcommerce.rulesengine.expression.context.StandardExpressionContext
-
- com.broadleafcommerce.rulesengine.expression.context.StandardSpelExpressionContext
-
- All Implemented Interfaces:
ExpressionContext
,SpelExpressionContext
,Serializable
public class StandardSpelExpressionContext extends StandardExpressionContext implements SpelExpressionContext
Standard implementation ofSpelExpressionContext
for use when evaluating SpEL expressions. Fields are immutable.- Author:
- Nathan Moore (nathanmoore).
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.broadleafcommerce.rulesengine.expression.context.StandardExpressionContext
EMPTY_EXPRESSION_CONTEXT
-
-
Constructor Summary
Constructors Constructor Description StandardSpelExpressionContext()
StandardSpelExpressionContext(boolean matchAny, int limit, Map<String,Object> variables, org.springframework.expression.ParserContext parserContext)
StandardSpelExpressionContext(org.springframework.expression.ParserContext parserContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
org.springframework.expression.ParserContext
getParserContext()
Intended to provide aParserContext
to a SpEL expression.int
hashCode()
String
toString()
-
Methods inherited from class com.broadleafcommerce.rulesengine.expression.context.StandardExpressionContext
getLimit, getVariables, isMatchAnyRule
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.broadleafcommerce.rulesengine.expression.context.ExpressionContext
getLimit, getVariables, isMatchAnyRule
-
-
-
-
Constructor Detail
-
StandardSpelExpressionContext
public StandardSpelExpressionContext(boolean matchAny, int limit, Map<String,Object> variables, org.springframework.expression.ParserContext parserContext)
-
StandardSpelExpressionContext
public StandardSpelExpressionContext()
-
StandardSpelExpressionContext
public StandardSpelExpressionContext(org.springframework.expression.ParserContext parserContext)
-
-
Method Detail
-
getParserContext
public org.springframework.expression.ParserContext getParserContext()
Description copied from interface:SpelExpressionContext
Intended to provide aParserContext
to a SpEL expression. This is required to evaluate templated expressions.- Specified by:
getParserContext
in interfaceSpelExpressionContext
- Returns:
- a
ParserContext
- See Also:
TemplateParserContext
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classStandardExpressionContext
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqual
in classStandardExpressionContext
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classStandardExpressionContext
-
toString
public String toString()
- Overrides:
toString
in classStandardExpressionContext
-
-