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
@Mojo(name="html") 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 $
- See Also:
- Command Line Options
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classAntlrHtmlReport.AntlrRendererRenderer report-
Nested classes/interfaces inherited from class org.codehaus.mojo.antlr.AbstractAntlrMojo
AbstractAntlrMojo.NoAntlrDependencyDefinedException
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringdescriptionThe description of the Antlr report.protected org.codehaus.plexus.i18n.I18Ni18nInternationalization.private java.lang.StringnameThe name of the Antlr report.private java.io.FilereportOutputDirectorySpecifies the destination directory where Antlr generates HTML files.private org.apache.maven.doxia.siterenderer.RenderersiteRendererGenerates the site report-
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 voidaddArgs(java.util.List arguments)Add arguments to be included in Antlr callbooleancanGenerateReport()voidexecute()voidgenerate(org.apache.maven.doxia.sink.Sink sink, java.util.Locale locale)java.lang.StringgetCategoryName()java.lang.StringgetDescription(java.util.Locale locale)java.lang.StringgetName(java.util.Locale locale)java.lang.StringgetOutputName()java.io.FilegetReportOutputDirectory()booleanisExternalReport()voidsetReportOutputDirectory(java.io.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
-
-
-
-
Field Detail
-
siteRenderer
@Component private org.apache.maven.doxia.siterenderer.Renderer siteRenderer
Generates the site report
-
i18n
@Component protected org.codehaus.plexus.i18n.I18N i18n
Internationalization.
-
reportOutputDirectory
@Parameter(defaultValue="${project.build.directory}/generated-site/antlr") private java.io.File reportOutputDirectorySpecifies the destination directory where Antlr generates HTML files.
-
name
@Parameter(property="name", defaultValue="Antlr Grammars") private java.lang.String nameThe name of the Antlr report.
-
description
@Parameter(property="description", defaultValue="Generated Antlr report from grammars.") private java.lang.String descriptionThe description of the Antlr report.
-
-
Method Detail
-
getName
public java.lang.String getName(java.util.Locale locale)
- Specified by:
getNamein interfaceorg.apache.maven.reporting.MavenReport- See Also:
MavenReport.getName(java.util.Locale)
-
getDescription
public java.lang.String getDescription(java.util.Locale locale)
- Specified by:
getDescriptionin interfaceorg.apache.maven.reporting.MavenReport- See Also:
MavenReport.getDescription(java.util.Locale)
-
addArgs
protected void addArgs(java.util.List arguments)
Description copied from class:AbstractAntlrMojoAdd arguments to be included in Antlr call- Specified by:
addArgsin classAbstractAntlrMojo- See Also:
AbstractAntlrMojo.addArgs(java.util.List)
-
generate
public void generate(org.apache.maven.doxia.sink.Sink sink, java.util.Locale locale) throws org.apache.maven.reporting.MavenReportException- Specified by:
generatein interfaceorg.apache.maven.reporting.MavenReport- Throws:
org.apache.maven.reporting.MavenReportException- See Also:
MavenReport.generate(org.apache.maven.doxia.sink.Sink, java.util.Locale)
-
getOutputName
public java.lang.String getOutputName()
- Specified by:
getOutputNamein interfaceorg.apache.maven.reporting.MavenReport- See Also:
MavenReport.getOutputName()
-
isExternalReport
public boolean isExternalReport()
- Specified by:
isExternalReportin interfaceorg.apache.maven.reporting.MavenReport- See Also:
MavenReport.isExternalReport()
-
canGenerateReport
public boolean canGenerateReport()
- Specified by:
canGenerateReportin interfaceorg.apache.maven.reporting.MavenReport- See Also:
MavenReport.canGenerateReport()
-
getCategoryName
public java.lang.String getCategoryName()
- Specified by:
getCategoryNamein interfaceorg.apache.maven.reporting.MavenReport- See Also:
MavenReport.getCategoryName()
-
getReportOutputDirectory
public java.io.File getReportOutputDirectory()
- Specified by:
getReportOutputDirectoryin interfaceorg.apache.maven.reporting.MavenReport- See Also:
MavenReport.getReportOutputDirectory()
-
setReportOutputDirectory
public void setReportOutputDirectory(java.io.File reportOutputDirectory)
- Specified by:
setReportOutputDirectoryin 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:
executein interfaceorg.apache.maven.plugin.Mojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException- See Also:
AbstractMavenReport.execute()
-
-