|
||||||||
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.apache.tools.ant.antlr.ANTLR3
public class ANTLR3
Invokes the ANTLR3 Translator generator on a grammar file.
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.Task |
---|
taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
ANTLR3()
|
Method Summary | |
---|---|
protected void |
addClasspathEntry(java.lang.String resource,
java.lang.String msg)
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()
|
java.io.File |
getOutputdirectory()
The directory to write the generated files to. |
void |
init()
Adds the jars or directories containing Antlr and associates. |
void |
setConversiontimeout(java.lang.String conversiontimeoutString)
Deprecated. |
void |
setDbgST(boolean enable)
test lookahead against EBNF block exit branches |
void |
setDebug(boolean enable)
Sets a flag to enable ParseView debugging |
void |
setDepend(boolean s)
Deprecated. |
void |
setDfa(boolean enable)
Sets a flag to enable nfa generation |
void |
setDiagnostic(boolean enable)
Deprecated. |
void |
setDir(java.io.File d)
The working directory of the process |
void |
setFork(boolean s)
|
void |
setGlib(java.io.File superGrammarFile)
Deprecated. |
void |
setGrammartree(boolean enable)
Set a flag to enable printing of the grammar tree |
void |
setLibdirectory(java.io.File libDirectoryFile)
The token files output directory. |
void |
setMake(boolean enable)
Sets a flag to enable build only if generated files older than grammar |
void |
setMaxInlineDFAStates(java.lang.String maxinlinedfastatesString)
override the default limit before table used rather han inlining with -Xmaxinlinedfastates m |
void |
setMessageformat(java.lang.String name)
The output style for messages. |
void |
setMultithreaded(boolean enable)
Run the analysis multithreaded |
void |
setNfa(boolean enable)
Sets a flag to enable nfa generation |
void |
setNocollapse(boolean enable)
collapse incident edges into DFA states |
void |
setNoMergeStopStates(boolean enable)
do not merge stop states |
void |
setNoprune(boolean enable)
test lookahead against EBNF block exit branches |
void |
setOutputdirectory(java.io.File outputDirectoryFile)
The directory to write the generated files to. |
void |
setPrint(boolean enable)
Sets a flag to print out the grammar without actions |
void |
setProfile(boolean enable)
Sets a flag to enable profiling |
void |
setReport(boolean enable)
Sets a flag to enable report statistics |
void |
setTarget(java.io.File targetFile)
The grammar file to process. |
void |
setTrace(boolean enable)
If true, generate a recognizer that traces rule entry/exit. |
void |
setTraceLexer(boolean enable)
Deprecated. |
void |
setTraceParser(boolean enable)
Deprecated. |
void |
setVerbose(boolean enable)
Sets a flag to enable verbose mode |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ANTLR3()
Method Detail |
---|
public void setTarget(java.io.File targetFile)
public void setOutputdirectory(java.io.File outputDirectoryFile)
public java.io.File getOutputdirectory()
public void setLibdirectory(java.io.File libDirectoryFile)
public void setMessageformat(java.lang.String name)
public void setGlib(java.io.File superGrammarFile)
public void setDebug(boolean enable)
public void setVerbose(boolean enable)
public void setReport(boolean enable)
public void setPrint(boolean enable)
public void setProfile(boolean enable)
public void setNfa(boolean enable)
public void setDfa(boolean enable)
public void setMake(boolean enable)
public void setMultithreaded(boolean enable)
enable
- public void setNoMergeStopStates(boolean enable)
enable
- public void setNocollapse(boolean enable)
enable
- public void setNoprune(boolean enable)
enable
- public void setDbgST(boolean enable)
enable
- public void setConversiontimeout(java.lang.String conversiontimeoutString)
conversiontimeoutString
- public void setMaxInlineDFAStates(java.lang.String maxinlinedfastatesString)
maxinlinedfastatesString
- public void setGrammartree(boolean enable)
public void setDepend(boolean s)
public void setDiagnostic(boolean enable)
public void setTrace(boolean enable)
public void setTraceParser(boolean enable)
public void setTraceLexer(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
init
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
protected void addClasspathEntry(java.lang.String resource, java.lang.String msg)
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
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |