Class ActionFactory


  • public class ActionFactory
    extends java.lang.Object
    • Field Detail

      • verbose

        private final int verbose
      • dryRun

        private final boolean dryRun
    • Constructor Detail

      • ActionFactory

        public ActionFactory()
      • ActionFactory

        public ActionFactory​(int verbose)
      • ActionFactory

        public ActionFactory​(int verbose,
                             boolean dryRun)
    • Method Detail

      • getSkipAction

        public Scanner.Action getSkipAction()
        returns an action that returns true. If verbose is true, the action also displays the FileWrapper that was passed to it.
        Returns:
        The skip action.
      • getStopAction

        public Scanner.Action getStopAction()
        returns an action that returns false. If verbose is true, the action also displays the FileWrapper that was passed to it.
        Returns:
        The stop action.
      • getRecognizerAction

        public Recognizer getRecognizerAction()