Examples of matches()


Examples of de.susebox.jtopas.spi.PatternHandler.matches()

      String                image    = _patternMatchingStrings[index];
      char[]                complete = { ';' };
     
      _currDataLength = image.length();
      System.arraycopy(image.toCharArray(), 0, _currData, _currStartPos, _currDataLength);
      result = ph.matches(new LocalDataProvider(this));
      assertTrue("Pattern matching failed for: " + image, result != null );
      assertTrue("Pattern matching returned wrong length: " + result.getLengthOfMatch(), result.getLengthOfMatch() == image.length());
      System.arraycopy(complete, 0, _currData, _currStartPos + _currDataLength, complete.length);
      _currDataLength += complete.length;
      result = ph.matches(new LocalDataProvider(this));

Examples of de.willuhn.io.FileFinder.matches()


    String path = plugin.getManifest().getPluginDir();

    FileFinder finder = new FileFinder(new File(path + "/lib"));
    finder.matches(".*?info\\.xml$");
    File[] infos = finder.findRecursive();
    for (int i=0;i<infos.length;++i)
    {
      if (!infos[i].isFile() || !infos[i].canRead())
      {

Examples of de.willuhn.jameica.hbci.rmi.UmsatzTyp.matches()

    // Nicht fest zugeordnet, dann schauen wir mal, ob's eine dynamische Zuordnung gibt
    Iterator typen = cache.values().iterator();
    while (typen.hasNext())
    {
      UmsatzTyp ut = (UmsatzTyp) typen.next();
      if (ut.matches(this))
        return ut;
    }
    return null;
  }

Examples of devplugin.ProgramSearcher.matches()

    final ArrayList<Program> currentList = new ArrayList<Program>(mPrograms);

    final ProgramSearcher searcher = searchForm.createSearcher();

    for (Program p:added) {
      if (searcher.matches(p, searchForm.getFieldTypes()) && !currentList.contains(p)) {
        currentList.add(p);
      }
    }

    for (Program p:removed) {

Examples of edu.american.student.redis.hadoop.RedisBigTableKey.matches()

      Map<RedisBigTableKey, byte[]> toReturn = new HashMap<RedisBigTableKey, byte[]>();
      Set<byte[]> redisKeys = instance.hkeys(table);
      for (byte[] value : redisKeys)
      {
        RedisBigTableKey inflated = RedisBigTableKey.inflate(value);
        if (inflated.matches(k))
        {
          byte[] val = instance.hget(table, inflated.toRedisField());
          if (val != null)
          {
            toReturn.put(inflated, val);

Examples of edu.cmu.cs.fusion.constraint.operations.BeginOfMethodOp.matches()

    Method method = new Method(new Variable[] {v1, v2}, null, binding);
   
    NewObjectInstruction instr = new StubNewObjectInstruction(params, binding, new StubVariable())
    BeginOfMethodOp op = new BeginOfMethodOp(null, null, null, null, false);
   
    ConsList<Binding> map = op.matches(new EqualityOnlyTypeHierarchy(), method, instr);

    assertTrue(map == null);
  }
 
  @Test

Examples of edu.cmu.cs.fusion.constraint.operations.ConstructorOp.matches()

   
    SpecVar[] vars = new SpecVar[] {utils.getVar(0)};
    String[] vTypes = new String[] {"Bar"};
    ConstructorOp op = new ConstructorOp("Foo", vars, vTypes);
   
    ConsList<Binding> map = op.matches(new EqualityOnlyTypeHierarchy(), null, instr);

    assertTrue(map == null);
  }
 
  @Test

Examples of edu.cmu.cs.fusion.constraint.operations.EndOfMethodOp.matches()

   
    StubMethodCallInstruction instr = new StubMethodCallInstruction("mName", new StubVariable(), params, new StubMethodBinding(rBinding, vBindings), new StubVariable())
   
    EndOfMethodOp op = new EndOfMethodOp(null, null, null, null, null, false);
   
    ConsList<Binding> map = op.matches(new EqualityOnlyTypeHierarchy(), null, instr);

    assertTrue(map == null);
  }
 
  @Test

Examples of edu.cmu.cs.fusion.constraint.operations.MethodInvocationOp.matches()

    NewObjectInstruction instr = new StubNewObjectInstruction(params, new StubMethodBinding(new NamedTypeBinding("Foo"), vBindings), new StubVariable())
    SpecVar[] vars = new SpecVar[] {utils.getVar(0), utils.getVar(1)};
    String[] vTypes = new String[] {"Bar", "Baz"};
    MethodInvocationOp op = new MethodInvocationOp("testtesttest", "Foo", vars, vTypes, "void", false);
   
    ConsList<Binding> map = op.matches(new EqualityOnlyTypeHierarchy(), null, instr);

    assertTrue(map == null);
  }
 
  @Test

Examples of fitnesse.testsystems.slim.CustomComparator.matches()

        String prefix = customComparatorMatcher.group(1);
        CustomComparator customComparator = customComparatorRegistry.getCustomComparatorForPrefix(prefix);
        if (customComparator != null) {
          String expectedString = customComparatorMatcher.group(2);
          try {
            if (customComparator.matches(actual, expectedString)) {
              message = SlimTestResult.pass(expectedString + " matches " + actual);
            } else {
              message = SlimTestResult.fail(expectedString + " doesn't match " + actual);
            }
          } catch (Throwable t) {
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.