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

How to use
org.eclipse.jgit.ignore.internal.LeadingAsteriskMatcher
constructor

Best Java code snippets using org.eclipse.jgit.ignore.internal.LeadingAsteriskMatcher.<init> (Showing top 4 results out of 315)

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

private static IMatcher createNameMatcher0(String segment,
    Character pathSeparator, boolean dirOnly, boolean lastSegment)
    throws InvalidPatternException {
  // check if we see /** or ** segments => double star pattern
  if (WildMatcher.WILDMATCH.equals(segment)
      || WildMatcher.WILDMATCH2.equals(segment))
    return dirOnly && lastSegment ? WILD_ONLY_DIRECTORY
        : WILD_NO_DIRECTORY;
  PatternState state = checkWildCards(segment);
  switch (state) {
  case LEADING_ASTERISK_ONLY:
    return new LeadingAsteriskMatcher(segment, pathSeparator, dirOnly);
  case TRAILING_ASTERISK_ONLY:
    return new TrailingAsteriskMatcher(segment, pathSeparator, dirOnly);
  case COMPLEX:
    return new WildCardMatcher(segment, pathSeparator, dirOnly);
  default:
    return new NameMatcher(segment, pathSeparator, dirOnly, true);
  }
}
origin: berlam/github-bucket

private static IMatcher createNameMatcher0(String segment,
    Character pathSeparator, boolean dirOnly, boolean lastSegment)
    throws InvalidPatternException {
  // check if we see /** or ** segments => double star pattern
  if (WildMatcher.WILDMATCH.equals(segment)
      || WildMatcher.WILDMATCH2.equals(segment))
    return dirOnly && lastSegment ? WILD_ONLY_DIRECTORY
        : WILD_NO_DIRECTORY;
  PatternState state = checkWildCards(segment);
  switch (state) {
  case LEADING_ASTERISK_ONLY:
    return new LeadingAsteriskMatcher(segment, pathSeparator, dirOnly);
  case TRAILING_ASTERISK_ONLY:
    return new TrailingAsteriskMatcher(segment, pathSeparator, dirOnly);
  case COMPLEX:
    return new WildCardMatcher(segment, pathSeparator, dirOnly);
  default:
    return new NameMatcher(segment, pathSeparator, dirOnly, true);
  }
}
origin: sonia.jgit/org.eclipse.jgit

private static IMatcher createNameMatcher0(String segment,
    Character pathSeparator, boolean dirOnly)
    throws InvalidPatternException {
  // check if we see /** or ** segments => double star pattern
  if (WildMatcher.WILDMATCH.equals(segment)
      || WildMatcher.WILDMATCH2.equals(segment))
    return WILD;
  PatternState state = checkWildCards(segment);
  switch (state) {
  case LEADING_ASTERISK_ONLY:
    return new LeadingAsteriskMatcher(segment, pathSeparator, dirOnly);
  case TRAILING_ASTERISK_ONLY:
    return new TrailingAsteriskMatcher(segment, pathSeparator, dirOnly);
  case COMPLEX:
    return new WildCardMatcher(segment, pathSeparator, dirOnly);
  default:
    return new NameMatcher(segment, pathSeparator, dirOnly, true);
  }
}
origin: gradle.plugin.com.cherryperry.gfe/gradle-file-encrypt

private static IMatcher createNameMatcher0(String segment,
                      Character pathSeparator, boolean dirOnly, boolean lastSegment)
    throws InvalidPatternException {
  // check if we see /** or ** segments => double star pattern
  if (WildMatcher.WILDMATCH.equals(segment)
      || WildMatcher.WILDMATCH2.equals(segment))
    return dirOnly && lastSegment ? WILD_ONLY_DIRECTORY
        : WILD_NO_DIRECTORY;
  PatternState state = checkWildCards(segment);
  switch (state) {
    case LEADING_ASTERISK_ONLY:
      return new LeadingAsteriskMatcher(segment, pathSeparator, dirOnly);
    case TRAILING_ASTERISK_ONLY:
      return new TrailingAsteriskMatcher(segment, pathSeparator, dirOnly);
    case COMPLEX:
      return new WildCardMatcher(segment, pathSeparator, dirOnly);
    default:
      return new NameMatcher(segment, pathSeparator, dirOnly, true);
  }
}
org.eclipse.jgit.ignore.internalLeadingAsteriskMatcher<init>

Popular methods of LeadingAsteriskMatcher

    Popular in Java

    • Making http post requests using okhttp
    • getSharedPreferences (Context)
    • runOnUiThread (Activity)
    • getSupportFragmentManager (FragmentActivity)
    • Color (java.awt)
      The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
    • Rectangle (java.awt)
      A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
    • InetAddress (java.net)
      An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
    • Vector (java.util)
      Vector is an implementation of List, backed by an array and synchronized. All optional operations in
    • IsNull (org.hamcrest.core)
      Is the value null?
    • Runner (org.openjdk.jmh.runner)
    • Top 17 Plugins for Android Studio
    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