| Modifier and Type | Class and Description |
|---|---|
| public static class | AcceptReject.
Accept/reject for leaf matches. |
| public static class | AcceptReject.
Accept/reject for prefix strings. |
| public static class | AcceptReject.
Accept/reject for whole-strings matches. |
| Modifier and Type | Field and Description |
|---|---|
| protected Set | accept
Accepted items (whole-string match). |
| protected Set | acceptGlobs
Accept glob strings. |
| protected transient List | acceptPatterns
Accept regexp patterns. |
| protected List | acceptPrefixes
Accepted items (prefix match), as a sorted list. |
| protected Set | acceptPrefixesSet
Accepted items (prefix match), as a set. |
| protected Set | reject
Rejected items (whole-string match). |
| protected Set | rejectGlobs
Reject glob strings. |
| protected transient List | rejectPatterns
Reject regexp patterns. |
| protected List | rejectPrefixes
Rejected items (prefix match). |
| protected char | separatorChar
The separator character. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if there were no accept or reject criteria added.Check if the accept and reject are empty. |
| public abstract boolean | Returns: true if the string is a prefix of an accepted string.The string to test. str)Check if a string is a prefix of an accepted string. |
| public boolean | |
| public abstract void | |
| public abstract void | |
| public static String | Returns: The classfile path (including a ".class" suffix).The class name. className)Convert a class name to a classfile path. |
| public static Pattern | Returns: The Pattern created from the glob string.The glob string. glob, final boolean if true, handles simple globs: "*" matches zero or more characters (replaces "." with "\\.", "*"
with ".*", then compiles a regular expression). If false, handles filesystem-style globs: "**"
matches zero or more characters, "*" matches zero or more characters other than "/", "?" matches
one character (replaces "." with "\\.", "**" with ".*", "*" with "[^/]*", and "?" with ".", then
compiles a regular expression). simpleGlob)Convert a spec with a '*' glob character into a regular expression. |
| public abstract boolean | Returns: true if the string is accepted.The string to test. str)Check if a string is accepted. |
| public abstract boolean | Returns: true if the string is accepted and not rejected.The string to test. str)Check if a string is accepted and not rejected. |
| public abstract boolean | Returns: true if the string is rejected.The string to test. str)Check if a string is rejected. |
| public boolean | Returns: true if the requested string is specifically accepted, i.e. will not return true if the accept is empty.The string to test. str)Check if a string is specifically accepted. |
| public boolean | Returns: true if the requested string is specifically accepted and not rejected, i.e. will not return true if the accept is empty, or if the string is rejected.The string to test. str)Check if a string is specifically accepted and not rejected. |
| private static boolean | Returns: true, if successfulthe string to test str, final List<Pattern> the patterns patterns)Check if a string matches one of the patterns in the provided list. |
| public static String | Returns: The normalized package or class name.The package or class name. packageOrClassName)Remove initial and final '.' characters, if any. |
| public static String | Returns: The normalized path.The path to normalize. path)Remove initial and final '/' characters, if any. |
| public static String | Returns: The path.The package name. packageName)Convert a package name to a path. |
| public static String | Returns: The package name.The path. path)Convert a path to a package name. |
| private static void | |
| public boolean | |
| pack-priv void | |
| public String |
| accept | back to summary |
|---|---|
| protected Set<String> accept Accepted items (whole-string match). | |
| acceptGlobs | back to summary |
|---|---|
| protected Set<String> acceptGlobs Accept glob strings. (Serialized to JSON, for logging purposes.) | |
| acceptPatterns | back to summary |
|---|---|
| protected transient List<Pattern> acceptPatterns Accept regexp patterns. (Not serialized to JSON.) | |
| acceptPrefixes | back to summary |
|---|---|
| protected List<String> acceptPrefixes Accepted items (prefix match), as a sorted list. | |
| acceptPrefixesSet | back to summary |
|---|---|
| protected Set<String> acceptPrefixesSet Accepted items (prefix match), as a set. | |
| reject | back to summary |
|---|---|
| protected Set<String> reject Rejected items (whole-string match). | |
| rejectGlobs | back to summary |
|---|---|
| protected Set<String> rejectGlobs Reject glob strings. (Serialized to JSON, for logging purposes.) | |
| rejectPatterns | back to summary |
|---|---|
| protected transient List<Pattern> rejectPatterns Reject regexp patterns. (Not serialized to JSON.) | |
| rejectPrefixes | back to summary |
|---|---|
| protected List<String> rejectPrefixes Rejected items (prefix match). | |
| separatorChar | back to summary |
|---|---|
| protected char separatorChar The separator character. | |
| AcceptReject | back to summary |
|---|---|
| public AcceptReject() Deserialization constructor. | |
| AcceptReject | back to summary |
|---|---|
| public AcceptReject(final char separatorChar) Constructor for deserialization.
| |
| acceptAndRejectAreEmpty | back to summary |
|---|---|
| public boolean acceptAndRejectAreEmpty() Check if the accept and reject are empty.
| |
| acceptHasPrefix | back to summary |
|---|---|
| public abstract boolean acceptHasPrefix(final String str) Check if a string is a prefix of an accepted string.
| |
| acceptIsEmpty | back to summary |
|---|---|
| public boolean acceptIsEmpty() Check if the accept is empty.
| |
| addToAccept | back to summary |
|---|---|
| public abstract void addToAccept(final String str) Add to the accept.
| |
| addToReject | back to summary |
|---|---|
| public abstract void addToReject(final String str) Add to the reject.
| |
| classNameToClassfilePath | back to summary |
|---|---|
| public static String classNameToClassfilePath(final String className) Convert a class name to a classfile path. | |
| globToPattern | back to summary |
|---|---|
| public static Pattern globToPattern(final String glob, final boolean simpleGlob) Convert a spec with a '*' glob character into a regular expression.
| |
| isAccepted | back to summary |
|---|---|
| public abstract boolean isAccepted(final String str) Check if a string is accepted.
| |
| isAcceptedAndNotRejected | back to summary |
|---|---|
| public abstract boolean isAcceptedAndNotRejected(final String str) Check if a string is accepted and not rejected.
| |
| isRejected | back to summary |
|---|---|
| public abstract boolean isRejected(final String str) Check if a string is rejected.
| |
| isSpecificallyAccepted | back to summary |
|---|---|
| public boolean isSpecificallyAccepted(final String str) Check if a string is specifically accepted.
| |
| isSpecificallyAcceptedAndNotRejected | back to summary |
|---|---|
| public boolean isSpecificallyAcceptedAndNotRejected(final String str) Check if a string is specifically accepted and not rejected.
| |
| matchesPatternList | back to summary |
|---|---|
| private static boolean matchesPatternList(final String str, final List<Pattern> patterns) Check if a string matches one of the patterns in the provided list. | |
| normalizePackageOrClassName | back to summary |
|---|---|
| public static String normalizePackageOrClassName(final String packageOrClassName) Remove initial and final '.' characters, if any. | |
| normalizePath | back to summary |
|---|---|
| public static String normalizePath(final String path) Remove initial and final '/' characters, if any. | |
| packageNameToPath | back to summary |
|---|---|
| public static String packageNameToPath(final String packageName) Convert a package name to a path. | |
| pathToPackageName | back to summary |
|---|---|
| public static String pathToPackageName(final String path) Convert a path to a package name. | |
| quoteList | back to summary |
|---|---|
| private static void quoteList(final Collection<String> coll, final StringBuilder buf) Quote list.
| |
| rejectIsEmpty | back to summary |
|---|---|
| public boolean rejectIsEmpty() Check if the reject is empty.
| |
| sortPrefixes | back to summary |
|---|---|
| pack-priv void sortPrefixes() Need to sort prefixes to ensure correct accept/reject evaluation (see Issue #167). | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Access | Constructor and Description |
|---|---|
| public | |
| public | AcceptRejectLeafname(final char
the separator char separatorChar)Instantiates a new accept/reject for leaf matches. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: (does not return, throws exception)the string to test str)Overrides nonapi. Prefix tests are invalid for jar leafnames -- throws |
| public void | addToAccept(final String
the string to accept str)Overrides nonapi. Add to the accept. |
| public void | addToReject(final String
the string to reject str)Overrides nonapi. Add to the reject. |
| public boolean | Returns: true if the string is acceptedthe string to test str)Overrides nonapi. Check if the requested string is accepted. |
| public boolean | Returns: true if the string is accepted and not rejectedthe string to test str)Overrides nonapi. Check if the requested string is accepted and not rejected. |
| public boolean | Returns: true if the string is rejectedthe string to test str)Overrides nonapi. Check if the requested string is rejected. |
| AcceptRejectLeafname | back to summary |
|---|---|
| public AcceptRejectLeafname() Deserialization constructor. | |
| AcceptRejectLeafname | back to summary |
|---|---|
| public AcceptRejectLeafname(final char separatorChar) Instantiates a new accept/reject for leaf matches.
| |
| acceptHasPrefix | back to summary |
|---|---|
| public boolean acceptHasPrefix(final String str) Overrides nonapi. Prefix tests are invalid for jar leafnames -- throws
| |
| addToAccept | back to summary |
|---|---|
| public void addToAccept(final String str) Overrides nonapi. Add to the accept. | |
| addToReject | back to summary |
|---|---|
| public void addToReject(final String str) Overrides nonapi. Add to the reject. | |
| isAccepted | back to summary |
|---|---|
| public boolean isAccepted(final String str) Overrides nonapi. Check if the requested string is accepted. | |
| isAcceptedAndNotRejected | back to summary |
|---|---|
| public boolean isAcceptedAndNotRejected(final String str) Overrides nonapi. Check if the requested string is accepted and not rejected. | |
| isRejected | back to summary |
|---|---|
| public boolean isRejected(final String str) Overrides nonapi. Check if the requested string is rejected. | |
| Access | Constructor and Description |
|---|---|
| public | |
| public | AcceptRejectPrefix(final char
the separator char separatorChar)Instantiate a new accept/reject for prefix strings. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: (does not return, throws exception)the string to test str)Implements abstract nonapi. Prefix-of-prefix is invalid -- throws |
| public void | addToAccept(final String
the string to accept str)Implements abstract nonapi. Add to the accept. |
| public void | addToReject(final String
the string to reject str)Implements abstract nonapi. Add to the reject. |
| public boolean | Returns: true if string is acceptedthe string to test str)Implements abstract nonapi. Check if the requested string has an accepted prefix. |
| public boolean | Returns: true if string is accepted and not rejectedthe string to test str)Implements abstract nonapi. Check if the requested string has an accepted/non-rejected prefix. |
| public boolean | Returns: true if the string has a rejected prefixthe string to test str)Implements abstract nonapi. Check if the requested string has a rejected prefix. |
| AcceptRejectPrefix | back to summary |
|---|---|
| public AcceptRejectPrefix() Deserialization constructor. | |
| AcceptRejectPrefix | back to summary |
|---|---|
| public AcceptRejectPrefix(final char separatorChar) Instantiate a new accept/reject for prefix strings.
| |
| acceptHasPrefix | back to summary |
|---|---|
| public boolean acceptHasPrefix(final String str) Implements abstract nonapi. Prefix-of-prefix is invalid -- throws
| |
| addToAccept | back to summary |
|---|---|
| public void addToAccept(final String str) Implements abstract nonapi. Add to the accept. | |
| addToReject | back to summary |
|---|---|
| public void addToReject(final String str) Implements abstract nonapi. Add to the reject. | |
| isAccepted | back to summary |
|---|---|
| public boolean isAccepted(final String str) Implements abstract nonapi. Check if the requested string has an accepted prefix. | |
| isAcceptedAndNotRejected | back to summary |
|---|---|
| public boolean isAcceptedAndNotRejected(final String str) Implements abstract nonapi. Check if the requested string has an accepted/non-rejected prefix. | |
| isRejected | back to summary |
|---|---|
| public boolean isRejected(final String str) Implements abstract nonapi. Check if the requested string has a rejected prefix. | |
| Access | Constructor and Description |
|---|---|
| public | |
| public | AcceptRejectWholeString(final char
the separator char separatorChar)Instantiate a new accept/reject for whole-string matches. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the string is a prefix of an accepted stringthe string to test str)Implements abstract nonapi. Check if the requested string is a prefix of an accepted string. |
| public void | addToAccept(final String
the string to accept str)Implements abstract nonapi. Add to the accept. |
| public void | addToReject(final String
the string to reject str)Implements abstract nonapi. Add to the reject. |
| public boolean | Returns: true if the string is acceptedthe string to test str)Implements abstract nonapi. Check if the requested string is accepted. |
| public boolean | Returns: true if the string is accepted and not rejectedthe string to test str)Implements abstract nonapi. Check if the requested string is accepted and not rejected. |
| public boolean | Returns: true if the string is rejectedthe string to test str)Implements abstract nonapi. Check if the requested string is rejected. |
| AcceptRejectWholeString | back to summary |
|---|---|
| public AcceptRejectWholeString() Deserialization constructor. | |
| AcceptRejectWholeString | back to summary |
|---|---|
| public AcceptRejectWholeString(final char separatorChar) Instantiate a new accept/reject for whole-string matches.
| |
| acceptHasPrefix | back to summary |
|---|---|
| public boolean acceptHasPrefix(final String str) Implements abstract nonapi. Check if the requested string is a prefix of an accepted string. | |
| addToAccept | back to summary |
|---|---|
| public void addToAccept(final String str) Implements abstract nonapi. Add to the accept. | |
| addToReject | back to summary |
|---|---|
| public void addToReject(final String str) Implements abstract nonapi. Add to the reject. | |
| isAccepted | back to summary |
|---|---|
| public boolean isAccepted(final String str) Implements abstract nonapi. Check if the requested string is accepted. | |
| isAcceptedAndNotRejected | back to summary |
|---|---|
| public boolean isAcceptedAndNotRejected(final String str) Implements abstract nonapi. Check if the requested string is accepted and not rejected. | |
| isRejected | back to summary |
|---|---|
| public boolean isRejected(final String str) Implements abstract nonapi. Check if the requested string is rejected. | |