Class AbstractNameCheck

    • Constructor Detail

      • AbstractNameCheck

        protected AbstractNameCheck​(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​(Pattern pattern)
        Sets the pattern to match valid identifiers.
        Parameters:
        pattern - the new pattern