Class DetectorOptions

    • Field Detail

      • format

        private String format
        Format of the regular expression to check for.
      • message

        private String message
        The message to report on detection. If blank, then use the format.
      • minimum

        private int minimum
        Minimum number of times regular expression should occur in a file.
      • maximum

        private int maximum
        Maximum number of times regular expression should occur in a file.
      • ignoreCase

        private boolean ignoreCase
        Whether to ignore case when matching.
      • pattern

        private Pattern pattern
        Pattern created from format. Lazily initialized.
    • Method Detail

      • getFormat

        public String getFormat()
        Format of the regular expression.
        Returns:
        format of the regular expression.
      • getMessage

        public String getMessage()
        The message to report violations with.
        Returns:
        the message to report violations with.
      • getMinimum

        public int getMinimum()
        The minimum number of allowed detections.
        Returns:
        the minimum number of allowed detections.
      • getMaximum

        public int getMaximum()
        The maximum number of allowed detections.
        Returns:
        the maximum number of allowed detections.
      • getPattern

        public Pattern getPattern()
        The pattern to use when matching.
        Returns:
        the pattern to use when matching.