|
|||||||||
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
public abstract class AbstractJavaCCMojo
Provides common services for all mojos that compile JavaCC grammar files.
Field Summary |
---|
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractJavaCCMojo()
|
Method Summary | |
---|---|
void |
execute()
Execute the tool. |
protected abstract String[] |
getExcludes()
Gets a set of Ant-like exclusion patterns used to unselect files from the source directory for processing. |
protected abstract String[] |
getIncludes()
Gets a set of Ant-like inclusion patterns used to select files from the source directory for processing. |
protected Boolean |
getIsStatic()
Gets the flag whether to generate static parser. |
protected String |
getJdkVersion()
Gets the Java version for which to generate source code. |
protected abstract File |
getOutputDirectory()
Gets the absolute path to the directory where the generated Java files for the parser will be stored. |
protected String |
getParserPackage()
Gets the package into which the generated parser files should be stored. |
protected abstract File |
getSourceDirectory()
Gets the absolute path to the directory where the grammar files are located. |
protected abstract int |
getStaleMillis()
Gets the granularity in milliseconds of the last modification date for testing whether a source needs recompilation. |
protected org.codehaus.mojo.javacc.JavaCC |
newJavaCC()
Creates a new facade to invoke JavaCC. |
protected abstract void |
processGrammar(org.codehaus.mojo.javacc.GrammarInfo grammarInfo)
Passes the specified grammar file through the tool. |
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 AbstractJavaCCMojo()
Method Detail |
---|
protected String getJdkVersion()
null
if the user did not
specify this mojo parameter.protected Boolean getIsStatic()
null
if the user did not specify this
mojo parameter.protected abstract File getSourceDirectory()
null
.protected abstract String[] getIncludes()
null
if all files should be included.protected abstract String[] getExcludes()
null
if no files should be excluded.protected abstract File getOutputDirectory()
null
.protected abstract int getStaleMillis()
protected String getParserPackage()
null
to use the
package declaration from the grammar file.public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
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 abstract void processGrammar(org.codehaus.mojo.javacc.GrammarInfo grammarInfo) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
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.JavaCC newJavaCC()
null
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |