Package org.codehaus.mojo.antlr
Class AntlrHtmlReport
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.codehaus.mojo.antlr.AbstractAntlrMojo
-
- org.codehaus.mojo.antlr.AntlrHtmlReport
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
,org.apache.maven.reporting.MavenReport
,Environment
public class AntlrHtmlReport extends AbstractAntlrMojo implements org.apache.maven.reporting.MavenReport
Generates Antlr documentation from grammar files.- Version:
- $Id: AntlrHtmlReport.java 13111 2010-11-16 22:16:36Z pgier $
- Author:
- Vincent Siveton
- See Also:
- Command Line Options
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.codehaus.mojo.antlr.AbstractAntlrMojo
AbstractAntlrMojo.NoAntlrDependencyDefinedException
-
-
Field Summary
Fields Modifier and Type Field Description protected org.codehaus.plexus.i18n.I18N
i18n
Internationalization.-
Fields inherited from class org.codehaus.mojo.antlr.AbstractAntlrMojo
grammarDefs, grammars, outputDirectory, project, sourceDirectory
-
-
Constructor Summary
Constructors Constructor Description AntlrHtmlReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addArgs(List arguments)
Add arguments to be included in Antlr callboolean
canGenerateReport()
void
execute()
void
generate(org.codehaus.doxia.sink.Sink sink, Locale locale)
String
getCategoryName()
String
getDescription(Locale locale)
String
getName(Locale locale)
String
getOutputName()
File
getReportOutputDirectory()
boolean
isExternalReport()
void
setReportOutputDirectory(File reportOutputDirectory)
-
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
-
-
-
-
Method Detail
-
getName
public String getName(Locale locale)
- Specified by:
getName
in interfaceorg.apache.maven.reporting.MavenReport
- See Also:
MavenReport.getName(java.util.Locale)
-
getDescription
public String getDescription(Locale locale)
- Specified by:
getDescription
in interfaceorg.apache.maven.reporting.MavenReport
- See Also:
MavenReport.getDescription(java.util.Locale)
-
addArgs
protected void addArgs(List arguments)
Description copied from class:AbstractAntlrMojo
Add arguments to be included in Antlr call- Specified by:
addArgs
in classAbstractAntlrMojo
- See Also:
AbstractAntlrMojo.addArgs(java.util.List)
-
generate
public void generate(org.codehaus.doxia.sink.Sink sink, Locale locale) throws org.apache.maven.reporting.MavenReportException
- Specified by:
generate
in interfaceorg.apache.maven.reporting.MavenReport
- Throws:
org.apache.maven.reporting.MavenReportException
- See Also:
MavenReport.generate(org.codehaus.doxia.sink.Sink, java.util.Locale)
-
getOutputName
public String getOutputName()
- Specified by:
getOutputName
in interfaceorg.apache.maven.reporting.MavenReport
- See Also:
MavenReport.getOutputName()
-
isExternalReport
public boolean isExternalReport()
- Specified by:
isExternalReport
in interfaceorg.apache.maven.reporting.MavenReport
- See Also:
MavenReport.isExternalReport()
-
canGenerateReport
public boolean canGenerateReport()
- Specified by:
canGenerateReport
in interfaceorg.apache.maven.reporting.MavenReport
- See Also:
MavenReport.canGenerateReport()
-
getCategoryName
public String getCategoryName()
- Specified by:
getCategoryName
in interfaceorg.apache.maven.reporting.MavenReport
- See Also:
MavenReport.getCategoryName()
-
getReportOutputDirectory
public File getReportOutputDirectory()
- Specified by:
getReportOutputDirectory
in interfaceorg.apache.maven.reporting.MavenReport
- See Also:
MavenReport.getReportOutputDirectory()
-
setReportOutputDirectory
public void setReportOutputDirectory(File reportOutputDirectory)
- Specified by:
setReportOutputDirectory
in interfaceorg.apache.maven.reporting.MavenReport
- See Also:
MavenReport.setReportOutputDirectory(java.io.File)
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
- Specified by:
execute
in interfaceorg.apache.maven.plugin.Mojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
- See Also:
AbstractMavenReport.execute()
-
-