Class 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 Detail

      • LegacyGrammarDirectoryScanner

        LegacyGrammarDirectoryScanner()
    • Method Detail

      • getTargetFiles

        protected java.io.File[] getTargetFiles​(java.io.File targetDirectory,
                                                java.lang.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.