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

public static class AcceptReject.AcceptRejectWholeString extends AcceptReject
Accept/reject for whole-strings matches.
  • 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

      public void addToAccept(String str)
      Add to the accept.
      Specified by:
      addToAccept in class AcceptReject
      Parameters:
      str - the string to accept
    • addToReject

      public void addToReject(String str)
      Add to the reject.
      Specified by:
      addToReject in class AcceptReject
      Parameters:
      str - the string to reject
    • isAcceptedAndNotRejected

      public boolean isAcceptedAndNotRejected(String str)
      Check if the requested string is accepted and not rejected.
      Specified by:
      isAcceptedAndNotRejected in class AcceptReject
      Parameters:
      str - the string to test
      Returns:
      true if the string is accepted and not rejected
    • isAccepted

      public boolean isAccepted(String str)
      Check if the requested string is accepted.
      Specified by:
      isAccepted in class AcceptReject
      Parameters:
      str - the string to test
      Returns:
      true if the string is accepted
    • acceptHasPrefix

      public boolean acceptHasPrefix(String str)
      Check if the requested string is a prefix of an accepted string.
      Specified by:
      acceptHasPrefix in class AcceptReject
      Parameters:
      str - the string to test
      Returns:
      true if the string is a prefix of an accepted string
    • isRejected

      public boolean isRejected(String str)
      Check if the requested string is rejected.
      Specified by:
      isRejected in class AcceptReject
      Parameters:
      str - the string to test
      Returns:
      true if the string is rejected