| Access | Constructor and Description |
|---|---|
| protected | PatternMatchRevFilter(String
text of the pattern. Callers may want to surround their
pattern with ".*" on either end to allow matching in the
middle of the string. pattern, final boolean should .* be wrapped around the pattern of ^ and $ are
missing? Most users will want this set. innerString, final boolean should rawEncoding, final int forceToRaw(String) be applied to the pattern
before compiling it?flags from flags)java. to control how
matching performs.Construct a new pattern matching filter. |
| Modifier and Type | Method and Description |
|---|---|
| protected static final String | Returns: same pattern, but re-encoded to match our funny raw UTF-8 character sequenceorg..original pattern string supplied by the user or the
application. patternText)Encode a string pattern for faster matching on byte arrays. |
| public boolean | include(RevWalk
the active walker this filter is being invoked from within. walker, RevCommit the commit currently being tested. The commit has been parsed
and its body is available for inspection only if the filter
returns true from cmit)requiresCommitBody().Implements abstract org. Determine if the supplied commit should be included in results. |
| public String | Returns: the pattern this filter is applying to candidate strings.Get the pattern this filter uses. |
| public boolean | requiresCommitBody()
Overrides org. Whether the filter needs the commit body to be parsed. |
| protected abstract CharSequence | |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| compiledPattern | back to summary |
|---|---|
| private final Matcher compiledPattern | |
| patternText | back to summary |
|---|---|
| private final String patternText | |
| PatternMatchRevFilter | back to summary |
|---|---|
| protected PatternMatchRevFilter(String pattern, final boolean innerString, final boolean rawEncoding, final int flags) Construct a new pattern matching filter.
| |
| forceToRaw | back to summary |
|---|---|
| protected static final String forceToRaw(String patternText) Encode a string pattern for faster matching on byte arrays. Force the characters to our funny UTF-8 only convention that we use on raw buffers. This avoids needing to perform character set decodes on the individual commit buffers.
| |
| include | back to summary |
|---|---|
| public boolean include(RevWalk walker, RevCommit cmit) throws MissingObjectException, IncorrectObjectTypeException, IOException Implements abstract org. Doc from org. Determine if the supplied commit should be included in results.
| |
| pattern | back to summary |
|---|---|
| public String pattern() Get the pattern this filter uses.
| |
| requiresCommitBody | back to summary |
|---|---|
| public boolean requiresCommitBody() Overrides org. Doc from org. Whether the filter needs the commit body to be parsed.
| |
| text | back to summary |
|---|---|
| protected abstract CharSequence text(RevCommit cmit) Obtain the raw text to match against.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |