Examples of group()


Examples of org.jregex.MatchResult.group()

                    List<Object> groups = new ArrayList<Object>();
                    MatchResult mr = getMatchResult(on);
                    int len = mr.groupCount();
                    for(int i=0;i<len;i++) {
                        if(mr.isCaptured(i)) {
                            groups.add(context.runtime.newText(mr.group(i)));
                        } else {
                            groups.add(context.runtime.nil);
                        }
                    }
View Full Code Here

Examples of org.kitesdk.morphline.shaded.com.google.code.regexp.Matcher.group()

    Pattern pattern = Pattern.compile("(?<word>.+?)(\\t|\\z)");
    Matcher matcher = pattern.matcher(msg);
    List<String> results = Lists.newArrayList();
    while (matcher.find()) {
      //System.out.println("match:'" + matcher.group(1) + "'");
      results.add(matcher.group(1));
    }
    assertEquals(Arrays.asList("hello", "world", "foo"), results);
  }
 
  @Test
View Full Code Here

Examples of pspdash.Perl5Util.group()

                } catch (Perl5Util.RegexpException e) {
                    throw new MalformedValueException(e.toString());
                }

                pre = perl.preMatch();
                func = perl.group(1);
                post = perl.postMatch();

                tempname = getAnonymousFunctionName();
                //r.makeUniqueName(r.anonymousPrefix + "_Function");
                try {
View Full Code Here

Examples of uk.org.woodcraft.bookings.BookingGrouper.group()

    // FIXME: Assumes one event only
   
    List<BookingTransformer> transformers = (List<BookingTransformer>) GroupedReports.get(selectedReport.getTag());
    BookingGrouper grouper = new BookingGrouper(transformers);
   
    Map<List<Object>, List<Booking>> groupedBookings = grouper.group(CannedQueries.allBookings(true));
   
    List rows = new ArrayList();
    for(Map.Entry<List<Object>, List<Booking>> entry : groupedBookings.entrySet())
    {
      rows.add(buildRow(entry.getKey(), entry.getValue()));
View Full Code Here

Examples of water.fvec.Vec.group()

    Vec va = null, vp;
    try {
      va = vactual.toEnum(); // always returns TransfVec
      vp = vpredict;
      // The vectors are from different groups => align them, but properly delete it after computation
      if (!va.group().equals(vp.group())) {
        vp = va.align(vp);
      }
      // compute thresholds, if not user-given
      if (thresholds != null) {
        sort(thresholds);
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.