Class AcceptReject.AcceptRejectWholeString
java.lang.Object
nonapi.io.github.classgraph.scanspec.AcceptReject
nonapi.io.github.classgraph.scanspec.AcceptReject.AcceptRejectWholeString
- Direct Known Subclasses:
AcceptReject.AcceptRejectLeafname
- Enclosing class:
AcceptReject
Accept/reject for whole-strings matches.
-
Nested Class Summary
Nested classes/interfaces inherited from class nonapi.io.github.classgraph.scanspec.AcceptReject
AcceptReject.AcceptRejectLeafname, AcceptReject.AcceptRejectPrefix, AcceptReject.AcceptRejectWholeString -
Field Summary
Fields inherited from class nonapi.io.github.classgraph.scanspec.AcceptReject
accept, acceptGlobs, acceptPatterns, acceptPrefixes, acceptPrefixesSet, reject, rejectGlobs, rejectPatterns, rejectPrefixes, separatorChar -
Constructor Summary
ConstructorsConstructorDescriptionDeserialization constructor.AcceptRejectWholeString(char separatorChar) Instantiate a new accept/reject for whole-string matches. -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptHasPrefix(String str) Check if the requested string is a prefix of an accepted string.voidaddToAccept(String str) Add to the accept.voidaddToReject(String str) Add to the reject.booleanisAccepted(String str) Check if the requested string is accepted.booleanCheck if the requested string is accepted and not rejected.booleanisRejected(String str) Check if the requested string is rejected.Methods inherited from class nonapi.io.github.classgraph.scanspec.AcceptReject
acceptAndRejectAreEmpty, acceptIsEmpty, classNameToClassfilePath, globToPattern, isSpecificallyAccepted, isSpecificallyAcceptedAndNotRejected, normalizePackageOrClassName, normalizePath, packageNameToPath, pathToPackageName, rejectIsEmpty, sortPrefixes, toString
-
Constructor Details
-
AcceptRejectWholeString
public AcceptRejectWholeString()Deserialization constructor. -
AcceptRejectWholeString
public AcceptRejectWholeString(char separatorChar) Instantiate a new accept/reject for whole-string matches.- Parameters:
separatorChar- the separator char
-
-
Method Details
-
addToAccept
Add to the accept.- Specified by:
addToAcceptin classAcceptReject- Parameters:
str- the string to accept
-
addToReject
Add to the reject.- Specified by:
addToRejectin classAcceptReject- Parameters:
str- the string to reject
-
isAcceptedAndNotRejected
Check if the requested string is accepted and not rejected.- Specified by:
isAcceptedAndNotRejectedin classAcceptReject- Parameters:
str- the string to test- Returns:
- true if the string is accepted and not rejected
-
isAccepted
Check if the requested string is accepted.- Specified by:
isAcceptedin classAcceptReject- Parameters:
str- the string to test- Returns:
- true if the string is accepted
-
acceptHasPrefix
Check if the requested string is a prefix of an accepted string.- Specified by:
acceptHasPrefixin classAcceptReject- Parameters:
str- the string to test- Returns:
- true if the string is a prefix of an accepted string
-
isRejected
Check if the requested string is rejected.- Specified by:
isRejectedin classAcceptReject- Parameters:
str- the string to test- Returns:
- true if the string is rejected
-