@NonNullApi @CacheableTask open class AntlrTask : SourceTask
Generates parsers from Antlr grammars.
AntlrTask()
Generates parsers from Antlr grammars. |
open fun execute(inputs: IncrementalTaskInputs): Unit |
|
open fun getAntlrClasspath(): FileCollection
Returns the classpath containing the Ant ANTLR task implementation. |
|
open fun getArguments(): MutableList<String>
List of command-line arguments passed to the antlr process |
|
open fun getMaxHeapSize(): String
The maximum heap size for the forked antlr process (ex: '1g'). |
|
open fun getOutputDirectory(): File
Returns the directory to generate the parser source files into. |
|
open fun getSource(): FileTree
Returns the source for this task, after the include and exclude patterns have been applied. Ignores source files which do not exist. |
|
open fun isTrace(): Boolean
Specifies that all rules call |
|
open fun isTraceLexer(): Boolean
Specifies that all lexer rules call |
|
open fun isTraceParser(): Boolean
Specifies that all parser rules call |
|
open fun isTraceTreeWalker(): Boolean
Specifies that all tree walker rules call |
|
open fun setArguments(arguments: MutableList<String>): Unit |
|
open fun setMaxHeapSize(maxHeapSize: String): Unit |
|
open fun setOutputDirectory(outputDirectory: File): Unit
Specifies the directory to generate the parser source files into. |
|
open fun setSource(source: FileTree): Unit
Sets the source for this task. Delegates to open fun setSource(source: Any): Unit
Sets the source for this task. Delegates to |
|
open fun setTrace(trace: Boolean): Unit |
|
open fun setTraceLexer(traceLexer: Boolean): Unit |
|
open fun setTraceParser(traceParser: Boolean): Unit |
|
open fun setTraceTreeWalker(traceTreeWalker: Boolean): Unit |
open fun exclude(vararg excludes: String): SourceTask open fun exclude(excludes: MutableIterable<String>): SourceTask open fun exclude(excludeSpec: Spec<FileTreeElement>): SourceTask open fun exclude(excludeSpec: Closure<Any>): SourceTask
{@inheritDoc} |
|
open fun getExcludes(): MutableSet<String>
{@inheritDoc} |
|
open fun getIncludes(): MutableSet<String>
{@inheritDoc} |
|
open fun include(vararg includes: String): SourceTask open fun include(includes: MutableIterable<String>): SourceTask open fun include(includeSpec: Spec<FileTreeElement>): SourceTask open fun include(includeSpec: Closure<Any>): SourceTask
{@inheritDoc} |
|
open fun setExcludes(excludes: MutableIterable<String>): SourceTask
{@inheritDoc} |
|
open fun setIncludes(includes: MutableIterable<String>): SourceTask
{@inheritDoc} |
|
open fun source(vararg sources: Any): SourceTask
Adds some source to this task. The given source objects will be evaluated as per |