org.codehaus.mojo.antlr
Class AntlrPlugin

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.antlr.AbstractAntlrMojo
          extended by org.codehaus.mojo.antlr.AntlrPlugin
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, Environment

public class AntlrPlugin
extends AbstractAntlrMojo

Generates files based on grammar files with Antlr tool.

Version:
$Id: AntlrPlugin.java 13111 2010-11-16 22:16:36Z pgier $
Author:
Vincent Siveton
Is bound to the specified phase of the standard build lifecycle:
generate-sources
Requires the dependencies in this specified scope:
compile
Is defined by the goal name:
generate

Nested Class Summary
 
Nested classes/interfaces inherited from class org.codehaus.mojo.antlr.AbstractAntlrMojo
AbstractAntlrMojo.NoAntlrDependencyDefinedException
 
Field Summary
 
Fields inherited from class org.codehaus.mojo.antlr.AbstractAntlrMojo
grammarDefs, grammars, outputDirectory, project, sourceDirectory
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AntlrPlugin()
           
 
Method Summary
protected  void addArgs(java.util.List arguments)
          Add arguments to be included in Antlr call
 void execute()
           
 
Methods inherited from class org.codehaus.mojo.antlr.AbstractAntlrMojo
addArgIf, executeAntlr, getOutputDirectory, getSourceDirectory, locateAntlrArtifact, performGeneration
 
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
 

Constructor Detail

AntlrPlugin

public AntlrPlugin()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException
See Also:
Mojo.execute()

addArgs

protected void addArgs(java.util.List arguments)
Description copied from class: AbstractAntlrMojo
Add arguments to be included in Antlr call

Specified by:
addArgs in class AbstractAntlrMojo
See Also:
AbstractAntlrMojo.addArgs(java.util.List)


Copyright © 2004-2011 Codehaus. All Rights Reserved.