public class ANTLR3
extends org.apache.tools.ant.Task
Constructor and Description |
---|
ANTLR3() |
Modifier and Type | Method and Description |
---|---|
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
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
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