spring-framework / org.springframework.expression.spel.ast / OperatorMatches

OperatorMatches

open class OperatorMatches : Operator

Implements the matches operator. Matches takes two operands: The first is a String and the second is a Java regex. It will return true when #getValue is called if the first operand matches the regex.

Author
Andy Clement

Author
Juergen Hoeller

Since
3.0

Constructors

<init>

OperatorMatches(pos: Int, vararg operands: SpelNodeImpl)

Functions

getValueInternal

open fun getValueInternal(state: ExpressionState): BooleanTypedValue

Check the first operand matches the regex specified as the second operand.