Class AbstractComplexityCheck

    • Constructor Detail

      • AbstractComplexityCheck

        protected AbstractComplexityCheck​(int max)
        Deprecated.
        Creates an instance.
        Parameters:
        max - the threshold of when to report an error
    • Method Detail

      • getMessageID

        protected abstract String getMessageID()
        Deprecated.
        Gets the message ID to log violations with.
        Returns:
        the message ID to log violations with
      • visitTokenHook

        protected abstract void visitTokenHook​(DetailAST ast)
        Deprecated.
        Hook called when visiting a token. Will not be called the method definition tokens.
        Parameters:
        ast - the token being visited
      • leaveTokenHook

        protected abstract void leaveTokenHook​(DetailAST ast)
        Deprecated.
        Hook called when leaving a token. Will not be called the method definition tokens.
        Parameters:
        ast - the token being left
      • setMax

        public final void setMax​(int max)
        Deprecated.
        Set the maximum threshold allowed.
        Parameters:
        max - the maximum threshold
      • getCurrentValue

        protected final BigInteger getCurrentValue()
        Deprecated.
        Gets the current value.
        Returns:
        the current value
      • setCurrentValue

        protected final void setCurrentValue​(BigInteger value)
        Deprecated.
        Set the current value.
        Parameters:
        value - the new value
      • incrementCurrentValue

        protected final void incrementCurrentValue​(BigInteger amount)
        Deprecated.
        Increments the current value by a specified amount.
        Parameters:
        amount - the amount to increment by
      • pushValue

        protected final void pushValue()
        Deprecated.
        Push the current value on the stack.
      • popValue

        protected final BigInteger popValue()
        Deprecated.
        Pops a value off the stack and makes it the current value.
        Returns:
        pop a value off the stack and make it the current value