Full name:
org.codehaus.mojo:javacc-maven-plugin:2.6:jjtree
This plugin goal has been deprecated:
jjtree-javacc goal instead.Description:
*.jjt) and transforms it
to Java source files and a JavaCC grammar file. Please see the JJTree Reference
Documentation for more information.Attributes:
2.0.generate-sources.| Name | Type | Since | Description |
|---|---|---|---|
| buildNodeFiles | Boolean |
2.0 |
A flag whether to generate sample implementations for
SimpleNode and any other nodes used in the grammar.
Default value is true. |
| excludes | String[] |
2.0 |
A set of Ant-like exclusion patterns used to prevent certain files
from being processed. By default, this set is empty such that no
files are excluded. |
| includes | String[] |
2.0 |
A set of Ant-like inclusion patterns used to select files from the
source directory for processing. By default, the patterns
**/*.jjt and **/*.JJT are used to select
grammar files. |
| isStatic | Boolean |
2.0 |
A flag whether to generate code for a static parser. Note that this
setting must match the corresponding option for the
javacc mojo. Default value is true. |
| jdkVersion | String |
2.4 |
The Java version for which to generate source code. Default value
is 1.4. |
| multi | Boolean |
2.0 |
A flag whether to generate a multi mode parse tree or a single mode
parse tree. Default value is false. |
| nodeClass | String |
2.5 |
The name of a custom class that extends SimpleNode and
will be used as the super class for the generated tree node
classes. By default, the tree node classes will directly extend the
class SimpleNode. |
| nodeDefaultVoid | Boolean |
2.0 |
A flag whether to make each non-decorated production void instead
of an indefinite node. Default value is false. |
| nodeFactory | String |
2.0 |
The name of a custom factory class used to create Node
objects. This class must have a method with the signature
public static Node jjtCreate(int id). By default, the
class SimpleNode will be used as the factory class. |
| nodePackage | String |
2.0 |
The package to generate the AST node classes into. This value may
use a leading asterisk to reference the package of the
corresponding parser. For example, if the parser package is
org.apache and this parameter is set to
*.demo, the tree node classes will be located in the
package org.apache.demo. By default, the package of
the corresponding parser is used. |
| nodePrefix | String |
2.0 |
The prefix used to construct node class names from node identifiers
in multi mode. Default value is AST. |
| nodeScopeHook | Boolean |
2.0 |
A flag whether user-defined parser methods should be called on
entry and exit of every node scope. Default value is
false. |
| nodeUsesParser | Boolean |
2.0 |
A flag whether the node construction routines need an additional
method parameter to receive the parser object. Default value is
false. |
| outputDirectory | File |
2.0 |
Directory where the output Java files for the node classes and the
JavaCC grammar file will be located. Default value is: ${project.build.directory}/generated-sources/jjtree. |
| sourceDirectory | File |
2.0 |
Directory where the input JJTree files (*.jjt) are
located.Default value is: ${basedir}/src/main/jjtree. |
| staleMillis | int |
2.0 |
The granularity in milliseconds of the last modification date for
testing whether a source needs recompilation. Default value is: 0. |
| timestampDirectory | File |
2.0 |
The directory to store the processed input files for later
detection of stale sources. Default value is: ${project.build.directory}/generated-sources/jjtree-timestamp. |
| trackTokens | Boolean |
2.5 |
A flag whether to insert the methods
jjtGetFirstToken(), jjtSetFirstToken(),
getLastToken() and jjtSetLastToken() into
the class SimpleNode. Default value is
false. |
| visitor | Boolean |
2.0 |
A flag whether to insert a jjtAccept() method in the
node classes and to generate a visitor implementation with an entry
for every node type used in the grammar. Default value is
false. |
| visitorDataType | String |
2.5 |
The name of a class to use for the data argument of the
jjtAccept() and visit() methods. Default
value is java.lang.Object. |
| visitorException | String |
2.0 |
The name of an exception class to include in the signature of the
generated jjtAccept() and visit()
methods. By default, the throws clause of the
generated methods is empty such that only unchecked exceptions can
be thrown. |
| visitorReturnType | String |
2.5 |
The name of a class to use as the return type of the
jjtAccept() and visit() methods. Default
value is java.lang.Object. |
SimpleNode and any other nodes used in the grammar.
Default value is true.java.lang.Boolean2.0No${buildNodeFiles}java.lang.String[]2.0No**/*.jjt and **/*.JJT are used to select
grammar files.java.lang.String[]2.0Nojavacc mojo. Default value is true.java.lang.Boolean2.0No${isStatic}1.4.java.lang.String2.4No${jdkVersion}false.java.lang.Boolean2.0No${multi}SimpleNode and
will be used as the super class for the generated tree node
classes. By default, the tree node classes will directly extend the
class SimpleNode.java.lang.String2.5No${nodeClass}false.java.lang.Boolean2.0No${nodeDefaultVoid}Node
objects. This class must have a method with the signature
public static Node jjtCreate(int id). By default, the
class SimpleNode will be used as the factory class.java.lang.String2.0No${nodeFactory}org.apache and this parameter is set to
*.demo, the tree node classes will be located in the
package org.apache.demo. By default, the package of
the corresponding parser is used.java.lang.String2.0No${nodePackage}AST.java.lang.String2.0No${nodePrefix}false.java.lang.Boolean2.0No${nodeScopeHook}false.java.lang.Boolean2.0No${nodeUsesParser}java.io.File2.0No${outputDirectory}${project.build.directory}/generated-sources/jjtree*.jjt) are
located.java.io.File2.0No${sourceDirectory}${basedir}/src/main/jjtreeint2.0No${lastModGranularityMs}0java.io.File2.0No${timestampDirectory}${project.build.directory}/generated-sources/jjtree-timestampjjtGetFirstToken(), jjtSetFirstToken(),
getLastToken() and jjtSetLastToken() into
the class SimpleNode. Default value is
false.java.lang.Boolean2.5No${trackTokens}jjtAccept() method in the
node classes and to generate a visitor implementation with an entry
for every node type used in the grammar. Default value is
false.java.lang.Boolean2.0No${visitor}jjtAccept() and visit() methods. Default
value is java.lang.Object.java.lang.String2.5No${visitorDataType}jjtAccept() and visit()
methods. By default, the throws clause of the
generated methods is empty such that only unchecked exceptions can
be thrown.java.lang.String2.0No${visitorException}jjtAccept() and visit() methods. Default
value is java.lang.Object.java.lang.String2.5No${visitorReturnType}