public class JJTreeJavaCCMojo extends AbstractJavaCCMojo
*.jjt
) with JJTree and passes the output to JavaCC in order to
finally generate a parser with parse tree actions.Constructor and Description |
---|
JJTreeJavaCCMojo() |
Modifier and Type | Method and Description |
---|---|
protected File[] |
getCompileSourceRoots()
Gets all the output directories to register with the project for compilation.
|
protected String[] |
getExcludes()
Gets a set of Ant-like exclusion patterns used to unselect files from the source directory for processing.
|
protected String[] |
getIncludes()
Gets a set of Ant-like inclusion patterns used to select files from the source directory for processing.
|
protected File |
getOutputDirectory()
Gets the absolute path to the directory where the generated Java files for the parser will be stored.
|
protected File |
getSourceDirectory()
Gets the absolute path to the directory where the grammar files are located.
|
protected int |
getStaleMillis()
Gets the granularity in milliseconds of the last modification date for testing whether a source needs
recompilation.
|
protected org.codehaus.mojo.javacc.JJTree |
newJJTree()
Creates a new facade to invoke JJTree.
|
protected void |
processGrammar(org.codehaus.mojo.javacc.GrammarInfo grammarInfo)
Passes the specified grammar file through the tool.
|
copyGrammarOutput, deleteTempDirectory, execute, getGrammarEncoding, getIsStatic, getJdkVersion, getParserPackage, getTempDirectory, isSourceRoot, newJavaCC
protected File getSourceDirectory()
getSourceDirectory
in class AbstractJavaCCMojo
null
.protected String[] getIncludes()
getIncludes
in class AbstractJavaCCMojo
null
if all files should be included.protected String[] getExcludes()
getExcludes
in class AbstractJavaCCMojo
null
if no files should be excluded.protected File getOutputDirectory()
getOutputDirectory
in class AbstractJavaCCMojo
null
.protected int getStaleMillis()
getStaleMillis
in class AbstractJavaCCMojo
protected File[] getCompileSourceRoots()
getCompileSourceRoots
in class AbstractJavaCCMojo
null
.protected void processGrammar(org.codehaus.mojo.javacc.GrammarInfo grammarInfo) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
processGrammar
in class AbstractJavaCCMojo
grammarInfo
- The grammar info describing the grammar file to process, must not be null
.org.apache.maven.plugin.MojoExecutionException
- If the invocation of the tool failed.org.apache.maven.plugin.MojoFailureException
- If the tool reported a non-zero exit code.protected org.codehaus.mojo.javacc.JJTree newJJTree()
null
.Copyright © 2005-2016 Codehaus. All Rights Reserved.