org.springframework.expression.spel.ast

Class OperatorMatches

    • Constructor Detail

      • OperatorMatches

        public OperatorMatches(int pos,
                               SpelNodeImpl... operands)
    • Method Detail

      • getValueInternal

        public BooleanTypedValue getValueInternal(ExpressionState state)
                                           throws EvaluationException
        Check the first operand matches the regex specified as the second operand.
        Specified by:
        getValueInternal in class SpelNodeImpl
        Parameters:
        state - the expression state
        Returns:
        true if the first operand matches the regex specified as the second operand, otherwise false
        Throws:
        EvaluationException - if there is a problem evaluating the expression (e.g. the regex is invalid)