类 OperatorMatches

所有已实现的接口:
Opcodes, SpelNode

public class OperatorMatches extends 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 SpelNodeImpl.getValue(cn.taketoday.expression.spel.ExpressionState) is called if the first operand matches the regex.
从以下版本开始:
4.0
作者:
Andy Clement, Juergen Hoeller, Sam Brannen, Harry Yang
  • 字段详细资料

    • PATTERN_ACCESS_THRESHOLD

      private static final int PATTERN_ACCESS_THRESHOLD
      另请参阅:
    • MAX_REGEX_LENGTH

      private static final int MAX_REGEX_LENGTH
      Maximum number of characters permitted in a regular expression.
      另请参阅:
    • patternCache

      private final ConcurrentMap<String,Pattern> patternCache
  • 构造器详细资料

  • 方法详细资料

    • getValueInternal

      public BooleanTypedValue getValueInternal(ExpressionState state) throws EvaluationException
      Check the first operand matches the regex specified as the second operand.
      指定者:
      getValueInternal 在类中 SpelNodeImpl
      参数:
      state - the expression state
      返回:
      true if the first operand matches the regex specified as the second operand, otherwise false
      抛出:
      EvaluationException - if there is a problem evaluating the expression (e.g. the regex is invalid)
    • checkRegexLength

      private void checkRegexLength(String regex)