|
|||||||||
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.AbstractJavaCCMojo
org.codehaus.mojo.javacc.JTBJavaCCMojo
public class JTBJavaCCMojo
Preprocesses ordinary grammar files (*.jtb
) with JTB and passes the output to JavaCC in order to
finally generate a parser with parse tree actions.
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 | |
---|---|
JTBJavaCCMojo()
|
Method Summary | |
---|---|
protected java.lang.String[] |
getExcludes()
Gets a set of Ant-like exclusion patterns used to unselect files from the source directory for processing. |
protected java.lang.String[] |
getIncludes()
Gets a set of Ant-like inclusion patterns used to select files from the source directory for processing. |
protected java.io.File |
getOutputDirectory()
Gets the absolute path to the directory where the generated Java files for the parser will be stored. |
protected java.io.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 void |
processGrammar(org.codehaus.mojo.javacc.GrammarInfo grammarInfo)
Passes the specified grammar file through the tool. |
Methods inherited from class org.codehaus.mojo.javacc.AbstractJavaCCMojo |
---|
execute, getIsStatic, getJdkVersion, getParserPackage, newJavaCC |
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 JTBJavaCCMojo()
Method Detail |
---|
protected java.io.File getSourceDirectory()
getSourceDirectory
in class AbstractJavaCCMojo
null
.protected java.lang.String[] getIncludes()
getIncludes
in class AbstractJavaCCMojo
null
if all files should be included.protected java.lang.String[] getExcludes()
getExcludes
in class AbstractJavaCCMojo
null
if no files should be excluded.protected java.io.File getOutputDirectory()
getOutputDirectory
in class AbstractJavaCCMojo
null
.protected int getStaleMillis()
getStaleMillis
in class AbstractJavaCCMojo
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |