Full name:
org.codehaus.mojo:javacc-maven-plugin:2.6:javacc
Description:
*.jj) and transforms it
to Java source files. Detailed information about the JavaCC options
can be found on the JavaCC
website.Attributes:
2.0.generate-sources.| Name | Type | Since | Description |
|---|---|---|---|
| buildParser | Boolean |
2.0 |
A flag that controls whether the parser file
(*Parser.java) should be generated or not. If set to
false, only the token manager is generated. Default
value is true. |
| buildTokenManager | Boolean |
2.0 |
A flag that controls whether the token manager file
(*TokenManager.java) should be generated or not.
Setting this to false can speed up the generation
process if only the parser part of the grammar changed. Default
value is true. |
| cacheTokens | Boolean |
2.0 |
Setting this option to true causes the generated
parser to lookahead for extra tokens ahead of time. Default value
is false. |
| choiceAmbiguityCheck | Integer |
2.0 |
This is the number of tokens considered in checking choices of the
form "A | B | ..." for ambiguity. Default value is 2. |
| commonTokenAction | Boolean |
2.0 |
When set to true, every call to the token manager's
method getNextToken() (see the description of the Java
Compiler Compiler API) will cause a call to a user-defined
method CommonTokenAction() after the token has been
scanned in by the token manager. Default value is
false. |
| debugLookAhead | Boolean |
2.0 |
This is a boolean option whose default value is false.
Setting this option to true causes the parser to
generate all the tracing information it does when the option
debugParser is true, and in addition,
also causes it to generated a trace of actions performed during
lookahead operation. |
| debugParser | Boolean |
2.0 |
This option is used to obtain debugging information from the
generated parser. Setting this option to true causes
the parser to generate a trace of its actions. Default value is
false. |
| debugTokenManager | Boolean |
2.0 |
This option is used to obtain debugging information from the
generated token manager. Default value is false. |
| errorReporting | Boolean |
2.0 |
Setting it to false causes errors due to parse errors
to be reported in somewhat less detail. 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. |
| forceLaCheck | Boolean |
2.0 |
This option setting controls lookahead ambiguity checking performed
by JavaCC. Default value is false. |
| grammarEncoding | String |
2.6 |
The file encoding to use for reading the grammar files. Default value is: ${project.build.sourceEncoding}. |
| ignoreCase | Boolean |
2.0 |
Setting this option to true causes the generated token
manager to ignore case in the token specifications and the input
files. Default value is false. |
| 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
**/*.jj and **/*.JJ are used to select
grammar files. |
| isStatic | Boolean |
2.0 |
If true, all methods and class variables are specified
as static in the generated parser and token manager. This allows
only one parser object to be present, but it improves the
performance of the parser. Default value is true. |
| javaUnicodeEscape | Boolean |
2.0 |
When set to true, the generated parser uses an input
stream object that processes Java Unicode escapes
(\uxxxx) before sending characters
to the token manager. Default value is false. |
| jdkVersion | String |
2.4 |
The Java version for which to generate source code. Default value
is 1.5 for plugin version 2.6+ and 1.4 in
older versions. |
| keepLineColumn | Boolean |
2.0 |
A flag whether to keep line and column information along with a
token. Default value is true. |
| lookAhead | Integer |
2.0 |
The number of tokens to look ahead before making a decision at a
choice point during parsing. The default value is 1. |
| otherAmbiguityCheck | Integer |
2.0 |
This is the number of tokens considered in checking all other kinds
of choices (i.e., of the forms "(A)*", "(A)+", and "(A)?") for
ambiguity. Default value is 1. |
| outputDirectory | File |
2.0 |
The directory where the parser files generated by JavaCC will be
stored. The directory will be registered as a compile source root
of the project such that the generated files will participate in
later build phases like compiling and packaging. Default value is: ${project.build.directory}/generated-sources/javacc. |
| packageName | String |
2.0 |
Deprecated. As of version 2.4 because the plugin extracts the package name from
each grammar file. |
| sanityCheck | Boolean |
2.0 |
Enables/disables many syntactic and semantic checks on the grammar
file during parser generation. Default value is true. |
| sourceDirectory | File |
2.0 |
The directory where the JavaCC grammar files (*.jj)
are located.Default value is: ${basedir}/src/main/javacc. |
| staleMillis | int |
2.0 |
The granularity in milliseconds of the last modification date for
testing whether a source needs recompilation. Default value is: 0. |
| supportClassVisibilityPublic | Boolean |
2.6 |
A flag whether the generated support classes of the parser should
have public or package-private visibility. Default value is
true. |
| tokenExtends | String |
2.5 |
The name of the base class for the generated Token
class. Default value is java.lang.Object. |
| tokenFactory | String |
2.5 |
The name of a custom factory class used to create
Token objects. This class must have a method with the
signature public static Token newToken(int ofKind, String
image). By default, tokens are created by calling
Token.newToken(). |
| tokenManagerUsesParser | Boolean |
2.0 |
When set to true, the generated token manager will
include a field called parser that references the
instantiating parser instance. Default value is false. |
| unicodeInput | Boolean |
2.0 |
When set to true, the generated parser uses uses an
input stream object that reads Unicode files. By default, ASCII
files are assumed. Default value is false. |
| userCharStream | Boolean |
2.0 |
This flag controls whether the token manager will read characters
from a character stream reader as defined by the options
javaUnicodeEscape and unicodeInput or
whether the token manager reads from a user-supplied implementation
of CharStream. Default value is false. |
| userTokenManager | Boolean |
2.0 |
The default action is to generate a token manager that works on the
specified grammar tokens. If this option is set to
true, then the parser is generated to accept tokens
from any token manager of type TokenManager - this
interface is generated into the generated parser directory. Default
value is false. |
*Parser.java) should be generated or not. If set to
false, only the token manager is generated. Default
value is true.java.lang.Boolean2.0No${buildParser}*TokenManager.java) should be generated or not.
Setting this to false can speed up the generation
process if only the parser part of the grammar changed. Default
value is true.java.lang.Boolean2.0No${buildTokenManager}true causes the generated
parser to lookahead for extra tokens ahead of time. Default value
is false.java.lang.Boolean2.0No${cacheTokens}2.java.lang.Integer2.0No${choiceAmbiguityCheck}true, every call to the token manager's
method getNextToken() (see the description of the Java
Compiler Compiler API) will cause a call to a user-defined
method CommonTokenAction() after the token has been
scanned in by the token manager. Default value is
false.java.lang.Boolean2.0No${commonTokenAction}false.
Setting this option to true causes the parser to
generate all the tracing information it does when the option
debugParser is true, and in addition,
also causes it to generated a trace of actions performed during
lookahead operation.java.lang.Boolean2.0No${debugLookAhead}true causes
the parser to generate a trace of its actions. Default value is
false.java.lang.Boolean2.0No${debugParser}false.java.lang.Boolean2.0No${debugTokenManager}false causes errors due to parse errors
to be reported in somewhat less detail. Default value is
true.java.lang.Boolean2.0No${errorReporting}java.lang.String[]2.0Nofalse.java.lang.Boolean2.0No${forceLaCheck}java.lang.String2.6No${grammarEncoding}${project.build.sourceEncoding}true causes the generated token
manager to ignore case in the token specifications and the input
files. Default value is false.java.lang.Boolean2.0No${ignoreCase}**/*.jj and **/*.JJ are used to select
grammar files.java.lang.String[]2.0Notrue, all methods and class variables are specified
as static in the generated parser and token manager. This allows
only one parser object to be present, but it improves the
performance of the parser. Default value is true.java.lang.Boolean2.0No${isStatic}true, the generated parser uses an input
stream object that processes Java Unicode escapes
(\uxxxx) before sending characters
to the token manager. Default value is false.java.lang.Boolean2.0No${javaUnicodeEscape}1.5 for plugin version 2.6+ and 1.4 in
older versions.java.lang.String2.4No${jdkVersion}true.java.lang.Boolean2.0No${keepLineColumn}1.java.lang.Integer2.0No${lookAhead}1.java.lang.Integer2.0No${otherAmbiguityCheck}java.io.File2.0No${outputDirectory}${project.build.directory}/generated-sources/javaccjava.lang.String2.0No${packageName}true.java.lang.Boolean2.0No${sanityCheck}*.jj)
are located.java.io.File2.0No${sourceDirectory}${basedir}/src/main/javaccint2.0No${lastModGranularityMs}0true.java.lang.Boolean2.6No${supportClassVisibilityPublic}Token
class. Default value is java.lang.Object.java.lang.String2.5No${tokenExtends}Token objects. This class must have a method with the
signature public static Token newToken(int ofKind, String
image). By default, tokens are created by calling
Token.newToken().java.lang.String2.5No${tokenFactory}true, the generated token manager will
include a field called parser that references the
instantiating parser instance. Default value is false.java.lang.Boolean2.0No${tokenManagerUsesParser}true, the generated parser uses uses an
input stream object that reads Unicode files. By default, ASCII
files are assumed. Default value is false.java.lang.Boolean2.0No${unicodeInput}javaUnicodeEscape and unicodeInput or
whether the token manager reads from a user-supplied implementation
of CharStream. Default value is false.java.lang.Boolean2.0No${userCharStream}true, then the parser is generated to accept tokens
from any token manager of type TokenManager - this
interface is generated into the generated parser directory. Default
value is false.java.lang.Boolean2.0No${userTokenManager}