Package org.codehaus.mojo.javacc
Class LegacyGrammarDirectoryScanner
java.lang.Object
org.codehaus.mojo.javacc.GrammarDirectoryScanner
org.codehaus.mojo.javacc.LegacyGrammarDirectoryScanner
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected File[]
getTargetFiles
(File targetDirectory, String grammarFile, GrammarInfo grammarInfo) Determines the output files corresponding to the specified grammar file.Methods inherited from class org.codehaus.mojo.javacc.GrammarDirectoryScanner
getIncludedGrammars, scan, setExcludes, setIncludes, setOutputDirectory, setParserPackage, setSourceDirectory, setStaleMillis
-
Constructor Details
-
LegacyGrammarDirectoryScanner
LegacyGrammarDirectoryScanner()
-
-
Method Details
-
getTargetFiles
Determines the output files corresponding to the specified grammar file.- Overrides:
getTargetFiles
in classGrammarDirectoryScanner
- Parameters:
targetDirectory
- The absolute path to the output directory for the target files, must not benull
.grammarFile
- The path to the grammar file, relative to the scanned source directory, must not benull
.grammarInfo
- The grammar info describing the grammar file, must not benull
- Returns:
- A file array with target files, never
null
.
-