Class AbstractNameCheck

    • Field Detail

      • MSG_INVALID_PATTERN

        public static final java.lang.String MSG_INVALID_PATTERN
        Message key for invalid pattern violation.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractNameCheck

        protected AbstractNameCheck​(java.lang.String format)
        Creates a new AbstractNameCheck instance.
        Parameters:
        format - format to check with
    • Method Detail

      • mustCheckName

        protected abstract boolean mustCheckName​(DetailAST ast)
        Decides whether the name of an AST should be checked against the format regexp.
        Parameters:
        ast - the AST to check.
        Returns:
        true if the IDENT subnode of ast should be checked against the format regexp.
      • setFormat

        public final void setFormat​(java.util.regex.Pattern pattern)
        Set the format for the specified regular expression.
        Parameters:
        pattern - the new pattern