Examples of Match


Examples of com.redcareditor.onig.Match

  public Marker scanLine(DoublePattern dp) {
    Marker bestMarker = null;
    for (Pattern p : dp.patterns) {
      // System.out.printf("     scanning for %s (%s)\n", p.name, p.disabled);
      if (p.disabled) continue;
      Match match = scanForMatch(position, p);
      if (match != null) {
        Marker newMarker = markerFromMatch(p, match);
        if (newMarker != null) {
          bestMarker = newMarker.bestOf(bestMarker);
        }
View Full Code Here

Examples of com.strobel.decompiler.patterns.Match

            arguments.hasSingleElement()) {

            final Expression firstArgument;

            if (arguments.hasSingleElement()) {
                final Match m = STRING_BUILDER_ARGUMENT_PATTERN.match(arguments.firstOrNullObject());

                if (!m.success()) {
                    return super.visitObjectCreationExpression(node, data);
                }

                firstArgument = firstOrDefault(m.<Expression>get("firstArgument"));
            }
            else {
                firstArgument = null;
            }
View Full Code Here

Examples of com.volantis.mcs.migrate.impl.framework.identification.Match

        // Ask the resource recogniser to see if can recognise the input
        // resource. This will throw an exception if we get duplicate matches
        // as that indicates an error in the configuration which must be solved
        // before we migrate30 the resource in question.
        Match match = resourceIdentifier.identifyResource(meta,
                restartInput);

        // Restart the input since the recogniser will have already
        // consumed it.
        restartInput.restart();

        // If we found a recognition match...
        if (match != null) {
            // ... then try and run the migration using the match.

            reporter.reportNotification(
                    notificationFactory.createLocalizedNotification(
                            NotificationType.INFO, "migration-resource-migrating",
                            new Object[]{meta.getURI(), match.getTypeName(),
                                         match.getVersionName()}));
            processMigrationSteps(match, restartInput, outputCreator);
        } else {
            // ... else, we have no match for this resource.
            // In this case, we assume the content does not require migration
            // and just copy it across to the output.
View Full Code Here

Examples of common.Match

     * D-S  4-5
     */
    if( null == homeTeam && null == guestTeam  ){
      return false;
    }
    matches.add(new Match(homeTeam.getPlayer('A').getFirstName(), guestTeam.getPlayer('X').getFirstName(),(short) (1),false));
    matches.add(new Match(homeTeam.getPlayer('D').getFirstName(), guestTeam.getPlayer('R').getFirstName(),(short) (1),false));
    matches.add(new Match(homeTeam.getPlayer('B').getFirstName(), guestTeam.getPlayer('Y').getFirstName(),(short) (1),false));
    matches.add(new Match(homeTeam.getPlayer('E').getFirstName(), guestTeam.getPlayer('S').getFirstName(),(short) (1),false));
    matches.add(new Match(homeTeam.getPlayer('C').getFirstName(), guestTeam.getPlayer('Z').getFirstName(),(short) (1),false));
    matches.add(new Match(homeTeam.getPlayer('F').getFirstName(), guestTeam.getPlayer('T').getFirstName(),(short) (1),false));
    matches.add(new Match(homeTeam.getPlayer('B').getFirstName(), guestTeam.getPlayer('X').getFirstName(),(short) (1),false));
    matches.add(new Match(homeTeam.getPlayersNameForBottomDouble(),guestTeam.getPlayersNameForBottomDouble(), (short) (1),false));
    matches.add(new Match(homeTeam.getPlayer('A').getFirstName(), guestTeam.getPlayer('Z').getFirstName(),(short) (1),false));
    matches.add(new Match(homeTeam.getPlayer('E').getFirstName(), guestTeam.getPlayer('R').getFirstName(),(short) (1),false));
    matches.add(new Match(homeTeam.getPlayer('C').getFirstName(), guestTeam.getPlayer('Y').getFirstName(),(short) (1),false));
    matches.add(new Match(homeTeam.getPlayer('D').getFirstName(), guestTeam.getPlayer('T').getFirstName(),(short) (1),false));
    matches.add(new Match(homeTeam.getPlayersNameForTopDouble(),guestTeam.getPlayersNameForTopDouble(), (short) (1),false));   
    matches.add(new Match(homeTeam.getPlayer('F').getFirstName(), guestTeam.getPlayer('S').getFirstName(),(short) (1),false));
    matches.add(new Match(homeTeam.getPlayer('B').getFirstName(), guestTeam.getPlayer('Z').getFirstName(),(short) (1),false));
    matches.add(new Match(homeTeam.getPlayer('E').getFirstName(), guestTeam.getPlayer('T').getFirstName(),(short) (1),false));
    matches.add(new Match(homeTeam.getPlayer('C').getFirstName(), guestTeam.getPlayer('X').getFirstName(),(short) (1),false));
    matches.add(new Match(homeTeam.getPlayer('F').getFirstName(), guestTeam.getPlayer('R').getFirstName(),(short) (1),false));
    matches.add(new Match(homeTeam.getPlayer('A').getFirstName(), guestTeam.getPlayer('Y').getFirstName(),(short) (1),false));
    matches.add(new Match(homeTeam.getPlayer('D').getFirstName(), guestTeam.getPlayer('S').getFirstName(),(short) (1),false));
    return true;
  }
View Full Code Here

Examples of csa.jportal.match.Match

        {
            public void run()
            {
                jPanel7.setBackground(Color.red);
                jPanel8.setBackground(Color.red);
                currentMatch = new Match(options, mScheduler.mParent);
                currentMatch.setMatchRunner(PairedBattleInfo.this);
                mScheduler.mParent.enableQuitMatch(currentMatch);
            }
        };
        java.awt.EventQueue.invokeLater(caller);
View Full Code Here

Examples of fiftyone.mobile.detection.Match

                    }

                    if (results == null) {
                        // Get the match and store the list of properties and
                        // values in the context and session.
                        Match match = getActiveProvider(
                                request.getServletContext()).match(request);
                        if (match != null) {
                            // Allow other feautre detection methods to override
                            // priofiles.
                            ProfileOverride.override(request, match);

                            // Store the match results for future checks during the same
                            // request.
                            if (session != null) {
                                session.setAttribute(RESULT_ATTIBUTE, match.getResults());
                            }
                            request.setAttribute(RESULT_ATTIBUTE, match.getResults());
                            results = match.getResults();
                        }
                    }
                }
            }
        } else if (session != null) {
View Full Code Here

Examples of findstruct.StructModel.Match

                    }
                }
            }
            // Here we've matched all subparts, sorted in matches
            Iterator<Match> it = matches.iterator();
            Match next = null;
            if (it.hasNext()) next = it.next();
            else {
                // No substructure matched. It's all text.
                addText(result,s,start,end);
                //result.addContent(s.substring(start, end).trim());
                return result;
            }
            Match curr = null;
            int used = start;
            do {
                curr = next;
                next = (it.hasNext())? it.next():null;
                if (used<curr.start) {
                    addText(result,s,used,curr.start);
                    //result.addContent(s.substring(used, curr.start).trim());
                    used = curr.start;
                } else if (used>curr.start) {
                    System.err.println("Overlapped matches among parts of "
                            +name+": "+used+" vs. "+curr.start);
                }
                SM mod = curr.matched;
                if (curr.matched.isPattern()) {
                    Element patElt = new Element(mod.name);
                    int nb = curr.numBindings();
                    if (nb<0) patElt.addContent(curr.vals.get(0));
                    else for (int i=0; i<nb; i++) {
                        patElt.addContent(curr.bindingToXML(i));
                    }
                    result.addContent(patElt);
                    used = curr.end;
                } else { // Start element, not pattern
                    used = curr.end;
View Full Code Here

Examples of flex.messaging.util.MethodMatcher.Match

            // Test that the target method may be invoked based upon include/exclude method settings.
            if (includeMethods != null)
            {
                RemotingMethod method = (RemotingMethod)includeMethods.get(methodName);
                if (method == null)
                    MethodMatcher.methodNotFound(methodName, null, new Match(null));

                // Check method-level security constraint, if defined.
                SecurityConstraint constraint = method.getSecurityConstraint();
                if (constraint != null)
                    getDestination().getService().getMessageBroker().getLoginManager().checkConstraint(constraint);
            }
            else if ((excludeMethods != null) && excludeMethods.containsKey(methodName))
                MethodMatcher.methodNotFound(methodName, null, new Match(null));

            // Lookup and invoke.
            Object instance = createInstance(factoryInstance.getInstanceClass());
            if (instance == null)
            {
View Full Code Here

Examples of gherkin.formatter.model.Match

    private Step step(String keyword, String stepName) {
        return new Step(Collections.<Comment>emptyList(), keyword, stepName, 14, null, new DocString("", "", 52));
    }

    private Match match() {
        return new Match(null, null);
    }
View Full Code Here

Examples of mage.game.match.Match

            player.setPoints(0);
            player.setStateInfo("");
        }
        for (Round round: rounds) {
            for (TournamentPairing pair: round.getPairs()) {
                Match match = pair.getMatch();
                if (match != null && match.hasEnded()) {
                    TournamentPlayer tp1 = pair.getPlayer1();
                    TournamentPlayer tp2 = pair.getPlayer2();
                    MatchPlayer mp1 = match.getPlayer(pair.getPlayer1().getPlayer().getId());
                    MatchPlayer mp2 = match.getPlayer(pair.getPlayer2().getPlayer().getId());
                    // set player state if he finished the round
                    if (round.getRoundNumber() == rounds.size()) { // for elimination getRoundNumber = 0 so never true here
                        match.setTournamentRound(round.getRoundNumber());
                        if (tp1.getState().equals(TournamentPlayerState.DUELING)) {
                            if (round.getRoundNumber() == getNumberRounds()) {
                                tp1.setState(TournamentPlayerState.FINISHED);
                            } else {
                                tp1.setState(TournamentPlayerState.WAITING);
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.