Examples of match()


Examples of org.eclipse.jetty.http.PathMap.match()

    PathMap map = new PathMap();
    map.put( "/webhdfs", "/webhdfs" );
    map.put( "/webhdfs/dfshealth.jsp", "/webhdfs/dfshealth.jsp" );
    map.put( "/webhdfs/*", "/webhdfs/*" );

    assertThat( (String)map.match( "/webhdfs" ), equalTo( "/webhdfs" ) );
    assertThat( (String)map.match( "/webhdfs/dfshealth.jsp" ), equalTo( "/webhdfs/dfshealth.jsp" ) );
    assertThat( (String)map.match( "/webhdfs/v1" ), equalTo( "/webhdfs/*" ) );
  }

}

Examples of org.eclipse.jetty.util.PatternMatcher.match()

                            i++;
                        }
                    }
                }

                containerJarNameMatcher.match(containerPattern, containerUris, false);
            }
        }
       
        //Apply ordering to WEB-INF/lib jars
        PatternMatcher webInfJarNameMatcher = new PatternMatcher ()

Examples of org.eclipse.jface.text.source.DefaultCharacterPairMatcher.match()

      IDocument doc = editor.getDocumentProvider().getDocument(editor.getEditorInput());
      Object obj = editor.getAdapter(Control.class);
      if (obj != null && obj instanceof StyledText) {
        StyledText st = (StyledText)obj;
        int startOffset = st.getCaretOffset();
        IRegion r = matcher.match(doc, startOffset);
        if (r != null) {
          int ro = r.getOffset();
          int low = ro + 1;
          int high = ro + r.getLength();
          int pairOffset = low == startOffset?high:low;

Examples of org.eclipse.jface.text.source.ICharacterPairMatcher.match()

      sourceViewer.getTextWidget().getDisplay().beep();
      return;
    }

    int sourceCaretOffset = selection.getOffset() + selection.getLength();
    IRegion region = matcher.match(document, sourceCaretOffset);
    if (region == null) {
      setStatusLineErrorMessage(SSEUIMessages.GotoMatchingBracket_error_noMatchingBracket);
      sourceViewer.getTextWidget().getDisplay().beep();
      return;
    }

Examples of org.eclipse.ui.internal.misc.StringMatcher.match()

            // should not be taken in consideration when matching with a pattern
            String prefix = DefaultTabItem.DIRTY_PREFIX;
            if (matchName.startsWith(prefix)) {
        matchName = matchName.substring(prefix.length());
      }
            return matchName != null && matcher.match(matchName);
        }
    }

    private static class BorderFillLayout extends Layout {

Examples of org.eclipse.wst.css.core.internal.provisional.document.ICSSSelector.match()

      int maxSpecificity = -1;
      for (int iSelector = 0; iSelector < nSelectors; iSelector++) {
        // Check each Selector Lists
        ICSSSelector selector = list.getSelector(iSelector);
        int specificity = selector.getSpecificity();
        if (maxSpecificity < specificity && selector.match(element, pseudoName)) {
          maxSpecificity = specificity;
        }
      }
      if (maxSpecificity >= 0) {
        // apply this style to the element

Examples of org.eclipse.wst.sse.ui.internal.filter.StringMatcher.match()

      return true;
    TreeViewer treeViewer = (TreeViewer) viewer;

    String matchName = ((ILabelProvider) treeViewer.getLabelProvider()).getText(element);
    matchName = TextProcessor.deprocess(matchName);
    if (matchName != null && matcher.match(matchName))
      return true;

    return hasUnfilteredChild(treeViewer, element);
  }

Examples of org.exist.storage.NativeValueIndex.match()

                    if (LOG.isTraceEnabled())
                        {LOG.trace("Using range index for fn:matches expression: " + pattern);}
                    if (indexScan)
                        {result = index.matchAll(context.getWatchDog(), docs, nodes, NodeSet.ANCESTOR, pattern, DBBroker.MATCH_REGEXP, flags, caseSensitive);}
                    else
                        {result = index.match(context.getWatchDog(), docs, nodes, NodeSet.ANCESTOR, pattern, contextQName, DBBroker.MATCH_REGEXP, flags, caseSensitive);}
                } catch (final EXistException e) {
                    throw new XPathException(this, e);
                }
            }
        } else {

Examples of org.exist.storage.NodePath.match()

        if (relPath == null) {
            return parentPath.match(other);
        } else {
            NodePath absPath = new NodePath(parentPath);
            absPath.append(relPath);
            return absPath.match(other);
        }
    }

    public int whitespaceTreatment() {
        return wsTreatment;

Examples of org.exist.xquery.Expression.match()

      return false;
   
    boolean matched = false;
    for (int i = match.getLength()-1; i >= 0; i--) {
      Expression expr = match.getExpression(i);
      if (!expr.match(contextSequence, item))
        return false;
      if (expr instanceof LocationStep) {
       
        item = (Item)((NodeValue)item).getNode().getParentNode();
      }
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.