congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
NameMatcher.matches
Code IndexAdd Tabnine to your IDE (free)

How to use
matches
method
in
org.eclipse.jgit.ignore.internal.NameMatcher

Best Java code snippets using org.eclipse.jgit.ignore.internal.NameMatcher.matches (Showing top 4 results out of 315)

origin: org.eclipse.jgit/org.eclipse.jgit

  match = matches(path, start, stop);
} else {
      && matches(path, lastSlash + 1, stop);
  end = stop;
if (end > start && matches(path, start, end)) {
origin: gradle.plugin.com.cherryperry.gfe/gradle-file-encrypt

  match = matches(path, start, stop);
} else {
      && matches(path, lastSlash + 1, stop);
  end = stop;
if (end > start && matches(path, start, end)) {
origin: berlam/github-bucket

  match = matches(path, start, stop);
} else {
      && matches(path, lastSlash + 1, stop);
  end = stop;
if (end > start && matches(path, start, end)) {
origin: sonia.jgit/org.eclipse.jgit

public boolean matches(String path, boolean assumeDirectory) {
  int end = 0;
  int firstChar = 0;
  do {
    firstChar = getFirstNotSlash(path, end);
    end = getFirstSlash(path, firstChar);
    boolean match = matches(path, firstChar, end, assumeDirectory);
    if (match)
      // make sure the directory matches: either if we are done with
      // segment and there is next one, or if the directory is assumed
      return !dirOnly ? true : (end > 0 && end != path.length())
          || assumeDirectory;
  } while (!beginning && end != path.length());
  return false;
}
org.eclipse.jgit.ignore.internalNameMatchermatches

Javadoc

Popular methods of NameMatcher

  • <init>
  • getFirstNotSlash
  • getFirstSlash

Popular in Java

  • Creating JSON documents from java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • notifyDataSetChanged (ArrayAdapter)
  • getSharedPreferences (Context)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Permission (java.security)
    Legacy security code; do not use.
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JPanel (javax.swing)
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now