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

    • Running tasks concurrently on multiple threads
    • setRequestProperty (URLConnection)
    • runOnUiThread (Activity)
    • onCreateOptionsMenu (Activity)
    • Table (com.google.common.collect)
      A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
    • BorderLayout (java.awt)
      A border layout lays out a container, arranging and resizing its components to fit in five regions:
    • EOFException (java.io)
      Thrown when a program encounters the end of a file or stream during an input operation.
    • BlockingQueue (java.util.concurrent)
      A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
    • Annotation (javassist.bytecode.annotation)
      The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
    • Loader (org.hibernate.loader)
      Abstract superclass of object loading (and querying) strategies. This class implements useful common
    • Best IntelliJ plugins
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

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