org.codehaus.mojo.javacc

Class JJTreeJavaCCMojo

public class JJTreeJavaCCMojo extends AbstractJavaCCMojo

Preprocesses decorated grammar files (*.jjt) with JJTree and passes the output to JavaCC in order to finally generate a parser with parse tree actions.

Since: 2.4

Version: $Id: JJTreeJavaCCMojo.java 10603 2009-09-06 15:05:08Z bentmann $

Author: Benjamin Bentmann

UNKNOWN: jjtree-javacc generate-sources

Method Summary
protected File[]getCompileSourceRoots()
protected String[]getExcludes()
protected String[]getIncludes()
protected FilegetOutputDirectory()
protected FilegetSourceDirectory()
protected intgetStaleMillis()
protected JJTreenewJJTree()
Creates a new facade to invoke JJTree.
protected voidprocessGrammar(GrammarInfo grammarInfo)

Method Detail

getCompileSourceRoots

protected File[] getCompileSourceRoots()
{@inheritDoc }

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 }

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.