|
||||||||||
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.antlr.AbstractAntlrMojo
public abstract class AbstractAntlrMojo
Base class with majority of Antlr functionalities.
Nested Class Summary | |
---|---|
static class |
AbstractAntlrMojo.NoAntlrDependencyDefinedException
|
Field Summary | |
---|---|
protected Grammar[] |
grammarDefs
Grammar list presents in the sourceDirectory directory. |
protected String |
grammars
Comma separated grammar file names or grammar pattern file names present in the sourceDirectory
directory. |
protected File |
outputDirectory
Specifies the destination directory where Antlr should generate files. |
protected MavenProject |
project
The Maven Project Object |
protected File |
sourceDirectory
Specifies the Antlr directory containing grammar files. |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractAntlrMojo()
|
Method Summary | |
---|---|
protected static void |
addArgIf(List arguments,
boolean b,
String value)
Convenience method to add an argument |
protected abstract void |
addArgs(List arguments)
Add arguments to be included in Antlr call |
protected void |
executeAntlr()
|
File |
getOutputDirectory()
|
File |
getSourceDirectory()
|
protected Artifact |
locateAntlrArtifact()
|
protected void |
performGeneration(GenerationPlan plan,
Artifact antlrArtifact)
|
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 |
Methods inherited from interface org.codehaus.mojo.antlr.Environment |
---|
getLog |
Methods inherited from interface org.apache.maven.plugin.Mojo |
---|
execute |
Field Detail |
---|
protected File sourceDirectory
protected MavenProject project
protected File outputDirectory
protected String grammars
sourceDirectory
directory.
protected Grammar[] grammarDefs
sourceDirectory
directory. <grammarDefs>
<grammar>
<name>myGrammar.g</name>
<glib>mySuperGrammar.g;myOtherSuperGrammar.g</glib>
</grammar>
</grammarDefs>
Constructor Detail |
---|
public AbstractAntlrMojo()
Method Detail |
---|
public File getSourceDirectory()
getSourceDirectory
in interface Environment
public File getOutputDirectory()
getOutputDirectory
in interface Environment
protected void executeAntlr() throws MojoExecutionException
MojoExecutionException
protected final Artifact locateAntlrArtifact() throws AbstractAntlrMojo.NoAntlrDependencyDefinedException
AbstractAntlrMojo.NoAntlrDependencyDefinedException
protected void performGeneration(GenerationPlan plan, Artifact antlrArtifact) throws MojoExecutionException
MojoExecutionException
protected abstract void addArgs(List arguments)
arguments
- protected static void addArgIf(List arguments, boolean b, String value)
arguments
- b
- value
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |