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

How to use
PatternMatchRevFilter
in
org.eclipse.jgit.revwalk.filter

Best Java code snippets using org.eclipse.jgit.revwalk.filter.PatternMatchRevFilter (Showing top 8 results out of 315)

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

    pattern = pattern + ".*"; //$NON-NLS-1$
final String p = rawEncoding ? forceToRaw(pattern) : pattern;
compiledPattern = Pattern.compile(p, flags).matcher(""); //$NON-NLS-1$
origin: org.eclipse.jgit/org.eclipse.jgit

/** {@inheritDoc} */
@Override
public boolean include(RevWalk walker, RevCommit cmit)
    throws MissingObjectException, IncorrectObjectTypeException,
    IOException {
  return compiledPattern.reset(text(cmit)).matches();
}
origin: berlam/github-bucket

/** {@inheritDoc} */
@Override
public boolean include(RevWalk walker, RevCommit cmit)
    throws MissingObjectException, IncorrectObjectTypeException,
    IOException {
  return compiledPattern.reset(text(cmit)).matches();
}
origin: sonia.jgit/org.eclipse.jgit

/**
 * Construct a new pattern matching filter.
 *
 * @param pattern
 *            text of the pattern. Callers may want to surround their
 *            pattern with ".*" on either end to allow matching in the
 *            middle of the string.
 * @param innerString
 *            should .* be wrapped around the pattern of ^ and $ are
 *            missing? Most users will want this set.
 * @param rawEncoding
 *            should {@link #forceToRaw(String)} be applied to the pattern
 *            before compiling it?
 * @param flags
 *            flags from {@link Pattern} to control how matching performs.
 */
protected PatternMatchRevFilter(String pattern, final boolean innerString,
    final boolean rawEncoding, final int flags) {
  if (pattern.length() == 0)
    throw new IllegalArgumentException(JGitText.get().cannotMatchOnEmptyString);
  patternText = pattern;
  if (innerString) {
    if (!pattern.startsWith("^") && !pattern.startsWith(".*")) //$NON-NLS-1$ //$NON-NLS-2$
      pattern = ".*" + pattern; //$NON-NLS-1$
    if (!pattern.endsWith("$") && !pattern.endsWith(".*")) //$NON-NLS-1$ //$NON-NLS-2$
      pattern = pattern + ".*"; //$NON-NLS-1$
  }
  final String p = rawEncoding ? forceToRaw(pattern) : pattern;
  compiledPattern = Pattern.compile(p, flags).matcher(""); //$NON-NLS-1$
}
origin: sonia.jgit/org.eclipse.jgit

@Override
public boolean include(final RevWalk walker, final RevCommit cmit)
    throws MissingObjectException, IncorrectObjectTypeException,
    IOException {
  return compiledPattern.reset(text(cmit)).matches();
}
origin: theonedev/onedev

    pattern = pattern + ".*"; //$NON-NLS-1$
final String p = rawEncoding ? forceToRaw(pattern) : pattern;
compiledPattern = Pattern.compile(p, flags).matcher(""); //$NON-NLS-1$
origin: theonedev/onedev

/** {@inheritDoc} */
@Override
public boolean include(RevWalk walker, RevCommit cmit)
    throws MissingObjectException, IncorrectObjectTypeException,
    IOException {
  return compiledPattern.reset(text(cmit)).matches();
}
origin: berlam/github-bucket

    pattern = pattern + ".*"; //$NON-NLS-1$
final String p = rawEncoding ? forceToRaw(pattern) : pattern;
compiledPattern = Pattern.compile(p, flags).matcher(""); //$NON-NLS-1$
org.eclipse.jgit.revwalk.filterPatternMatchRevFilter

Javadoc

Abstract filter that searches text using extended regular expressions.

Most used methods

  • forceToRaw
    Encode a string pattern for faster matching on byte arrays. Force the characters to our funny UTF-8
  • text
    Obtain the raw text to match against.

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSystemService (Context)
  • requestLocationUpdates (LocationManager)
  • getContentResolver (Context)
  • Menu (java.awt)
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Reference (javax.naming)
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JComboBox (javax.swing)
  • 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