|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.jostraca.JostracaAntlrTask
Invokes the ANTLR Translator generator on a grammar file.
| Field Summary |
| Fields inherited from class org.apache.tools.ant.Task |
description, location, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
| Constructor Summary | |
JostracaAntlrTask()
|
|
| Method Summary | |
protected void |
addClasspathEntry(java.lang.String resource)
Search for the given resource and add the directory or archive that contains it to the classpath. |
org.apache.tools.ant.types.Path |
createClasspath()
Adds a classpath to be set because a directory might be given for Antlr debug. |
org.apache.tools.ant.types.Commandline.Argument |
createJvmarg()
Adds a new JVM argument. |
void |
execute()
|
void |
init()
Adds the jars or directories containing Antlr this should make the forked JVM work without having to specify it directly. |
void |
setDebug(boolean enable)
Sets a flag to enable ParseView debugging |
void |
setDiagnostic(boolean enable)
Sets a flag to emit diagnostic text |
void |
setDir(java.io.File d)
The working directory of the process |
void |
setFork(boolean s)
|
void |
setGlib(java.lang.String superGrammar)
Sets an optional super grammar file. |
void |
setHtml(boolean enable)
If true, emit html |
void |
setOutputdirectory(java.io.File outputDirectory)
The directory to write the generated files to. |
void |
setTarget(java.io.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 |
| Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JostracaAntlrTask()
| Method Detail |
public void setTarget(java.io.File target)
public void setOutputdirectory(java.io.File outputDirectory)
public void setGlib(java.lang.String superGrammar)
public void setDebug(boolean enable)
public void setHtml(boolean enable)
public void setDiagnostic(boolean enable)
public void setTrace(boolean enable)
public void setTraceParser(boolean enable)
public void setTraceLexer(boolean enable)
public void setTraceTreeWalker(boolean enable)
public void setFork(boolean s)
public void setDir(java.io.File d)
public org.apache.tools.ant.types.Path createClasspath()
public org.apache.tools.ant.types.Commandline.Argument createJvmarg()
setFork(boolean)
public void init()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildExceptionprotected void addClasspathEntry(java.lang.String resource)
Doesn't work for archives in JDK 1.1 as the URL returned by getResource doesn't contain the name of the archive.
public void execute()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||