Class LegacyGrammarDirectoryScanner

java.lang.Object
org.codehaus.mojo.javacc.GrammarDirectoryScanner
org.codehaus.mojo.javacc.LegacyGrammarDirectoryScanner

class LegacyGrammarDirectoryScanner extends GrammarDirectoryScanner
Scans source directories for JavaCC grammar files. This scanner supports JJTreeMojo and JTBMojo which perform timestamp checking against copies of the input grammars rather than against the generated parser files. Hence, the directory configured by GrammarDirectoryScanner.setOutputDirectory(File) is taken to be the output directory for the timestamp files.
Version:
$Id: LegacyGrammarDirectoryScanner.java 6251 2008-02-08 13:56:51Z bentmann $
  • Constructor Details

    • LegacyGrammarDirectoryScanner

      LegacyGrammarDirectoryScanner()
  • Method Details

    • getTargetFiles

      protected File[] getTargetFiles(File targetDirectory, String grammarFile, GrammarInfo grammarInfo)
      Determines the output files corresponding to the specified grammar file.
      Overrides:
      getTargetFiles in class GrammarDirectoryScanner
      Parameters:
      targetDirectory - The absolute path to the output directory for the target files, must not be null.
      grammarFile - The path to the grammar file, relative to the scanned source directory, must not be null.
      grammarInfo - The grammar info describing the grammar file, must not be null
      Returns:
      A file array with target files, never null.