Examples of matches()


Examples of com.codahale.metrics.MetricFilter.matches()

  public void testCompletelyEmpty() throws Exception {
    String str = "{}";
    Config config = ConfigFactory.parseString(str);
    MetricFilter filter = PatternMetricFilter.parse(new Configs(), config);
    assertSame(filter, MetricFilter.ALL);
    assertTrue(filter.matches("foo", new Counter()));
  }
 
  @Test
  public void testEmpty() throws Exception {
    String str = "{ metricFilter : {} }";

Examples of com.dci.intellij.dbn.language.common.psi.NamedPsiElement.matches()

        if (leniant) {
            child = getFirstChild();
            while (child != null) {
                if (child instanceof NamedPsiElement) {
                    NamedPsiElement namedPsiElement = (NamedPsiElement) child;
                    if (namedPsiElement.matches(element)) {
                        return true;
                    }
                }
                child = child.getNextSibling();
            }

Examples of com.dci.intellij.dbn.object.common.DBObjectType.matches()

    }

    @Override
    public boolean matches(BasePsiElement basePsiElement) {
        DBObjectType virtualObjectType = basePsiElement.getElementType().getVirtualObjectType();
        return virtualObjectType != null && virtualObjectType.matches(getObjectType());
    }
}

Examples of com.dotcms.repackage.org.apache.oro.text.regex.Perl5Matcher.matches()

          String regex = filesMasksArray[i];
          regex = regex.replace(".", "\\.");
          regex = regex.replace("*", ".*");
          regex = "^" + regex.trim() + "$";
          Pattern pattern = p5c.compile(regex, Perl5Compiler.CASE_INSENSITIVE_MASK);
          match = match || p5m.matches(fileName, pattern);
          if (match) {
            break;
          }
        }
      } else {

Examples of com.flaptor.indextank.index.scorer.MatchFilter.matches()

      facetFilter = facetingManager.getFacetFilter(query.getFilteringFacets());
    }
   
    for (ScoredMatch match : matches) {
      if (docFilter.apply(match.getDocId())) {
        if (facetFilter == null || facetFilter.matches(match.getDocId(), match.getScore(), query.getNow(), query.getVars())) {
          if (query.getRangeFilter() == null || query.getRangeFilter().matches(match.getDocId(), match.getScore(), query.getNow(), query.getVars())) {
              rescore(match, query, scoringFunctionIndex);
              faceter.computeDocument(match.getDocId());
             
              if (top.size() < n || top.peek().compareTo(match) > 0) {

Examples of com.foundationdb.server.types.texpressions.Matcher.matches()

        }

        String left = inputs.get(0).getString();
        try
        {
            output.putBool(matcher.matches(left));
        }
        catch (InvalidOperationException e)
        {
            context.warnClient(e);
            output.putNull();

Examples of com.google.apphosting.utils.config.WebXml.matches()

          response.sendError(HttpServletResponse.SC_NOT_FOUND);
        } else {
          boolean isStatic = appEngineWebXml.includesStatic(resourceRoot + pathInContext);
          boolean isResource = appEngineWebXml.includesResource(
              resourceRoot + pathInContext);
          boolean usesRuntime = webXml.matches(pathInContext);
          Boolean isWelcomeFile = (Boolean)
              request.getAttribute("com.google.appengine.tools.development.isWelcomeFile");
          if (isWelcomeFile == null) {
            isWelcomeFile = false;
          }

Examples of com.google.code.regexp.Matcher.matches()

      this.position = position;
    }
   
    protected static String getGroupName(String input,String groupName,Pattern pattern){
      Matcher m = pattern.matcher(input);
      if(m.matches()){
        return m.group(groupName);
      }
      return null;
    }
   

Examples of com.google.code.regexp.NamedMatcher.matches()

            else if("PUT".equals(req.getMethod())) mapping = registryPut;
                // cannot happen, methods are filtered in servlet
            else throw new IllegalArgumentException("Unsupported HTTP method: '" + req.getMethod() + "'");
            for(HandlersMappingEntry en : mapping) {
                NamedMatcher matcher = en.matcher(req.getPathInfo());
                if(matcher.matches()) {
                    en.getTransportHandler().handle(en.getRestHandlerClass(), req, resp, matcher.namedGroups());
                    return;
                }
            }
            notFoundHandler.handle(this, req, resp);

Examples of com.google.greaze.definition.CallPath.matches()

    String incomingPath =  servletPath.substring(greazeDispatcherServletPath.length());
    for (CallPath servicePath : servicePaths) {
      CallPathParser callPathParser = servicePath.toParser();
      try {
        CallPath incomingCallPath = callPathParser.parse(incomingPath);
        if (incomingCallPath.matches(servicePath)) {
          if (LogConfig.FINE) {
            log.fine(String.format(
                "Matched: Incoming path: %s, servicePath: %s", incomingPath, servicePath));
          }
          return callPathParser.parse(incomingPath);
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.