Generates parsers from Antlr grammars.
| Type | Name and description |
|---|---|
void |
execute(IncrementalTaskInputs inputs) |
FileCollection |
getAntlrClasspath()Returns the classpath containing the Ant ANTLR task implementation. |
List<String> |
getArguments()List of command-line arguments passed to the antlr process |
String |
getMaxHeapSize()The maximum heap size for the forked antlr process (ex: '1g'). |
File |
getOutputDirectory()Returns the directory to generate the parser source files into. |
protected Factory<WorkerProcessBuilder> |
getWorkerProcessBuilderFactory() |
boolean |
isTrace()Specifies that all rules call traceIn/traceOut. |
boolean |
isTraceLexer()Specifies that all lexer rules call traceIn/traceOut. |
boolean |
isTraceParser()Specifies that all parser rules call traceIn/traceOut. |
boolean |
isTraceTreeWalker()Specifies that all tree walker rules call traceIn/traceOut. |
protected void |
setAntlrClasspath(FileCollection antlrClasspath)Specifies the classpath containing the Ant ANTLR task implementation. |
void |
setArguments(List<String> arguments) |
void |
setMaxHeapSize(String maxHeapSize) |
void |
setOutputDirectory(File outputDirectory)Specifies the directory to generate the parser source files into. |
void |
setTrace(boolean trace) |
void |
setTraceLexer(boolean traceLexer) |
void |
setTraceParser(boolean traceParser) |
void |
setTraceTreeWalker(boolean traceTreeWalker) |
Returns the classpath containing the Ant ANTLR task implementation.
List of command-line arguments passed to the antlr process
The maximum heap size for the forked antlr process (ex: '1g').
Returns the directory to generate the parser source files into.
Specifies that all rules call traceIn/traceOut.
Specifies that all lexer rules call traceIn/traceOut.
Specifies that all parser rules call traceIn/traceOut.
Specifies that all tree walker rules call traceIn/traceOut.
Specifies the classpath containing the Ant ANTLR task implementation.
antlrClasspath - The Ant task implementation classpath. Must not be null.Specifies the directory to generate the parser source files into.
outputDirectory - The output directory. Must not be null.