Examples of match()


Examples of it.halfone.parser.Parser.match()

   
    literal.boost(5);
    Assert.assertTrue(literal.compile().match(literalValue));

    Parser parser = literal.then(literal).compile();
    Assert.assertTrue(parser.match(literalValue + literalValue));
    Assert.assertFalse(parser.match(""));
    Assert.assertFalse(parser.match(literalValue));
    Assert.assertFalse(parser.match(literalValue + literalValue + literalValue));
   
    parser = literal.or("").compile();

Examples of java.security.cert.CertSelector.match()

                                    } catch (KeyStoreException ex) {
                                        log.log(Level.SEVERE, LogStringsMessages.WSS_0813_FAILEDTO_GETCERTIFICATE(), ex);
                                        throw new RuntimeException(ex);
                                    }
                                    if ((thisCertificate instanceof X509Certificate)
                                    && selector.match(thisCertificate)) {
                                        return (X509Certificate)thisCertificate;
                                    }
                                }
                            }
                        }

Examples of java.security.cert.X509CRLSelector.match()

                BouncyCastleProvider.PROVIDER_NAME);
            while (it.hasNext())
            {
                CRL crl = cf.generateCRL(new ByteArrayInputStream((byte[])it
                    .next()));
                if (xselector.match(crl))
                {
                    crlSet.add(crl);
                }
            }
        }

Examples of java.security.cert.X509CertSelector.match()

        while (iter.hasNext() && trust == null)
        {
            trust = (TrustAnchor)iter.next();
            if (trust.getTrustedCert() != null)
            {
                if (certSelectX509.match(trust.getTrustedCert()))
                {
                    trustPublicKey = trust.getTrustedCert().getPublicKey();
                }
                else
                {

Examples of java.util.Scanner.match()

        void parseMacKeyHeaderLine(String line, KatResult kr) {
            Scanner ls = new Scanner(line);
            ls.findInLine(".*=\\s*(\\d+) .*");
            MatchResult result = null;
            try {
                result = ls.match();
            } catch (Exception e) {
                System.out.println("Mac header: " + line);
                e.printStackTrace();
                System.exit(1);
            }

Examples of javafx.scene.input.KeyCodeCombination.match()

    final StackPane masterStackPane = new StackPane();
    masterStackPane.setOnKeyReleased(new EventHandler<javafx.scene.input.KeyEvent>() {
      @Override
      public void handle(javafx.scene.input.KeyEvent event) {
        KeyCodeCombination keyCombination = new KeyCodeCombination(KeyCode.ENTER, KeyCombination.SHORTCUT_DOWN);
        if (keyCombination.match(event)){
          refresh();
        }
      }
    });
   

Examples of javax.activation.MimeType.match()

      if (a == null || b == null) return true;
      if (a.match(b)) return true;
      if (a.equals(WILDCARD)) return true;
      if (a.getPrimaryType().equals("*")) {
        MimeType c = new MimeType(b.getPrimaryType(), a.getSubType());
        return c.match(b);
      }
      if (b.getPrimaryType().equals("*")) {
        MimeType c = new MimeType(a.getPrimaryType(), b.getSubType());
        return c.match(a);
      }

Examples of javax.mail.internet.ContentType.match()

        // and does not really check the actual content type.

        try
        {
            final ContentType ct = new ContentType(part.getDataHandler().getContentType());
            return ct.match(mimeType);
        }
        catch (final ParseException ex)
        {
            return part.getContentType().equalsIgnoreCase(mimeType);
        }

Examples of javax.mail.search.SearchTerm.match()

        MimeMessage msg = new MimeMessage(sender.getSession());
        msg.setSubject("Yeah Camel rocks");
        msg.setText("Apache Camel is a cool project. Have a fun ride.");
        msg.setFrom(new InternetAddress("someone@somewhere.com"));
        assertTrue("Should match message", st.match(msg));

        MimeMessage msg2 = new MimeMessage(sender.getSession());
        msg2.setSubject("Apache Camel is fantastic");
        msg2.setText("I like Camel.");
        msg2.setFrom(new InternetAddress("donotreply@somewhere.com"));

Examples of mage.filter.Filter.match()

          if (perm.moveToZone(Zone.GRAVEYARD, null, this, false))
            somethingHappened = true;
        }
        else {
          Filter auraFilter = perm.getSpellAbility().getTargets().get(0).getFilter();
          if (!auraFilter.match(attachedTo) || attachedTo.hasProtectionFrom(perm)) {
            if (perm.moveToZone(Zone.GRAVEYARD, null, this, false))
              somethingHappened = true;
          }
        }
      }
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.