org.codehaus.mojo.javacc

Class JJTreeMojo

public class JJTreeMojo extends AbstractPreprocessorMojo

Deprecated: As of version 2.4, use the jjtree-javacc goal instead.

Parses a JJTree grammar file (*.jjt) and transforms it to Java source files and a JavaCC grammar file. Please see the JJTree Reference Documentation for more information.

Since: 2.0

Version: $Id: JJTreeMojo.java 7847 2008-10-05 17:52:15Z bentmann $

Author: jesse

UNKNOWN: jjtree generate-sources

Method Summary
protected voidaddCompileSourceRoot()
Prevents registration of our output or a following invocation of the javacc mojo will cause duplicate sources which in turn will make compilation fail.
protected String[]getExcludes()
protected String[]getIncludes()
protected FilegetOutputDirectory()
protected FilegetSourceDirectory()
protected intgetStaleMillis()
protected FilegetTimestampDirectory()
protected JJTreenewJJTree()
Creates a new facade to invoke JJTree.
protected voidprocessGrammar(GrammarInfo grammarInfo)

Method Detail

addCompileSourceRoot

protected void addCompileSourceRoot()
Prevents registration of our output or a following invocation of the javacc mojo will cause duplicate sources which in turn will make compilation fail.

getExcludes

protected String[] getExcludes()
{@inheritDoc }

getIncludes

protected String[] getIncludes()
{@inheritDoc }

getOutputDirectory

protected File getOutputDirectory()
{@inheritDoc }

getSourceDirectory

protected File getSourceDirectory()
{@inheritDoc }

getStaleMillis

protected int getStaleMillis()
{@inheritDoc }

getTimestampDirectory

protected File getTimestampDirectory()
{@inheritDoc }

newJJTree

protected JJTree newJJTree()
Creates a new facade to invoke JJTree. Most options for the invocation are derived from the current values of the corresponding mojo parameters. The caller is responsible to set the input file, output directory and package on the returned facade.

Returns: The facade for the tool invocation, never null.

processGrammar

protected void processGrammar(GrammarInfo grammarInfo)
{@inheritDoc }
Copyright © 2005-2010 Codehaus. All Rights Reserved.