Class LazyChecker<O>

  • Type Parameters:
    O - The checked object type.
    All Implemented Interfaces:
    cdc.util.debug.Printable

    public final class LazyChecker<O>
    extends AbstractChecker<O>
    Implementation of AbstractChecker that lazily delegate the work to a named checker.

    This must be used to define recursive checkers;

    • Method Detail

      • print

        public void print​(PrintStream out,
                          int level)
      • isEnabled

        public boolean isEnabled()
        Specified by:
        isEnabled in class AbstractChecker<O>
        Returns:
        true if this checker is enabled.
      • check

        public final CheckResult check​(CheckContext context,
                                       O object,
                                       Location location)
        Description copied from class: AbstractChecker
        Method that must be specialized to check an object.

        It is this method responsibility to store detected issues into the associated manager.

        Specified by:
        check in class AbstractChecker<O>
        Parameters:
        context - The context.
        object - The object to check.
        location - The object location.
        Returns:
        The check result.