Class StandardExpressionContext

    • Field Detail

      • EMPTY_EXPRESSION_CONTEXT

        public static final ExpressionContext EMPTY_EXPRESSION_CONTEXT
    • Constructor Detail

      • StandardExpressionContext

        public StandardExpressionContext​(boolean matchAny,
                                         int limit,
                                         Map<String,​Object> variables)
      • StandardExpressionContext

        public StandardExpressionContext()
    • Method Detail

      • 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 interface ExpressionContext
        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 interface ExpressionContext
        Returns:
        number of matching results to return
      • getVariables

        public Map<String,​Object> 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 interface ExpressionContext
        Returns:
        variables to inject into an expression or group of expressions
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object