@@ -56,10 +56,10 @@ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
56
56
* Parses ANTLR grammar files {@code *.g} and transforms them into Java source
57
57
* files.
58
58
*
59
- * @ goal antlr
60
- * @ phase generate-sources
61
- * @ requiresDependencyResolution compile
62
- * @ requiresProject true
59
+ * goal antlr
60
+ * phase generate-sources
61
+ * requiresDependencyResolution compile
62
+ * requiresProject true
63
63
*
64
64
* @author <a href="mailto:[email protected] ">Jim Idle</a>
65
65
*/
@@ -74,52 +74,52 @@ public class Antlr3Mojo
74
74
* it will report various statistics about the parser, such as information
75
75
* on cyclic DFAs, which rules may use backtracking, and so on.
76
76
*
77
- * @parameter default-value="false"
77
+ * default-value="false"
78
78
*/
79
79
protected boolean report ;
80
80
/**
81
81
* If set to true, then the ANTLR tool will print a version of the input
82
82
* grammar(s) which are stripped of any embedded actions.
83
83
*
84
- * @parameter default-value="false"
84
+ * default-value="false"
85
85
*/
86
86
protected boolean printGrammar ;
87
87
/**
88
88
* If set to true, then the code generated by the ANTLR code generator will
89
89
* be set to debug mode. This means that when run, the code will 'hang' and
90
90
* wait for a debug connection on a TCP port (49100 by default).
91
91
*
92
- * @parameter default-value="false"
92
+ * default-value="false"
93
93
*/
94
94
protected boolean debug ;
95
95
/**
96
96
* If set to true, then the generated parser will compute and report profile
97
97
* information at runtime.
98
98
*
99
- * @parameter default-value="false"
99
+ * default-value="false"
100
100
*/
101
101
protected boolean profile ;
102
102
/**
103
103
* If set to true, then the ANTLR tool will generate a description of the
104
104
* NFA for each rule in <a href="http://www.graphviz.org">Dot format</a>
105
105
*
106
- * @parameter default-value="false"
106
+ * default-value="false"
107
107
*/
108
108
protected boolean nfa ;
109
109
/**
110
110
* If set to true, then the ANTLR tool will generate a description of the
111
111
* DFA for each decision in the grammar in
112
112
* <a href="http://www.graphviz.org">Dot format</a>.
113
113
*
114
- * @parameter default-value="false"
114
+ * default-value="false"
115
115
*/
116
116
protected boolean dfa ;
117
117
/**
118
118
* If set to true, the generated parser code will log rule entry and exit
119
119
* points to stdout ({@link System#out} for the Java target) as an aid to
120
120
* debugging.
121
121
*
122
- * @parameter default-value="false"
122
+ * default-value="false"
123
123
*/
124
124
protected boolean trace ;
125
125
/**
@@ -128,23 +128,23 @@ public class Antlr3Mojo
128
128
* ANTLR supports the built-in formats {@code antlr}, {@code gnu} and
129
129
* {@code vs2005}.
130
130
*
131
- * @parameter default-value="antlr"
131
+ * default-value="antlr"
132
132
*/
133
133
protected String messageFormat ;
134
134
/**
135
135
* If set to true, then ANTLR will report verbose messages during the code
136
136
* generation process. This includes the names of files, the version of
137
137
* ANTLR, and more.
138
138
*
139
- * @parameter default-value="true"
139
+ * default-value="true"
140
140
*/
141
141
protected boolean verbose ;
142
142
143
143
/**
144
144
* The maximum number of alternatives allowed in an inline switch statement.
145
145
* Beyond this, ANTLR will not generate a switch statement for the DFA.
146
146
*
147
- * @parameter default-value="300"
147
+ * default-value="300"
148
148
*/
149
149
private int maxSwitchCaseLabels ;
150
150
@@ -153,7 +153,7 @@ public class Antlr3Mojo
153
153
* statement. For decisions with fewer alternatives, an if/else if/else
154
154
* statement will be used instead.
155
155
*
156
- * @parameter default-value="3"
156
+ * default-value="3"
157
157
*/
158
158
private int minSwitchAlts ;
159
159
@@ -171,30 +171,26 @@ public class Antlr3Mojo
171
171
* A set of Ant-like inclusion patterns used to select files from the source
172
172
* directory for processing. By default, the pattern <code>**/*.g</code>
173
173
* is used to select grammar files.</p>
174
- *
175
- * @parameter
176
174
*/
177
175
protected Set <String > includes = new HashSet <String >();
178
176
/**
179
177
* A set of Ant-like exclusion patterns used to prevent certain files from
180
178
* being processed. By default, this set is empty such that no files are
181
179
* excluded.
182
- *
183
- * @parameter
184
180
*/
185
181
protected Set <String > excludes = new HashSet <String >();
186
182
/**
187
183
* The current Maven project.
188
184
*
189
- * @parameter expression="${project}"
190
- * @ required
191
- * @ readonly
185
+ * expression="${project}"
186
+ * required
187
+ * readonly
192
188
*/
193
189
protected MavenProject project ;
194
190
/**
195
191
* The directory where the ANTLR grammar files ({@code *.g}) are located.
196
192
*
197
- * @parameter default-value="${basedir}/src/main/antlr3"
193
+ * default-value="${basedir}/src/main/antlr3"
198
194
*/
199
195
private File sourceDirectory ;
200
196
/**
@@ -203,7 +199,7 @@ public class Antlr3Mojo
203
199
* such that the generated files will participate in later build phases like
204
200
* compiling and packaging.
205
201
*
206
- * @parameter default-value="${project.build.directory}/generated-sources/antlr3"
202
+ * default-value="${project.build.directory}/generated-sources/antlr3"
207
203
* @required
208
204
*/
209
205
private File outputDirectory ;
@@ -212,7 +208,7 @@ public class Antlr3Mojo
212
208
* grammars. Note that ANTLR will not try to process grammars that it finds
213
209
* to be imported into other grammars (in the same processing session).
214
210
*
215
- * @parameter default-value="${basedir}/src/main/antlr3/imports"
211
+ * default-value="${basedir}/src/main/antlr3/imports"
216
212
*/
217
213
private File libDirectory ;
218
214
@@ -398,14 +394,6 @@ public void execute()
398
394
399
395
}
400
396
401
-
402
- /**
403
- *
404
- * @param sourceDirectory
405
- * @param outputDirectory
406
- * @throws IOException
407
- * @throws InclusionScanException
408
- */
409
397
private void processGrammarFiles (File sourceDirectory , File outputDirectory )
410
398
throws IOException , InclusionScanException {
411
399
// Which files under the source set should we be looking for as grammar files
0 commit comments