Codota Logo
LeadingAsteriskMatcher.<init>
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
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
    • setScale (BigDecimal)
    • getResourceAsStream (ClassLoader)
      Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
    • getSystemService (Context)
    • URL (java.net)
      A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
    • DecimalFormat (java.text)
      DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
    • TimeZone (java.util)
      TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
    • Executor (java.util.concurrent)
      An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
    • Logger (org.apache.log4j)
      This is the central class in the log4j package. Most logging operations, except configuration, are d
    • Option (scala)
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now