Examples of groups()


Examples of org.apache.oro.text.regex.MatchResult.groups()

    }
   
    public Object nextElement()
    {
      MatchResult match = _matcher.getMatch();
      int n = match.groups();
      Any[] list = new Any[n];
      for(int i=0; i<n; i++) {
        list[i] = Any.create(match.group(i));
      }
      return new AnyList(list);
View Full Code Here

Examples of org.apache.oro.text.regex.MatchResult.groups()

        StringBuilder sb = new StringBuilder();
        final int size = matches.size();
        sb.append("Match count: ").append(size).append("\n");
        for (int j = 0; j < size; j++) {
            MatchResult mr = matches.get(j);
            final int groups = mr.groups();
            for (int i = 0; i < groups; i++) {
                sb.append("Match[").append(j+1).append("][").append(i).append("]=").append(mr.group(i)).append("\n");
            }
        }
        return sb.toString();
View Full Code Here

Examples of org.apache.oro.text.regex.MatchResult.groups()

        while (matcher.contains(input, pattern)) {
            MatchResult match = matcher.getMatch();
            String s;
            if (log.isDebugEnabled()) {
                log.debug("match groups " + match.groups() + " " + match.toString());
            }
            // Check for a BASE HREF:
            for (int g = 1; g <= NUM_BASE_GROUPS && g <= match.groups(); g++) {
                s = match.group(g);
                if (s != null) {
View Full Code Here

Examples of org.apache.oro.text.regex.MatchResult.groups()

            String s;
            if (log.isDebugEnabled()) {
                log.debug("match groups " + match.groups() + " " + match.toString());
            }
            // Check for a BASE HREF:
            for (int g = 1; g <= NUM_BASE_GROUPS && g <= match.groups(); g++) {
                s = match.group(g);
                if (s != null) {
                    if (log.isDebugEnabled()) {
                        log.debug("new baseUrl: " + s + " - " + baseUrl.toString());
                    }
View Full Code Here

Examples of org.apache.oro.text.regex.MatchResult.groups()

                            log.debug("Can't build base URL from RL " + s + " in page " + baseUrl, e);
                        }
                    }
                }
            }
            for (int g = NUM_BASE_GROUPS + 1; g <= match.groups(); g++) {
                s = match.group(g);
                if (s != null) {
                    if (log.isDebugEnabled()) {
                        log.debug("group " + g + " - " + match.group(g));
                    }
View Full Code Here

Examples of org.apache.oro.text.regex.MatchResult.groups()

            }
        } else // if ! isPathExtension()
        {
            if (matcher.contains(text, parameterRegexp)) {
                MatchResult result = matcher.getMatch();
                for (int i = 1; i < result.groups(); i++) {
                    value = result.group(i);
                    if (value != null) {
                        break;
                    }
                }
View Full Code Here

Examples of org.apache.oro.text.regex.MatchResult.groups()

    boolean matches = matcher.matches(input, pattern);

    String[] groups = null;
    if (matches) {
      MatchResult matchResult = matcher.getMatch();
      int groupCount = matchResult.groups();

      groups = new String[groupCount];
      for (int i = 0; i < groupCount; i++) {
        groups[i] = matchResult.group(i);
      }
View Full Code Here

Examples of org.elasticsearch.action.admin.indices.stats.IndicesStatsRequest.groups()

            indicesStatsRequest.suggest(metrics.contains("suggest"));
            indicesStatsRequest.queryCache(metrics.contains("query_cache"));
        }

        if (request.hasParam("groups")) {
            indicesStatsRequest.groups(Strings.splitStringByCommaToArray(request.param("groups")));
        }

        if (request.hasParam("types")) {
            indicesStatsRequest.types(Strings.splitStringByCommaToArray(request.param("types")));
        }
View Full Code Here

Examples of org.graphstream.ui.graphicGraph.StyleGroupSet.groups()

  private void checkAndOutputStyle() {
    String nodeStyle = "circle,draw=black,fill=black";
    String edgeStyle = "draw=black";
    StyleGroupSet sgs = buffer.getStyleGroups();

    for (StyleGroup sg : sgs.groups()) {
      String key = String.format("class%02d", classIndex++);
      classNames.put(sg.getId(), key);
      classes.put(key, getTikzStyle(sg));
    }
View Full Code Here

Examples of org.infinispan.configuration.cache.HashConfiguration.groups()

   private static ConsistentHash constructConsistentHashInstance(
            Configuration c, boolean withTopology) {
      HashConfiguration hashCfg = c.clustering().hash();
      return constructConsistentHashInstance(hashCfg.consistentHash(),
            hashCfg.hash(), hashCfg.numVirtualNodes(),
            new GroupManagerImpl(hashCfg.groups().groupers()), withTopology);
   }

   private static ConsistentHash constructConsistentHashInstance(
            ConsistentHash ch, Hash hashFunction, int numVirtualNodes,
            GroupManager groupManager, boolean withTopology) {
View Full Code Here
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.