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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classRenderer reportNested classes/interfaces inherited from class org.codehaus.mojo.antlr.AbstractAntlrMojo
AbstractAntlrMojo.NoAntlrDependencyDefinedException -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe description of the Antlr report.protected org.codehaus.plexus.i18n.I18NInternationalization.private StringThe name of the Antlr report.private FileSpecifies the destination directory where Antlr generates HTML files.private org.apache.maven.doxia.siterenderer.RendererGenerates the site reportFields inherited from class org.codehaus.mojo.antlr.AbstractAntlrMojo
grammarDefs, grammars, outputDirectory, project, sourceDirectoryFields inherited from interface org.apache.maven.reporting.MavenReport
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLEFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdd arguments to be included in Antlr callbooleanvoidexecute()voidgetDescription(Locale locale) booleanvoidsetReportOutputDirectory(File reportOutputDirectory) Methods inherited from class org.codehaus.mojo.antlr.AbstractAntlrMojo
addArgIf, executeAntlr, getOutputDirectory, getSourceDirectory, locateAntlrArtifact, performGenerationMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.codehaus.mojo.antlr.Environment
getLogMethods inherited from interface org.apache.maven.reporting.MavenReport
getOutputPath
-
Field Details
-
siteRenderer
@Component private org.apache.maven.doxia.siterenderer.Renderer siteRendererGenerates the site report -
i18n
@Component protected org.codehaus.plexus.i18n.I18N i18nInternationalization. -
reportOutputDirectory
@Parameter(defaultValue="${project.build.directory}/generated-site/antlr") private File reportOutputDirectorySpecifies the destination directory where Antlr generates HTML files. -
name
The name of the Antlr report. -
description
@Parameter(property="description", defaultValue="Generated Antlr report from grammars.") private String descriptionThe description of the Antlr report.
-
-
Constructor Details
-
AntlrHtmlReport
public AntlrHtmlReport()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.apache.maven.reporting.MavenReport- See Also:
-
getDescription
- Specified by:
getDescriptionin interfaceorg.apache.maven.reporting.MavenReport- See Also:
-
addArgs
Description copied from class:AbstractAntlrMojoAdd arguments to be included in Antlr call- Specified by:
addArgsin classAbstractAntlrMojo- Parameters:
arguments-- See Also:
-
generate
public void generate(org.apache.maven.doxia.sink.Sink sink, Locale locale) throws org.apache.maven.reporting.MavenReportException - Specified by:
generatein interfaceorg.apache.maven.reporting.MavenReport- Throws:
org.apache.maven.reporting.MavenReportException- See Also:
-
getOutputName
- Specified by:
getOutputNamein interfaceorg.apache.maven.reporting.MavenReport- See Also:
-
isExternalReport
public boolean isExternalReport()- Specified by:
isExternalReportin interfaceorg.apache.maven.reporting.MavenReport- See Also:
-
canGenerateReport
public boolean canGenerateReport()- Specified by:
canGenerateReportin interfaceorg.apache.maven.reporting.MavenReport- See Also:
-
getCategoryName
- Specified by:
getCategoryNamein interfaceorg.apache.maven.reporting.MavenReport- See Also:
-
getReportOutputDirectory
- Specified by:
getReportOutputDirectoryin interfaceorg.apache.maven.reporting.MavenReport- See Also:
-
setReportOutputDirectory
- Specified by:
setReportOutputDirectoryin interfaceorg.apache.maven.reporting.MavenReport- See Also:
-
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:
-