org.apache.tools.ant.taskdefs.optional
public class ANTLR extends Task
Constructor Summary | |
---|---|
ANTLR() Constructor for ANTLR task. |
Method Summary | |
---|---|
protected void | addClasspathEntry(String resource)
Search for the given resource and add the directory or archive
that contains it to the classpath.
|
Path | createClasspath()
Adds a classpath to be set
because a directory might be given for Antlr debug. |
Commandline.Argument | createJvmarg()
Adds a new JVM argument. |
void | execute()
Execute the task. |
void | init()
Adds the jars or directories containing Antlr
this should make the forked JVM work without having to
specify it directly. |
protected boolean | is272()
Whether the antlr version is 2.7.2 (or higher).
|
void | setDebug(boolean enable)
Sets a flag to enable ParseView debugging |
void | setDiagnostic(boolean enable)
Sets a flag to emit diagnostic text |
void | setDir(File d)
The working directory of the process |
void | setFork(boolean s) |
void | setGlib(String superGrammar)
Sets an optional super grammar file.
|
void | setGlib(File superGrammar)
Sets an optional super grammar file |
void | setHtml(boolean enable)
If true, emit html |
void | setOutputdirectory(File outputDirectory)
The directory to write the generated files to. |
void | setTarget(File target)
The grammar file to process. |
void | setTrace(boolean enable)
If true, enables all tracing. |
void | setTraceLexer(boolean enable)
If true, enables lexer tracing. |
void | setTraceParser(boolean enable)
If true, enables parser tracing. |
void | setTraceTreeWalker(boolean enable)
Sets a flag to allow the user to enable tree walker tracing |
Doesn't work for archives in JDK 1.1 as the URL returned by getResource doesn't contain the name of the archive.
Parameters: resource the resource name to search for
Returns: a path to be configured
Returns: create a new JVM argument so that any argument can be passed to the JVM.
See Also: ANTLR
Throws: BuildException on error
Throws: BuildException on error
Returns: true if the version of Antlr present is 2.7.2 or later.
Since: Ant 1.6
Parameters: enable a boolean
value
Parameters: enable a boolean
value
Parameters: d the working directory
Parameters: s a boolean
value
UNKNOWN: ignore="true"
Deprecated: since ant 1.6
Sets an optional super grammar file. Use setGlib(File superGrammar) instead.Parameters: superGrammar the super grammar filename
Parameters: superGrammar the super grammar file
Since: ant 1.6
Parameters: enable a boolean
value
Parameters: outputDirectory the output directory
Parameters: target the gramer file
Parameters: enable a boolean
value
Parameters: enable a boolean
value
Parameters: enable a boolean
value
Parameters: enable a boolean
value