Examples of matches()


Examples of org.dom4j.rule.Rule.matches()

        {
            Map m = (Map) xpathList.get(i);

            Rule xpathrule = (Rule) m.get("rule");

            if( xpathrule.matches( dom4jnode ) )
            {
                sn = (SimpleNode) m.get( "ast" );
                //System.out.println("using : " + (String) m.get("xpath") );

                break;

Examples of org.drools.core.util.index.RightTupleList.matches()

                RightTupleList[] tab = table;
                int index = hashCode & (tab.length - 1);
                RightTupleList first = tab[index];
                RightTupleList e = first;
                while ( e != null ) {
                    if ( e.matches( object,
                                    hashCode ) ) {
                        break;
                    }
                    e = (RightTupleList) e.next;
                }

Examples of org.drools.util.TupleIndexHashTable.FieldIndexEntry.matches()

        final int index = indexOf( hashCode,
                                   this.table.length );

        FieldIndexEntry current = (FieldIndexEntry) this.table[index];
        while ( current != null ) {
            if ( current.matches( object,
                                  hashCode ) ) {
                return true;
            }
            current = (FieldIndexEntry) current.next;
        }

Examples of org.easymock.IArgumentMatcher.matches()

    }

    @Test public void
    adaptsHamcrestMatcherToEasyMockArgumentsMatcher() {
        IArgumentMatcher easyMockMatcher = new EasyMock2Adapter(equalTo("expected"));
        assertTrue("Should have matched", easyMockMatcher.matches("expected"));
        assertFalse("Should not have matched", easyMockMatcher.matches("unexpected"));
    }

    @Test public void
    delegatesDescriptionToUnderlyingMatcher() {

Examples of org.easymock.internal.EqualsMatcher.matches()

            {
                if (firstCall)
                {
                    firstCall = false;
                    EqualsMatcher matcher = new EqualsMatcher();
                    return matcher.matches(arg0, arg1);
                }

                return arg1[0].getClass().equals(StandardMBean.class);
            }

Examples of org.eclipse.core.commands.operations.IUndoContext.matches()

    // in our context.
    if (uiInfo != null) {
      IUndoContext originatingContext = (IUndoContext) Util.getAdapter(uiInfo,
          IUndoContext.class);
      if (originatingContext != null
          && !(originatingContext.matches(context))) {
        return false;
      }
    }

    return true;

Examples of org.eclipse.core.runtime.IStatus.matches()

     */
    @Override
    protected IStatus containerChanged() {
        IStatus status = super.containerChanged();
        IPackageFragmentRoot root = getPackageFragmentRoot();
        if ((fTypeKind == ANNOTATION_TYPE || fTypeKind == ENUM_TYPE) && !status.matches(IStatus.ERROR)) {
            if (root != null && !JavaModelUtil.is50OrHigher(root.getJavaProject())) {
                // error as createType will fail otherwise (bug 96928)
                return new StatusInfo(IStatus.ERROR, Messages.format(NewWizardMessages.NewTypeWizardPage_warning_NotJDKCompliant, BasicElementLabels.getJavaElementName(root.getJavaProject().getElementName())));
            }
            if (fTypeKind == ENUM_TYPE) {

Examples of org.eclipse.core.runtime.preferences.IPreferencesService.matches()

    int count = 0;
    try {
      for (int i = 0; i < elements.length; i++) {
        PreferenceTransferElement element = elements[i];
        filters[0] = element.getFilter();
        matches = service.matches((IEclipsePreferences) service
            .getRootNode().node("instance"), filters); //$NON-NLS-1$
        if (matches.length > 0) {
          returnElements[count++] = element;
        }
      }

Examples of org.eclipse.emf.transaction.NotificationFilter.matches()

      public boolean isAdapterForType(Object type) {
        return false;
      }

      public void notifyChanged(Notification notification) {
        if (diagramResourceModifiedFilter.matches(notification)) {
          Object value = notification.getNewValue();
          if (value instanceof Resource) {
            ((Resource) value).setTrackingModification(true);
          }
        }

Examples of org.eclipse.jface.text.templates.Template.matches()

        context.getContextType().validate(template.getPattern());
      } catch (TemplateException e) {
        continue;
      }
      if (template.getName().startsWith(prefix) &&
          template.matches(prefix, context.getContextType().getId()))
        matches.add(createProposal(template, context, (IRegion) region, getRelevance(template, prefix)));
    }

    return (ICompletionProposal[]) matches.toArray(new ICompletionProposal[matches.size()]);
  }
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.