source: other-projects/trunk/gs3-release-maker/apache-ant-1.6.5/build/javadocs/org/apache/tools/ant/taskdefs/optional/ANTLR.html@ 14627

Last change on this file since 14627 was 14627, checked in by oranfry, 17 years ago

initial import of the gs3-release-maker

File size: 29.1 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!--NewPage-->
3<HTML>
4<HEAD>
5<!-- Generated by javadoc (build 1.4.2_13) on Mon Oct 01 14:33:23 NZST 2007 -->
6<TITLE>
7ANTLR (Apache Ant API)
8</TITLE>
9
10<META NAME="keywords" CONTENT="org.apache.tools.ant.taskdefs.optional.ANTLR class">
11
12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
13
14<SCRIPT type="text/javascript">
15function windowTitle()
16{
17 parent.document.title="ANTLR (Apache Ant API)";
18}
19</SCRIPT>
20
21</HEAD>
22
23<BODY BGCOLOR="white" onload="windowTitle();">
24
25
26<!-- ========= START OF TOP NAVBAR ======= -->
27<A NAME="navbar_top"><!-- --></A>
28<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
29<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
30<TR>
31<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
32<A NAME="navbar_top_firstrow"><!-- --></A>
33<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
34 <TR ALIGN="center" VALIGN="top">
35 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
36 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
37 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
42 </TR>
43</TABLE>
44</TD>
45<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
46</EM>
47</TD>
48</TR>
49
50<TR>
51<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
52&nbsp;PREV CLASS&nbsp;
53&nbsp;<A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/Cab.html" title="class in org.apache.tools.ant.taskdefs.optional"><B>NEXT CLASS</B></A></FONT></TD>
54<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
55 <A HREF="../../../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
56&nbsp;<A HREF="ANTLR.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
57&nbsp;<SCRIPT type="text/javascript">
58 <!--
59 if(window==top) {
60 document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
61 }
62 //-->
63</SCRIPT>
64<NOSCRIPT>
65 <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
66</NOSCRIPT>
67
68</FONT></TD>
69</TR>
70<TR>
71<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
72 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_org.apache.tools.ant.Task">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
73<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
74DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
75</TR>
76</TABLE>
77<A NAME="skip-navbar_top"></A>
78<!-- ========= END OF TOP NAVBAR ========= -->
79
80<HR>
81<!-- ======== START OF CLASS DATA ======== -->
82<H2>
83<FONT SIZE="-1">
84org.apache.tools.ant.taskdefs.optional</FONT>
85<BR>
86Class ANTLR</H2>
87<PRE>
88java.lang.Object
89 <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">org.apache.tools.ant.ProjectComponent</A>
90 <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">org.apache.tools.ant.Task</A>
91 <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.taskdefs.optional.ANTLR</B>
92</PRE>
93<HR>
94<DL>
95<DT>public class <B>ANTLR</B><DT>extends <A HREF="../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></DL>
96
97<P>
98Invokes the ANTLR Translator generator on a grammar file.
99<P>
100
101<P>
102<HR>
103
104<P>
105<!-- ======== NESTED CLASS SUMMARY ======== -->
106
107
108<!-- =========== FIELD SUMMARY =========== -->
109
110<A NAME="field_summary"><!-- --></A>
111<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
112<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
113<TD COLSPAN=2><FONT SIZE="+2">
114<B>Field Summary</B></FONT></TD>
115</TR>
116</TABLE>
117&nbsp;<A NAME="fields_inherited_from_class_org.apache.tools.ant.Task"><!-- --></A>
118<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
119<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
120<TD><B>Fields inherited from class org.apache.tools.ant.<A HREF="../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></B></TD>
121</TR>
122<TR BGCOLOR="white" CLASS="TableRowColor">
123<TD><CODE><A HREF="../../../../../../org/apache/tools/ant/Task.html#description">description</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#location">location</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#taskName">taskName</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#taskType">taskType</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#wrapper">wrapper</A></CODE></TD>
124</TR>
125</TABLE>
126&nbsp;<A NAME="fields_inherited_from_class_org.apache.tools.ant.ProjectComponent"><!-- --></A>
127<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
128<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
129<TD><B>Fields inherited from class org.apache.tools.ant.<A HREF="../../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">ProjectComponent</A></B></TD>
130</TR>
131<TR BGCOLOR="white" CLASS="TableRowColor">
132<TD><CODE><A HREF="../../../../../../org/apache/tools/ant/ProjectComponent.html#project">project</A></CODE></TD>
133</TR>
134</TABLE>
135&nbsp;
136<!-- ======== CONSTRUCTOR SUMMARY ======== -->
137
138<A NAME="constructor_summary"><!-- --></A>
139<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
140<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
141<TD COLSPAN=2><FONT SIZE="+2">
142<B>Constructor Summary</B></FONT></TD>
143</TR>
144<TR BGCOLOR="white" CLASS="TableRowColor">
145<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/ANTLR.html#ANTLR()">ANTLR</A></B>()</CODE>
146
147<BR>
148&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
149</TR>
150</TABLE>
151&nbsp;
152<!-- ========== METHOD SUMMARY =========== -->
153
154<A NAME="method_summary"><!-- --></A>
155<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
156<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
157<TD COLSPAN=2><FONT SIZE="+2">
158<B>Method Summary</B></FONT></TD>
159</TR>
160<TR BGCOLOR="white" CLASS="TableRowColor">
161<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
162<CODE>protected &nbsp;void</CODE></FONT></TD>
163<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/ANTLR.html#addClasspathEntry(java.lang.String)">addClasspathEntry</A></B>(java.lang.String&nbsp;resource)</CODE>
164
165<BR>
166&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Search for the given resource and add the directory or archive
167 that contains it to the classpath.</TD>
168</TR>
169<TR BGCOLOR="white" CLASS="TableRowColor">
170<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
171<CODE>&nbsp;<A HREF="../../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A></CODE></FONT></TD>
172<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/ANTLR.html#createClasspath()">createClasspath</A></B>()</CODE>
173
174<BR>
175&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a classpath to be set
176 because a directory might be given for Antlr debug.</TD>
177</TR>
178<TR BGCOLOR="white" CLASS="TableRowColor">
179<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
180<CODE>&nbsp;<A HREF="../../../../../../org/apache/tools/ant/types/Commandline.Argument.html" title="class in org.apache.tools.ant.types">Commandline.Argument</A></CODE></FONT></TD>
181<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/ANTLR.html#createJvmarg()">createJvmarg</A></B>()</CODE>
182
183<BR>
184&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a new JVM argument.</TD>
185</TR>
186<TR BGCOLOR="white" CLASS="TableRowColor">
187<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
188<CODE>&nbsp;void</CODE></FONT></TD>
189<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/ANTLR.html#execute()">execute</A></B>()</CODE>
190
191<BR>
192&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called by the project to let the task do its work.</TD>
193</TR>
194<TR BGCOLOR="white" CLASS="TableRowColor">
195<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
196<CODE>&nbsp;void</CODE></FONT></TD>
197<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/ANTLR.html#init()">init</A></B>()</CODE>
198
199<BR>
200&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds the jars or directories containing Antlr
201 this should make the forked JVM work without having to
202 specify it directly.</TD>
203</TR>
204<TR BGCOLOR="white" CLASS="TableRowColor">
205<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
206<CODE>protected &nbsp;boolean</CODE></FONT></TD>
207<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/ANTLR.html#is272()">is272</A></B>()</CODE>
208
209<BR>
210&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Whether the antlr version is 2.7.2 (or higher).</TD>
211</TR>
212<TR BGCOLOR="white" CLASS="TableRowColor">
213<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
214<CODE>&nbsp;void</CODE></FONT></TD>
215<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/ANTLR.html#setDebug(boolean)">setDebug</A></B>(boolean&nbsp;enable)</CODE>
216
217<BR>
218&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets a flag to enable ParseView debugging</TD>
219</TR>
220<TR BGCOLOR="white" CLASS="TableRowColor">
221<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
222<CODE>&nbsp;void</CODE></FONT></TD>
223<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/ANTLR.html#setDiagnostic(boolean)">setDiagnostic</A></B>(boolean&nbsp;enable)</CODE>
224
225<BR>
226&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets a flag to emit diagnostic text</TD>
227</TR>
228<TR BGCOLOR="white" CLASS="TableRowColor">
229<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
230<CODE>&nbsp;void</CODE></FONT></TD>
231<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/ANTLR.html#setDir(java.io.File)">setDir</A></B>(java.io.File&nbsp;d)</CODE>
232
233<BR>
234&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The working directory of the process</TD>
235</TR>
236<TR BGCOLOR="white" CLASS="TableRowColor">
237<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
238<CODE>&nbsp;void</CODE></FONT></TD>
239<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/ANTLR.html#setFork(boolean)">setFork</A></B>(boolean&nbsp;s)</CODE>
240
241<BR>
242&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
243</TR>
244<TR BGCOLOR="white" CLASS="TableRowColor">
245<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
246<CODE>&nbsp;void</CODE></FONT></TD>
247<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/ANTLR.html#setGlib(java.io.File)">setGlib</A></B>(java.io.File&nbsp;superGrammar)</CODE>
248
249<BR>
250&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets an optional super grammar file</TD>
251</TR>
252<TR BGCOLOR="white" CLASS="TableRowColor">
253<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
254<CODE>&nbsp;void</CODE></FONT></TD>
255<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/ANTLR.html#setGlib(java.lang.String)">setGlib</A></B>(java.lang.String&nbsp;superGrammar)</CODE>
256
257<BR>
258&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>since ant 1.6</I></TD>
259</TR>
260<TR BGCOLOR="white" CLASS="TableRowColor">
261<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
262<CODE>&nbsp;void</CODE></FONT></TD>
263<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/ANTLR.html#setHtml(boolean)">setHtml</A></B>(boolean&nbsp;enable)</CODE>
264
265<BR>
266&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If true, emit html</TD>
267</TR>
268<TR BGCOLOR="white" CLASS="TableRowColor">
269<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
270<CODE>&nbsp;void</CODE></FONT></TD>
271<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/ANTLR.html#setOutputdirectory(java.io.File)">setOutputdirectory</A></B>(java.io.File&nbsp;outputDirectory)</CODE>
272
273<BR>
274&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The directory to write the generated files to.</TD>
275</TR>
276<TR BGCOLOR="white" CLASS="TableRowColor">
277<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
278<CODE>&nbsp;void</CODE></FONT></TD>
279<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/ANTLR.html#setTarget(java.io.File)">setTarget</A></B>(java.io.File&nbsp;target)</CODE>
280
281<BR>
282&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The grammar file to process.</TD>
283</TR>
284<TR BGCOLOR="white" CLASS="TableRowColor">
285<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
286<CODE>&nbsp;void</CODE></FONT></TD>
287<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/ANTLR.html#setTrace(boolean)">setTrace</A></B>(boolean&nbsp;enable)</CODE>
288
289<BR>
290&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If true, enables all tracing.</TD>
291</TR>
292<TR BGCOLOR="white" CLASS="TableRowColor">
293<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
294<CODE>&nbsp;void</CODE></FONT></TD>
295<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/ANTLR.html#setTraceLexer(boolean)">setTraceLexer</A></B>(boolean&nbsp;enable)</CODE>
296
297<BR>
298&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If true, enables lexer tracing.</TD>
299</TR>
300<TR BGCOLOR="white" CLASS="TableRowColor">
301<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
302<CODE>&nbsp;void</CODE></FONT></TD>
303<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/ANTLR.html#setTraceParser(boolean)">setTraceParser</A></B>(boolean&nbsp;enable)</CODE>
304
305<BR>
306&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If true, enables parser tracing.</TD>
307</TR>
308<TR BGCOLOR="white" CLASS="TableRowColor">
309<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
310<CODE>&nbsp;void</CODE></FONT></TD>
311<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/ANTLR.html#setTraceTreeWalker(boolean)">setTraceTreeWalker</A></B>(boolean&nbsp;enable)</CODE>
312
313<BR>
314&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets a flag to allow the user to enable tree walker tracing</TD>
315</TR>
316</TABLE>
317&nbsp;<A NAME="methods_inherited_from_class_org.apache.tools.ant.Task"><!-- --></A>
318<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
319<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
320<TD><B>Methods inherited from class org.apache.tools.ant.<A HREF="../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></B></TD>
321</TR>
322<TR BGCOLOR="white" CLASS="TableRowColor">
323<TD><CODE><A HREF="../../../../../../org/apache/tools/ant/Task.html#getDescription()">getDescription</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#getLocation()">getLocation</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#getOwningTarget()">getOwningTarget</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#getRuntimeConfigurableWrapper()">getRuntimeConfigurableWrapper</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#getTaskName()">getTaskName</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#getTaskType()">getTaskType</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#getWrapper()">getWrapper</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#handleErrorFlush(java.lang.String)">handleErrorFlush</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#handleErrorOutput(java.lang.String)">handleErrorOutput</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#handleFlush(java.lang.String)">handleFlush</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#handleInput(byte[], int, int)">handleInput</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#handleOutput(java.lang.String)">handleOutput</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#isInvalid()">isInvalid</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#log(java.lang.String)">log</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#log(java.lang.String, int)">log</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#maybeConfigure()">maybeConfigure</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#perform()">perform</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#reconfigure()">reconfigure</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#setDescription(java.lang.String)">setDescription</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#setLocation(org.apache.tools.ant.Location)">setLocation</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#setOwningTarget(org.apache.tools.ant.Target)">setOwningTarget</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#setRuntimeConfigurableWrapper(org.apache.tools.ant.RuntimeConfigurable)">setRuntimeConfigurableWrapper</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#setTaskName(java.lang.String)">setTaskName</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#setTaskType(java.lang.String)">setTaskType</A></CODE></TD>
324</TR>
325</TABLE>
326&nbsp;<A NAME="methods_inherited_from_class_org.apache.tools.ant.ProjectComponent"><!-- --></A>
327<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
328<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
329<TD><B>Methods inherited from class org.apache.tools.ant.<A HREF="../../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">ProjectComponent</A></B></TD>
330</TR>
331<TR BGCOLOR="white" CLASS="TableRowColor">
332<TD><CODE><A HREF="../../../../../../org/apache/tools/ant/ProjectComponent.html#getProject()">getProject</A>, <A HREF="../../../../../../org/apache/tools/ant/ProjectComponent.html#setProject(org.apache.tools.ant.Project)">setProject</A></CODE></TD>
333</TR>
334</TABLE>
335&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
336<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
337<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
338<TD><B>Methods inherited from class java.lang.Object</B></TD>
339</TR>
340<TR BGCOLOR="white" CLASS="TableRowColor">
341<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
342</TR>
343</TABLE>
344&nbsp;
345<P>
346
347<!-- ============ FIELD DETAIL =========== -->
348
349
350<!-- ========= CONSTRUCTOR DETAIL ======== -->
351
352<A NAME="constructor_detail"><!-- --></A>
353<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
354<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
355<TD COLSPAN=1><FONT SIZE="+2">
356<B>Constructor Detail</B></FONT></TD>
357</TR>
358</TABLE>
359
360<A NAME="ANTLR()"><!-- --></A><H3>
361ANTLR</H3>
362<PRE>
363public <B>ANTLR</B>()</PRE>
364<DL>
365</DL>
366
367<!-- ============ METHOD DETAIL ========== -->
368
369<A NAME="method_detail"><!-- --></A>
370<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
371<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
372<TD COLSPAN=1><FONT SIZE="+2">
373<B>Method Detail</B></FONT></TD>
374</TR>
375</TABLE>
376
377<A NAME="setTarget(java.io.File)"><!-- --></A><H3>
378setTarget</H3>
379<PRE>
380public void <B>setTarget</B>(java.io.File&nbsp;target)</PRE>
381<DL>
382<DD>The grammar file to process.
383<P>
384<DD><DL>
385</DL>
386</DD>
387</DL>
388<HR>
389
390<A NAME="setOutputdirectory(java.io.File)"><!-- --></A><H3>
391setOutputdirectory</H3>
392<PRE>
393public void <B>setOutputdirectory</B>(java.io.File&nbsp;outputDirectory)</PRE>
394<DL>
395<DD>The directory to write the generated files to.
396<P>
397<DD><DL>
398</DL>
399</DD>
400</DL>
401<HR>
402
403<A NAME="setGlib(java.lang.String)"><!-- --></A><H3>
404setGlib</H3>
405<PRE>
406public void <B>setGlib</B>(java.lang.String&nbsp;superGrammar)</PRE>
407<DL>
408<DD><B>Deprecated.</B>&nbsp;<I>since ant 1.6</I>
409<P>
410<DD>Sets an optional super grammar file.
411 Use setGlib(File superGrammar) instead.
412<P>
413<DD><DL>
414</DL>
415</DD>
416</DL>
417<HR>
418
419<A NAME="setGlib(java.io.File)"><!-- --></A><H3>
420setGlib</H3>
421<PRE>
422public void <B>setGlib</B>(java.io.File&nbsp;superGrammar)</PRE>
423<DL>
424<DD>Sets an optional super grammar file
425<P>
426<DD><DL>
427<DT><B>Since:</B></DT>
428 <DD>ant 1.6</DD>
429</DL>
430</DD>
431</DL>
432<HR>
433
434<A NAME="setDebug(boolean)"><!-- --></A><H3>
435setDebug</H3>
436<PRE>
437public void <B>setDebug</B>(boolean&nbsp;enable)</PRE>
438<DL>
439<DD>Sets a flag to enable ParseView debugging
440<P>
441<DD><DL>
442</DL>
443</DD>
444</DL>
445<HR>
446
447<A NAME="setHtml(boolean)"><!-- --></A><H3>
448setHtml</H3>
449<PRE>
450public void <B>setHtml</B>(boolean&nbsp;enable)</PRE>
451<DL>
452<DD>If true, emit html
453<P>
454<DD><DL>
455</DL>
456</DD>
457</DL>
458<HR>
459
460<A NAME="setDiagnostic(boolean)"><!-- --></A><H3>
461setDiagnostic</H3>
462<PRE>
463public void <B>setDiagnostic</B>(boolean&nbsp;enable)</PRE>
464<DL>
465<DD>Sets a flag to emit diagnostic text
466<P>
467<DD><DL>
468</DL>
469</DD>
470</DL>
471<HR>
472
473<A NAME="setTrace(boolean)"><!-- --></A><H3>
474setTrace</H3>
475<PRE>
476public void <B>setTrace</B>(boolean&nbsp;enable)</PRE>
477<DL>
478<DD>If true, enables all tracing.
479<P>
480<DD><DL>
481</DL>
482</DD>
483</DL>
484<HR>
485
486<A NAME="setTraceParser(boolean)"><!-- --></A><H3>
487setTraceParser</H3>
488<PRE>
489public void <B>setTraceParser</B>(boolean&nbsp;enable)</PRE>
490<DL>
491<DD>If true, enables parser tracing.
492<P>
493<DD><DL>
494</DL>
495</DD>
496</DL>
497<HR>
498
499<A NAME="setTraceLexer(boolean)"><!-- --></A><H3>
500setTraceLexer</H3>
501<PRE>
502public void <B>setTraceLexer</B>(boolean&nbsp;enable)</PRE>
503<DL>
504<DD>If true, enables lexer tracing.
505<P>
506<DD><DL>
507</DL>
508</DD>
509</DL>
510<HR>
511
512<A NAME="setTraceTreeWalker(boolean)"><!-- --></A><H3>
513setTraceTreeWalker</H3>
514<PRE>
515public void <B>setTraceTreeWalker</B>(boolean&nbsp;enable)</PRE>
516<DL>
517<DD>Sets a flag to allow the user to enable tree walker tracing
518<P>
519<DD><DL>
520</DL>
521</DD>
522</DL>
523<HR>
524
525<A NAME="setFork(boolean)"><!-- --></A><H3>
526setFork</H3>
527<PRE>
528public void <B>setFork</B>(boolean&nbsp;s)</PRE>
529<DL>
530<DD><DL>
531</DL>
532</DD>
533</DL>
534<HR>
535
536<A NAME="setDir(java.io.File)"><!-- --></A><H3>
537setDir</H3>
538<PRE>
539public void <B>setDir</B>(java.io.File&nbsp;d)</PRE>
540<DL>
541<DD>The working directory of the process
542<P>
543<DD><DL>
544</DL>
545</DD>
546</DL>
547<HR>
548
549<A NAME="createClasspath()"><!-- --></A><H3>
550createClasspath</H3>
551<PRE>
552public <A HREF="../../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A> <B>createClasspath</B>()</PRE>
553<DL>
554<DD>Adds a classpath to be set
555 because a directory might be given for Antlr debug.
556<P>
557<DD><DL>
558</DL>
559</DD>
560</DL>
561<HR>
562
563<A NAME="createJvmarg()"><!-- --></A><H3>
564createJvmarg</H3>
565<PRE>
566public <A HREF="../../../../../../org/apache/tools/ant/types/Commandline.Argument.html" title="class in org.apache.tools.ant.types">Commandline.Argument</A> <B>createJvmarg</B>()</PRE>
567<DL>
568<DD>Adds a new JVM argument.
569<P>
570<DD><DL>
571
572<DT><B>Returns:</B><DD>create a new JVM argument so that any argument can be passed to the JVM.<DT><B>See Also:</B><DD><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/ANTLR.html#setFork(boolean)"><CODE>setFork(boolean)</CODE></A></DL>
573</DD>
574</DL>
575<HR>
576
577<A NAME="init()"><!-- --></A><H3>
578init</H3>
579<PRE>
580public void <B>init</B>()
581 throws <A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
582<DL>
583<DD>Adds the jars or directories containing Antlr
584 this should make the forked JVM work without having to
585 specify it directly.
586<P>
587<DD><DL>
588<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../org/apache/tools/ant/Task.html#init()">init</A></CODE> in class <CODE><A HREF="../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></CODE></DL>
589</DD>
590<DD><DL>
591
592<DT><B>Throws:</B>
593<DD><CODE><A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - if something goes wrong with the build</DL>
594</DD>
595</DL>
596<HR>
597
598<A NAME="addClasspathEntry(java.lang.String)"><!-- --></A><H3>
599addClasspathEntry</H3>
600<PRE>
601protected void <B>addClasspathEntry</B>(java.lang.String&nbsp;resource)</PRE>
602<DL>
603<DD>Search for the given resource and add the directory or archive
604 that contains it to the classpath.
605
606 <p>Doesn't work for archives in JDK 1.1 as the URL returned by
607 getResource doesn't contain the name of the archive.</p>
608<P>
609<DD><DL>
610</DL>
611</DD>
612</DL>
613<HR>
614
615<A NAME="execute()"><!-- --></A><H3>
616execute</H3>
617<PRE>
618public void <B>execute</B>()
619 throws <A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
620<DL>
621<DD><B>Description copied from class: <CODE><A HREF="../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></CODE></B></DD>
622<DD>Called by the project to let the task do its work. This method may be
623 called more than once, if the task is invoked more than once.
624 For example,
625 if target1 and target2 both depend on target3, then running
626 "ant target1 target2" will run all tasks in target3 twice.
627<P>
628<DD><DL>
629<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../org/apache/tools/ant/Task.html#execute()">execute</A></CODE> in class <CODE><A HREF="../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></CODE></DL>
630</DD>
631<DD><DL>
632
633<DT><B>Throws:</B>
634<DD><CODE><A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - if something goes wrong with the build</DL>
635</DD>
636</DL>
637<HR>
638
639<A NAME="is272()"><!-- --></A><H3>
640is272</H3>
641<PRE>
642protected boolean <B>is272</B>()</PRE>
643<DL>
644<DD>Whether the antlr version is 2.7.2 (or higher).
645<P>
646<DD><DL>
647
648<DT><B>Returns:</B><DD>true if the version of Antlr present is 2.7.2 or later.<DT><B>Since:</B></DT>
649 <DD>Ant 1.6</DD>
650</DL>
651</DD>
652</DL>
653<!-- ========= END OF CLASS DATA ========= -->
654<HR>
655
656
657<!-- ======= START OF BOTTOM NAVBAR ====== -->
658<A NAME="navbar_bottom"><!-- --></A>
659<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
660<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
661<TR>
662<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
663<A NAME="navbar_bottom_firstrow"><!-- --></A>
664<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
665 <TR ALIGN="center" VALIGN="top">
666 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
667 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
668 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
669 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
670 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
671 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
672 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
673 </TR>
674</TABLE>
675</TD>
676<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
677</EM>
678</TD>
679</TR>
680
681<TR>
682<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
683&nbsp;PREV CLASS&nbsp;
684&nbsp;<A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/Cab.html" title="class in org.apache.tools.ant.taskdefs.optional"><B>NEXT CLASS</B></A></FONT></TD>
685<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
686 <A HREF="../../../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
687&nbsp;<A HREF="ANTLR.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
688&nbsp;<SCRIPT type="text/javascript">
689 <!--
690 if(window==top) {
691 document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
692 }
693 //-->
694</SCRIPT>
695<NOSCRIPT>
696 <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
697</NOSCRIPT>
698
699</FONT></TD>
700</TR>
701<TR>
702<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
703 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_org.apache.tools.ant.Task">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
704<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
705DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
706</TR>
707</TABLE>
708<A NAME="skip-navbar_bottom"></A>
709<!-- ======== END OF BOTTOM NAVBAR ======= -->
710
711<HR>
712Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
713</BODY>
714</HTML>
Note: See TracBrowser for help on using the repository browser.