test_class.file: services/src/test/java/org/keycloak/utils/RegexUtilsTest.java
test_class.identifier: RegexUtilsTest
test_case.body: @Test
      public void valueMatchesRegexTest() {
          assertThat(RegexUtils.valueMatchesRegex("AB.*", "AB_ADMIN"), is(true));
          assertThat(RegexUtils.valueMatchesRegex("AB.*", "AA_ADMIN"), is(false));
          assertThat(RegexUtils.valueMatchesRegex("99.*", 999), is(true));
          assertThat(RegexUtils.valueMatchesRegex("98.*", 999), is(false));
          assertThat(RegexUtils.valueMatchesRegex("99\\..*", 99.9), is(true));
          assertThat(RegexUtils.valueMatchesRegex("AB.*", null), is(false));
          assertThat(RegexUtils.valueMatchesRegex("AB.*", Arrays.asList("AB_ADMIN", "AA_ADMIN")), is(true));
      }
test_case.class_method_signature: RegexUtilsTest.valueMatchesRegexTest()
test_case.full_signature: @Test public void valueMatchesRegexTest()
test_case.identifier: valueMatchesRegexTest
test_case.invocations: assertThat valueMatchesRegex is assertThat valueMatchesRegex is assertThat valueMatchesRegex is assertThat valueMatchesRegex is assertThat valueMatchesRegex is assertThat valueMatchesRegex is assertThat valueMatchesRegex asList is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void valueMatchesRegexTest()
focal_class.file: services/src/main/java/org/keycloak/utils/RegexUtils.java
focal_class.identifier: RegexUtils
focal_class.class_method_signature: RegexUtils.valueMatchesRegex(String regex, Object value)
focal_class.full_signature: public static boolean valueMatchesRegex(String regex, Object value)
focal_class.identifier: valueMatchesRegex
focal_class.modifiers: public static
focal_class.parameters: (String regex, Object value)
focal_class.return: boolean
focal_class.signature: boolean valueMatchesRegex(String regex, Object value)
focal_method.body: public static boolean valueMatchesRegex(String regex, Object value) {
          if (value instanceof List) {
              List list = (List) value;
              for (Object val : list) {
                  if (valueMatchesRegex(regex, val)) {
                      return true;
                  }
              }
          } else {
              if (value != null) {
                  String stringValue = value.toString();
                  return stringValue != null && stringValue.matches(regex);
              }
          }
          return false;
      }
focal_method.class_method_signature: RegexUtils.valueMatchesRegex(String regex, Object value)
focal_method.full_signature: public static boolean valueMatchesRegex(String regex, Object value)
focal_method.identifier: valueMatchesRegex
focal_method.invocations: valueMatchesRegex toString matches
focal_method.modifiers: public static
focal_method.parameters: (String regex, Object value)
focal_method.return: boolean
focal_method.signature: boolean valueMatchesRegex(String regex, Object value)