Class AbstractParenPadCheck

    • Field Detail

      • MSG_WS_FOLLOWED

        public static final java.lang.String MSG_WS_FOLLOWED
        A key is pointing to the warning message text in "messages.properties" file.
        See Also:
        Constant Field Values
      • MSG_WS_NOT_FOLLOWED

        public static final java.lang.String MSG_WS_NOT_FOLLOWED
        A key is pointing to the warning message text in "messages.properties" file.
        See Also:
        Constant Field Values
      • MSG_WS_PRECEDED

        public static final java.lang.String MSG_WS_PRECEDED
        A key is pointing to the warning message text in "messages.properties" file.
        See Also:
        Constant Field Values
      • MSG_WS_NOT_PRECEDED

        public static final java.lang.String MSG_WS_NOT_PRECEDED
        A key is pointing to the warning message text in "messages.properties" file.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractParenPadCheck

        public AbstractParenPadCheck()
    • Method Detail

      • setOption

        public void setOption​(java.lang.String optionStr)
        Set the option to enforce.
        Parameters:
        optionStr - string to decode option from
        Throws:
        java.lang.IllegalArgumentException - if unable to decode
      • processLeft

        protected void processLeft​(DetailAST ast)
        Process a token representing a left parentheses.
        Parameters:
        ast - the token representing a left parentheses
      • processRight

        protected void processRight​(DetailAST ast)
        Process a token representing a right parentheses.
        Parameters:
        ast - the token representing a right parentheses