Class WhitespaceAfterCheck

    • Method Detail

      • getAcceptableTokens

        public int[] getAcceptableTokens()
        Description copied from class: AbstractCheck
        The configurable token set. Used to protect Checks against malicious users who specify an unacceptable token set in the configuration file. The default implementation returns the check's default tokens.
        Specified by:
        getAcceptableTokens in class AbstractCheck
        Returns:
        the token set this check is designed for.
        See Also:
        TokenTypes
      • isFollowedByWhitespace

        private static boolean isFollowedByWhitespace​(DetailAST targetAST,
                                                      int... line)
        Checks whether token is followed by a whitespace.
        Parameters:
        targetAST - Ast token.
        line - Unicode code points array of line associated with the ast token.
        Returns:
        true if ast token is followed by a whitespace.