|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.javacc.AbstractPreprocessorMojo
org.codehaus.mojo.javacc.JTBMojo
jtb-javacc goal instead.
public class JTBMojo
Parses a JTB file and transforms it into source files for an AST and a JavaCC grammar file which automatically builds
the AST.
Note: JTB requires Java 1.5
or higher. This goal will not work with earlier versions of the JRE.
| Field Summary |
|---|
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
JTBMojo()
Deprecated. |
|
| Method Summary | |
|---|---|
protected String[] |
getExcludes()
Deprecated. Gets a set of Ant-like exclusion patterns used to unselect files from the source directory for processing. |
protected String[] |
getIncludes()
Deprecated. Gets a set of Ant-like inclusion patterns used to select files from the source directory for processing. |
protected File |
getOutputDirectory()
Deprecated. Gets the absolute path to the directory where the generated Java files for the parser will be stored. |
protected File |
getSourceDirectory()
Deprecated. Gets the absolute path to the directory where the grammar files are located. |
protected int |
getStaleMillis()
Deprecated. Gets the granularity in milliseconds of the last modification date for testing whether a source needs recompilation. |
protected File |
getTimestampDirectory()
Deprecated. Gets the absolute path to the directory where the processed input files will be stored for later detection of stale sources. |
protected void |
processGrammar(org.codehaus.mojo.javacc.GrammarInfo grammarInfo)
Deprecated. Passes the specified grammar file through the tool. |
| Methods inherited from class org.codehaus.mojo.javacc.AbstractPreprocessorMojo |
|---|
addCompileSourceRoot, createTimestamp, execute |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JTBMojo()
| Method Detail |
|---|
protected File getSourceDirectory()
getSourceDirectory in class AbstractPreprocessorMojonull.protected String[] getIncludes()
getIncludes in class AbstractPreprocessorMojonull if all files should be included.protected String[] getExcludes()
getExcludes in class AbstractPreprocessorMojonull if no files should be excluded.protected File getOutputDirectory()
getOutputDirectory in class AbstractPreprocessorMojonull.protected File getTimestampDirectory()
getTimestampDirectory in class AbstractPreprocessorMojonull.protected int getStaleMillis()
getStaleMillis in class AbstractPreprocessorMojo
protected void processGrammar(org.codehaus.mojo.javacc.GrammarInfo grammarInfo)
throws MojoExecutionException,
MojoFailureException
processGrammar in class AbstractPreprocessorMojogrammarInfo - The grammar info describing the grammar file to process, must not be null.
MojoExecutionException - If the invocation of the tool failed.
MojoFailureException - If the tool reported a non-zero exit code.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||