Examples of matches()


Examples of pt.opensoft.text.Regex.matches()

      String line = reader.readLine();
      while (line != null) { // EOF
        if (!fullFile && version.matches(line) && (line.indexOf(this.lastVersion) != -1)) {
          break;
        } else if (version.matches(line) || geek.matches(line)) {
          line = reader.readLine();
          continue;
        } else {
          writer.println(line);
          line = reader.readLine();

Examples of reactor.event.selector.Selector.matches()

        if (key != null) {
          selector = Selector.class.isAssignableFrom(key.getClass()) ?
              (Selector) key :
              Selectors.$(key);

          if (selector.matches(topic)) {
            registrations.add(pushBuilder.get().on(Selectors.$(topic),
                new AtmosphereConsumer(resource, broadcastClientFilter)));
          }
        }
      }

Examples of rocket.beans.rebind.aop.MethodMatcher.matches()

            }
          }
          break;
        }

        if (method.getVisibility() == Visibility.PUBLIC && matcher.matches(method)) {
          matchedMethods.add(method);
          context.debug(method.toString());
        }
        return false;
      }

Examples of rocket.serialization.rebind.typematcher.TypeMatcher.matches()

      // scan entire type heirarchy just in case type or any super is
      // blacklisted.
      Type current = type;
      while (true) {
        if (matcher.matches(current)) {
          blacklisted = true;
          break;
        }

        current = current.getSuperType();

Examples of tvbrowser.extras.favoritesplugin.core.ActorSearcher.matches()

  private boolean actorInProgram(String actor, String programText) {
    try {
      @SuppressWarnings("unused")
      ActorSearcher searcher = new ActorSearcher(actor);
      // currently not possible due to visibility issues
      return searcher.matches(programText);
    } catch (TvBrowserException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    return false;

Examples of wwutil.model.MaskMatcher.matches()

                char    anyMask = ReflectUtil.getAnnoValue(fieldAnnotation, "anyMask", '*');
                String  pattern = ReflectUtil.getAnnoValue(fieldAnnotation, "pattern", "");
                String  value = (String)field.get(object);
                if (value != null) {
                    MaskMatcher matcher = new MaskMatcher(pattern, digitMask, letterMask, anyMask);
                    if (!matcher.matches(value))
                        throw new ValidationException("Field value " + value + " does not match the mask pattern " + pattern + ".  Field: " + field.getName());
                }
            }
        });

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.