Class AcceptReject.AcceptRejectLeafname
- java.lang.Object
-
- nonapi.io.github.classgraph.scanspec.AcceptReject
-
- nonapi.io.github.classgraph.scanspec.AcceptReject.AcceptRejectWholeString
-
- nonapi.io.github.classgraph.scanspec.AcceptReject.AcceptRejectLeafname
-
- Enclosing class:
- AcceptReject
public static class AcceptReject.AcceptRejectLeafname extends AcceptReject.AcceptRejectWholeString
Accept/reject for leaf 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
Constructors Constructor Description AcceptRejectLeafname()Deserialization constructor.AcceptRejectLeafname(char separatorChar)Instantiates a new accept/reject for leaf matches.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptHasPrefix(java.lang.String str)Prefix tests are invalid for jar leafnames -- throwsIllegalArgumentException.voidaddToAccept(java.lang.String str)Add to the accept.voidaddToReject(java.lang.String str)Add to the reject.booleanisAccepted(java.lang.String str)Check if the requested string is accepted.booleanisAcceptedAndNotRejected(java.lang.String str)Check if the requested string is accepted and not rejected.booleanisRejected(java.lang.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
-
-
-
-
Method Detail
-
addToAccept
public void addToAccept(java.lang.String str)
Add to the accept.- Overrides:
addToAcceptin classAcceptReject.AcceptRejectWholeString- Parameters:
str- the string to accept
-
addToReject
public void addToReject(java.lang.String str)
Add to the reject.- Overrides:
addToRejectin classAcceptReject.AcceptRejectWholeString- Parameters:
str- the string to reject
-
isAcceptedAndNotRejected
public boolean isAcceptedAndNotRejected(java.lang.String str)
Check if the requested string is accepted and not rejected.- Overrides:
isAcceptedAndNotRejectedin classAcceptReject.AcceptRejectWholeString- Parameters:
str- the string to test- Returns:
- true if the string is accepted and not rejected
-
isAccepted
public boolean isAccepted(java.lang.String str)
Check if the requested string is accepted.- Overrides:
isAcceptedin classAcceptReject.AcceptRejectWholeString- Parameters:
str- the string to test- Returns:
- true if the string is accepted
-
acceptHasPrefix
public boolean acceptHasPrefix(java.lang.String str)
Prefix tests are invalid for jar leafnames -- throwsIllegalArgumentException.- Overrides:
acceptHasPrefixin classAcceptReject.AcceptRejectWholeString- Parameters:
str- the string to test- Returns:
- (does not return, throws exception)
- Throws:
java.lang.IllegalArgumentException- always
-
isRejected
public boolean isRejected(java.lang.String str)
Check if the requested string is rejected.- Overrides:
isRejectedin classAcceptReject.AcceptRejectWholeString- Parameters:
str- the string to test- Returns:
- true if the string is rejected
-
-