Class JavaCCTask
-
- All Implemented Interfaces:
-
kotlin.Comparable,org.gradle.api.Named,org.gradle.api.Task,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.plugins.ExtensionAware,org.gradle.util.Configurable
@CacheableTask() public abstract class JavaCCTask extends DefaultTaskTask implementation for JavaCC code generation. The code will be generated by a worker executor.
-
-
Field Summary
Fields Modifier and Type Field Description private FileoutputDirprivate FileinputFileprivate StringpackageNameprivate StringjdkVersionprivate Integerlookaheadprivate IntegerchoiceAmbiguityCheckprivate IntegerotherAmbiguityCheckprivate StringstaticParamprivate StringsupportClassVisibilityPublicprivate StringdebugParserprivate StringdebugLookaheadprivate StringdebugTokenManagerprivate StringerrorReportingprivate StringjavaUnicodeEscapeprivate StringunicodeInputprivate StringignoreCaseprivate StringcommonTokenActionprivate StringuserTokenManagerprivate StringuserCharStreamprivate StringbuildParserprivate StringbuildTokenManagerprivate StringtokenManagerUsesParserprivate StringsanityCheckprivate StringforceLaCheckprivate StringcacheTokensprivate StringkeepLineColumnprivate StringtokenExtendsprivate StringtokenFactoryprivate List<String>javaCCArgsprivate JJTreejjTreeprivate final ConfigurableFileCollectiontoolsclasspathfilesprivate final TaskOutputsInternaloutputsprivate final Spec<in TaskInternal>onlyIfprivate final Property<Duration>timeoutprivate final TaskRequiredServicesrequiredServicesprivate final TaskDependencyInternaltaskDependenciesprivate final Set<Object>dependsOnprivate final TaskDestroyablesdestroyablesprivate final Loggerloggerprivate final Stringpathprivate final Factory<File>temporaryDirFactoryprivate final Optional<String>reasonTaskIsIncompatibleWithConfigurationCacheprivate final TaskLocalStatelocalStateprivate final List<InputChangesAwareTaskAction>taskActionsprivate final TaskDependencyInternallifecycleDependenciesprivate BooleanisEnabledprivate BooleanimpliesSubProjectsprivate final TaskInputsInternalinputsprivate Booleanenabledprivate final TaskStateInternalstateprivate final TaskIdentity<?>taskIdentityprivate final TaskDependencyshouldRunAfterprivate final ExtensionContainerextensionsprivate final BooleanisCompatibleWithConfigurationCacheprivate final TaskDependencyfinalizedByprivate final AntBuilderantprivate final DynamicObjectasDynamicObjectprivate final List<ResourceLock>sharedResourcesprivate BooleandidWorkprivate final Optional<String>reasonNotToTrackStateprivate Stringgroupprivate final Set<String>reasonsNotToTrackStateprivate final BooleanisHasCustomActionsprivate List<Action<in Task>>actionsprivate final Stringnameprivate final FiletemporaryDirprivate final LoggingManagerloggingprivate final PathidentityPathprivate final TaskDependencymustRunAfterprivate final StandardOutputCapturestandardOutputCaptureprivate final Projectprojectprivate Stringdescription
-
Constructor Summary
Constructors Constructor Description JavaCCTask(ObjectFactory objectFactory, WorkerExecutor workerExecutor)Creates a task with a worker.
-
Method Summary
Modifier and Type Method Description final FilegetOutputDir()Output dir for JavaCC code generation. final UnitsetOutputDir(File value)Output dir for JavaCC code generation. final FilegetInputFile()Input file for code generation. final UnitsetInputFile(File value)Input file for code generation. final StringgetPackageName()This is the package name property of the generated code. final UnitsetPackageName(String value)This is the package name property of the generated code. final StringgetJdkVersion()JDK version property of the JavaCC code generator. final UnitsetJdkVersion(String value)JDK version property of the JavaCC code generator. final IntegergetLookahead()LOOKAHEAD: The number of tokens to look ahead before making a decision at a choice point during parsing. final UnitsetLookahead(Integer value)LOOKAHEAD: The number of tokens to look ahead before making a decision at a choice point during parsing. final IntegergetChoiceAmbiguityCheck()CHOICE_AMBIGUITY_CHECK: This is the number of tokens considered in checking choices of the form "A \| B \| ..." for ambiguity. final UnitsetChoiceAmbiguityCheck(Integer value)CHOICE_AMBIGUITY_CHECK: This is the number of tokens considered in checking choices of the form "A \| B \| ..." for ambiguity. final IntegergetOtherAmbiguityCheck()OTHER_AMBIGUITY_CHECK: This is the number of tokens considered in checking all other kinds of choices (i.e., of the forms "(A)*", "(A)+", and "(A)?") for ambiguity. final UnitsetOtherAmbiguityCheck(Integer value)OTHER_AMBIGUITY_CHECK: This is the number of tokens considered in checking all other kinds of choices (i.e., of the forms "(A)*", "(A)+", and "(A)?") for ambiguity. final StringgetStaticParam()STATIC: If true, all methods and class variables are specified as static in the generated parser and token manager. final UnitsetStaticParam(String value)STATIC: If true, all methods and class variables are specified as static in the generated parser and token manager. final StringgetSupportClassVisibilityPublic()SUPPORT_CLASS_VISIBILITY_PUBLIC: The default action is to generate support classes (such as Token.java, ParseException.java etc) with Public visibility. final UnitsetSupportClassVisibilityPublic(String value)SUPPORT_CLASS_VISIBILITY_PUBLIC: The default action is to generate support classes (such as Token.java, ParseException.java etc) with Public visibility. final StringgetDebugParser()DEBUG_PARSER: This option is used to obtain debugging information from the generated parser. final UnitsetDebugParser(String value)DEBUG_PARSER: This option is used to obtain debugging information from the generated parser. final StringgetDebugLookahead()DEBUG_LOOKAHEAD: Setting this option to true causes the parser to generate all the tracing information it does when the option DEBUG_PARSER is true. final UnitsetDebugLookahead(String value)DEBUG_LOOKAHEAD: Setting this option to true causes the parser to generate all the tracing information it does when the option DEBUG_PARSER is true. final StringgetDebugTokenManager()DEBUG_TOKEN_MANAGER: This option is used to obtain debugging information from the generated token manager. final UnitsetDebugTokenManager(String value)DEBUG_TOKEN_MANAGER: This option is used to obtain debugging information from the generated token manager. final StringgetErrorReporting()ERROR_REPORTING: Setting it to false causes errors due to parse errors to be reported in somewhat less detail. final UnitsetErrorReporting(String value)ERROR_REPORTING: Setting it to false causes errors due to parse errors to be reported in somewhat less detail. final StringgetJavaUnicodeEscape()JAVA_UNICODE_ESCAPE: When set to true, the generated parser uses an input stream object that processes Java Unicode escapes (\u...) before sending characters to the token manager. final UnitsetJavaUnicodeEscape(String value)JAVA_UNICODE_ESCAPE: When set to true, the generated parser uses an input stream object that processes Java Unicode escapes (\u...) before sending characters to the token manager. final StringgetUnicodeInput()UNICODE_INPUT: When set to true, the generated parser uses an input stream object that reads Unicode files. final UnitsetUnicodeInput(String value)UNICODE_INPUT: When set to true, the generated parser uses an input stream object that reads Unicode files. final StringgetIgnoreCase()IGNORE_CASE: Setting this option to true causes the generate token manager to ignore case in the token specifications and the input files. final UnitsetIgnoreCase(String value)IGNORE_CASE: Setting this option to true causes the generate token manager to ignore case in the token specifications and the input files. final StringgetCommonTokenAction()COMMON_TOKEN_ACTION: When set to true, every call to the token manager's method "getNextToken" will cause a call to a used defined method "CommonTokenAction" after the token has been scanned in by the token manager. final UnitsetCommonTokenAction(String value)COMMON_TOKEN_ACTION: When set to true, every call to the token manager's method "getNextToken" will cause a call to a used defined method "CommonTokenAction" after the token has been scanned in by the token manager. final StringgetUserTokenManager()USER_TOKEN_MANAGER: The default action is to generate a token manager that works on the specified grammar tokens. final UnitsetUserTokenManager(String value)USER_TOKEN_MANAGER: The default action is to generate a token manager that works on the specified grammar tokens. final StringgetUserCharStream()USER_CHAR_STREAM: The default action is to generate a character stream reader as specified by the options JAVA_UNICODE_ESCAPE and UNICODE_INPUT. final UnitsetUserCharStream(String value)USER_CHAR_STREAM: The default action is to generate a character stream reader as specified by the options JAVA_UNICODE_ESCAPE and UNICODE_INPUT. final StringgetBuildParser()BUILD_PARSER: When set to false, the parser file is not generated. final UnitsetBuildParser(String value)BUILD_PARSER: When set to false, the parser file is not generated. final StringgetBuildTokenManager()BUILD_TOKEN_MANAGER: When set to false the token manager file is not generated. final UnitsetBuildTokenManager(String value)BUILD_TOKEN_MANAGER: When set to false the token manager file is not generated. final StringgetTokenManagerUsesParser()TOKEN_MANAGER_USES_PARSER: When set to true, the generated token manager will include a field called parser that references the instantiating parser instance. final UnitsetTokenManagerUsesParser(String value)TOKEN_MANAGER_USES_PARSER: When set to true, the generated token manager will include a field called parser that references the instantiating parser instance. final StringgetSanityCheck()SANITY_CHECK: JavaCC performs many syntactic and semantic checks on the grammar file during parser generation. final UnitsetSanityCheck(String value)SANITY_CHECK: JavaCC performs many syntactic and semantic checks on the grammar file during parser generation. final StringgetForceLaCheck()FORCE_LA_CHECK: This option setting controls lookahead ambiguity checking performed by JavaCC. final UnitsetForceLaCheck(String value)FORCE_LA_CHECK: This option setting controls lookahead ambiguity checking performed by JavaCC. final StringgetCacheTokens()CACHE_TOKENS: Setting this option to true causes the generated parser to lookahead for extra tokens ahead of time. final UnitsetCacheTokens(String value)CACHE_TOKENS: Setting this option to true causes the generated parser to lookahead for extra tokens ahead of time. final StringgetKeepLineColumn()KEEP_LINE_COLUMN: If you set this option to false, the generated CharStream will not have any line/column tracking code. final UnitsetKeepLineColumn(String value)KEEP_LINE_COLUMN: If you set this option to false, the generated CharStream will not have any line/column tracking code. final StringgetTokenExtends()TOKEN_EXTENDS: This is a string option whose default value is "", meaning that the generated Token class will extend java.lang.Object. final UnitsetTokenExtends(String value)TOKEN_EXTENDS: This is a string option whose default value is "", meaning that the generated Token class will extend java.lang.Object. final StringgetTokenFactory()TOKEN_FACTORY: This is a string option whose default value is "", meaning that Tokens will be created by calling Token.newToken(). final UnitsetTokenFactory(String value)TOKEN_FACTORY: This is a string option whose default value is "", meaning that Tokens will be created by calling Token.newToken(). final List<String>getJavaCCArgs()Property with additional command line arguments passed to javaCC. final UnitsetJavaCCArgs(List<String> value)Property with additional command line arguments passed to javaCC. final JJTreegetJjTree()JJTree configuration container. final UnitsetJjTree(JJTree value)JJTree configuration container. final ConfigurableFileCollectiongetToolsclasspathfiles()Classpath with javaCC libraries. final UnitprovideOutputDir(Provider<Directory> outputDir)Set provider for outputdir. final UnitprovideInputFile(Provider<RegularFile> inputFile)Set provider for inputFile. final UnitprovidePackageName(Provider<String> packageName)Set provider for packageName. final UnitprovideJdkVersion(Provider<String> jdkVersion)Set provider for jdkVersion. final UnitprovideLookahead(Provider<String> lookahead)Set provider for lookahead. final UnitprovideChoiceAmbiguityCheck(Provider<String> choiceAmbiguityCheck)Set provider for choiceAmbiguityCheck. final UnitprovideOtherAmbiguityCheck(Provider<String> otherAmbiguityCheck)Set provider for otherAmbiguityCheck. final UnitprovideStaticParam(Provider<String> staticParam)Set provider for staticParam. final UnitprovideSupportClassVisibilityPublic(Provider<String> supportClassVisibilityPublic)Set provider for supportClassVisibilityPublic. final UnitprovideDebugParser(Provider<String> debugParser)Set provider for debugParser. final UnitprovideDebugLookahead(Provider<String> debugLookahead)Set provider for debugLookahead. final UnitprovideDebugTokenManager(Provider<String> debugTokenManager)Set provider for debugTokenManager. final UnitprovideErrorReporting(Provider<String> errorReporting)Set provider for errorReporting. final UnitprovideJavaUnicodeEscape(Provider<String> javaUnicodeEscape)Set provider for javaUnicodeEscape. final UnitprovideUnicodeInput(Provider<String> unicodeInput)Set provider for unicodeInput. final UnitprovideIgnoreCase(Provider<String> ignoreCase)Set provider for ignoreCase. final UnitprovideCommonTokenAction(Provider<String> commonTokenAction)Set provider for commonTokenAction. final UnitprovideUserTokenManager(Provider<String> userTokenManager)Set provider for userTokenManager. final UnitprovideUserCharStream(Provider<String> userCharStream)Set provider for userCharStream. final UnitprovideBuildParser(Provider<String> buildParser)Set provider for buildParser. final UnitprovideBuildTokenManager(Provider<String> buildTokenManager)Set provider for buildTokenManager. final UnitprovideTokenManagerUsesParser(Provider<String> tokenManagerUsesParser)Set provider for tokenManagerUsesParser. final UnitprovideSanityCheck(Provider<String> sanityCheck)Set provider for sanityCheck. final UnitprovideForceLaCheck(Provider<String> forceLaCheck)Set provider for forceLaCheck. final UnitprovideCacheTokens(Provider<String> cacheTokens)Set provider for cacheTokens. final UnitprovideKeepLineColumn(Provider<String> keepLineColumn)Set provider for keepLineColumn. final UnitprovideTokenExtends(Provider<String> tokenExtends)Set provider for tokenExtends. final UnitprovideTokenFactory(Provider<String> tokenFactory)Set provider for tokenFactory. final UnitprovideJavaCCArgs(Provider<List<String>> javaCCArgs)Set provider for javaCCArgs. final Unitgenerate()Task aktion for code generation. -
Methods inherited from class org.gradle.api.DefaultTask
getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, setActions, setDescription, setDidWork, setEnabled, setEnabled, setGroup -
Methods inherited from class org.gradle.api.internal.AbstractTask
getAsDynamicObject, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getReasonsNotToTrackState, getRequiredServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, setImpliesSubProjects -
Methods inherited from class org.gradle.api.Task
configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, doNotTrackState, finalizedBy, hasProperty, mustRunAfter, notCompatibleWithConfigurationCache, onlyIf, onlyIf, onlyIf, property, setDependsOn, setFinalizedBy, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService -
Methods inherited from class kotlin.Comparable
compareTo -
Methods inherited from class org.gradle.api.internal.TaskInternal
acceptServiceReferences, appendParallelSafeAction, doNotTrackStateIf, hasTaskActions, prependParallelSafeAction, restoreOnlyIf, restoreTaskActions -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getOutputDir
@OutputDirectory() final File getOutputDir()
Output dir for JavaCC code generation.
-
setOutputDir
final Unit setOutputDir(File value)
Output dir for JavaCC code generation.
-
getInputFile
@PathSensitive(value = PathSensitivity.RELATIVE)@InputFile() final File getInputFile()
Input file for code generation.
-
setInputFile
final Unit setInputFile(File value)
Input file for code generation.
-
getPackageName
@Input() final String getPackageName()
This is the package name property of the generated code.
-
setPackageName
final Unit setPackageName(String value)
This is the package name property of the generated code.
-
getJdkVersion
@Optional()@Input() final String getJdkVersion()
JDK version property of the JavaCC code generator.
-
setJdkVersion
final Unit setJdkVersion(String value)
JDK version property of the JavaCC code generator.
-
getLookahead
@Optional()@Input() final Integer getLookahead()
LOOKAHEAD: The number of tokens to look ahead before making a decision at a choice point during parsing. The smaller this number, the faster the parser. This number may be overridden for specific productions within the grammar as described later. This is the lookahead property of the parser configuration.
-
setLookahead
final Unit setLookahead(Integer value)
LOOKAHEAD: The number of tokens to look ahead before making a decision at a choice point during parsing. The smaller this number, the faster the parser. This number may be overridden for specific productions within the grammar as described later. This is the lookahead property of the parser configuration.
-
getChoiceAmbiguityCheck
@Optional()@Input() final Integer getChoiceAmbiguityCheck()
CHOICE_AMBIGUITY_CHECK: This is the number of tokens considered in checking choices of the form "A \| B \| ..." for ambiguity. This is the property for choiceAmbiguityCheck of the parser configuration.
-
setChoiceAmbiguityCheck
final Unit setChoiceAmbiguityCheck(Integer value)
CHOICE_AMBIGUITY_CHECK: This is the number of tokens considered in checking choices of the form "A \| B \| ..." for ambiguity. This is the property for choiceAmbiguityCheck of the parser configuration.
-
getOtherAmbiguityCheck
@Optional()@Input() final Integer getOtherAmbiguityCheck()
OTHER_AMBIGUITY_CHECK: This is the number of tokens considered in checking all other kinds of choices (i.e., of the forms "(A)*", "(A)+", and "(A)?") for ambiguity. This is the property otherAmbiguityCheck of the parser configuration.
-
setOtherAmbiguityCheck
final Unit setOtherAmbiguityCheck(Integer value)
OTHER_AMBIGUITY_CHECK: This is the number of tokens considered in checking all other kinds of choices (i.e., of the forms "(A)*", "(A)+", and "(A)?") for ambiguity. This is the property otherAmbiguityCheck of the parser configuration.
-
getStaticParam
@Optional()@Input() final String getStaticParam()
STATIC: If true, all methods and class variables are specified as static in the generated parser and token manager. This is the property staticParam of the parser configuration.
-
setStaticParam
final Unit setStaticParam(String value)
STATIC: If true, all methods and class variables are specified as static in the generated parser and token manager. This is the property staticParam of the parser configuration.
-
getSupportClassVisibilityPublic
@Optional()@Input() final String getSupportClassVisibilityPublic()
SUPPORT_CLASS_VISIBILITY_PUBLIC: The default action is to generate support classes (such as Token.java, ParseException.java etc) with Public visibility. This is the property supportClassVisibilityPublic of the parser configuration.
-
setSupportClassVisibilityPublic
final Unit setSupportClassVisibilityPublic(String value)
SUPPORT_CLASS_VISIBILITY_PUBLIC: The default action is to generate support classes (such as Token.java, ParseException.java etc) with Public visibility. This is the property supportClassVisibilityPublic of the parser configuration.
-
getDebugParser
@Optional()@Input() final String getDebugParser()
DEBUG_PARSER: This option is used to obtain debugging information from the generated parser. This is the property debugParser of the parser configuration.
-
setDebugParser
final Unit setDebugParser(String value)
DEBUG_PARSER: This option is used to obtain debugging information from the generated parser. This is the property debugParser of the parser configuration.
-
getDebugLookahead
@Optional()@Input() final String getDebugLookahead()
DEBUG_LOOKAHEAD: Setting this option to true causes the parser to generate all the tracing information it does when the option DEBUG_PARSER is true. This is the property debugLookahead of the parser configuration.
-
setDebugLookahead
final Unit setDebugLookahead(String value)
DEBUG_LOOKAHEAD: Setting this option to true causes the parser to generate all the tracing information it does when the option DEBUG_PARSER is true. This is the property debugLookahead of the parser configuration.
-
getDebugTokenManager
@Optional()@Input() final String getDebugTokenManager()
DEBUG_TOKEN_MANAGER: This option is used to obtain debugging information from the generated token manager. This is the property debugTokenManager of the parser configuration.
-
setDebugTokenManager
final Unit setDebugTokenManager(String value)
DEBUG_TOKEN_MANAGER: This option is used to obtain debugging information from the generated token manager. This is the property debugTokenManager of the parser configuration.
-
getErrorReporting
@Optional()@Input() final String getErrorReporting()
ERROR_REPORTING: Setting it to false causes errors due to parse errors to be reported in somewhat less detail. This is the property errorReporting of the parser configuration.
-
setErrorReporting
final Unit setErrorReporting(String value)
ERROR_REPORTING: Setting it to false causes errors due to parse errors to be reported in somewhat less detail. This is the property errorReporting of the parser configuration.
-
getJavaUnicodeEscape
@Optional()@Input() final String getJavaUnicodeEscape()
JAVA_UNICODE_ESCAPE: When set to true, the generated parser uses an input stream object that processes Java Unicode escapes (\u...) before sending characters to the token manager. This is the property javaUnicodeEscape of the parser configuration.
-
setJavaUnicodeEscape
final Unit setJavaUnicodeEscape(String value)
JAVA_UNICODE_ESCAPE: When set to true, the generated parser uses an input stream object that processes Java Unicode escapes (\u...) before sending characters to the token manager. This is the property javaUnicodeEscape of the parser configuration.
-
getUnicodeInput
@Optional()@Input() final String getUnicodeInput()
UNICODE_INPUT: When set to true, the generated parser uses an input stream object that reads Unicode files. This is the property unicodeInput of the parser configuration.
-
setUnicodeInput
final Unit setUnicodeInput(String value)
UNICODE_INPUT: When set to true, the generated parser uses an input stream object that reads Unicode files. This is the property unicodeInput of the parser configuration.
-
getIgnoreCase
@Optional()@Input() final String getIgnoreCase()
IGNORE_CASE: Setting this option to true causes the generate token manager to ignore case in the token specifications and the input files. This is the property ignoreCase of the parser configuration.
-
setIgnoreCase
final Unit setIgnoreCase(String value)
IGNORE_CASE: Setting this option to true causes the generate token manager to ignore case in the token specifications and the input files. This is the property ignoreCase of the parser configuration.
-
getCommonTokenAction
@Optional()@Input() final String getCommonTokenAction()
COMMON_TOKEN_ACTION: When set to true, every call to the token manager's method "getNextToken" will cause a call to a used defined method "CommonTokenAction" after the token has been scanned in by the token manager. This is the property commonTokenAction of the parser configuration.
-
setCommonTokenAction
final Unit setCommonTokenAction(String value)
COMMON_TOKEN_ACTION: When set to true, every call to the token manager's method "getNextToken" will cause a call to a used defined method "CommonTokenAction" after the token has been scanned in by the token manager. This is the property commonTokenAction of the parser configuration.
-
getUserTokenManager
@Optional()@Input() final String getUserTokenManager()
USER_TOKEN_MANAGER: The default action is to generate a token manager that works on the specified grammar tokens. This is the property userTokenManager of the parser configuration.
-
setUserTokenManager
final Unit setUserTokenManager(String value)
USER_TOKEN_MANAGER: The default action is to generate a token manager that works on the specified grammar tokens. This is the property userTokenManager of the parser configuration.
-
getUserCharStream
@Optional()@Input() final String getUserCharStream()
USER_CHAR_STREAM: The default action is to generate a character stream reader as specified by the options JAVA_UNICODE_ESCAPE and UNICODE_INPUT. This is the property userCharStream of the parser configuration.
-
setUserCharStream
final Unit setUserCharStream(String value)
USER_CHAR_STREAM: The default action is to generate a character stream reader as specified by the options JAVA_UNICODE_ESCAPE and UNICODE_INPUT. This is the property userCharStream of the parser configuration.
-
getBuildParser
@Optional()@Input() final String getBuildParser()
BUILD_PARSER: When set to false, the parser file is not generated. This is the property buildParser of the parser configuration.
-
setBuildParser
final Unit setBuildParser(String value)
BUILD_PARSER: When set to false, the parser file is not generated. This is the property buildParser of the parser configuration.
-
getBuildTokenManager
@Optional()@Input() final String getBuildTokenManager()
BUILD_TOKEN_MANAGER: When set to false the token manager file is not generated. This is the property buildTokenManager of the parser configuration.
-
setBuildTokenManager
final Unit setBuildTokenManager(String value)
BUILD_TOKEN_MANAGER: When set to false the token manager file is not generated. This is the property buildTokenManager of the parser configuration.
-
getTokenManagerUsesParser
@Optional()@Input() final String getTokenManagerUsesParser()
TOKEN_MANAGER_USES_PARSER: When set to true, the generated token manager will include a field called parser that references the instantiating parser instance. This is the property tokenManagerUsesParser of the parser configuration.
-
setTokenManagerUsesParser
final Unit setTokenManagerUsesParser(String value)
TOKEN_MANAGER_USES_PARSER: When set to true, the generated token manager will include a field called parser that references the instantiating parser instance. This is the property tokenManagerUsesParser of the parser configuration.
-
getSanityCheck
@Optional()@Input() final String getSanityCheck()
SANITY_CHECK: JavaCC performs many syntactic and semantic checks on the grammar file during parser generation. This is the property sanityCheck of the parser configuration.
-
setSanityCheck
final Unit setSanityCheck(String value)
SANITY_CHECK: JavaCC performs many syntactic and semantic checks on the grammar file during parser generation. This is the property sanityCheck of the parser configuration.
-
getForceLaCheck
@Optional()@Input() final String getForceLaCheck()
FORCE_LA_CHECK: This option setting controls lookahead ambiguity checking performed by JavaCC. This is the property forceLaCheck of the parser configuration.
-
setForceLaCheck
final Unit setForceLaCheck(String value)
FORCE_LA_CHECK: This option setting controls lookahead ambiguity checking performed by JavaCC. This is the property forceLaCheck of the parser configuration.
-
getCacheTokens
@Optional()@Input() final String getCacheTokens()
CACHE_TOKENS: Setting this option to true causes the generated parser to lookahead for extra tokens ahead of time. This is the property cacheTokens of the parser configuration.
-
setCacheTokens
final Unit setCacheTokens(String value)
CACHE_TOKENS: Setting this option to true causes the generated parser to lookahead for extra tokens ahead of time. This is the property cacheTokens of the parser configuration.
-
getKeepLineColumn
@Optional()@Input() final String getKeepLineColumn()
KEEP_LINE_COLUMN: If you set this option to false, the generated CharStream will not have any line/column tracking code. This is the property keepLineColumn of the parser configuration.
-
setKeepLineColumn
final Unit setKeepLineColumn(String value)
KEEP_LINE_COLUMN: If you set this option to false, the generated CharStream will not have any line/column tracking code. This is the property keepLineColumn of the parser configuration.
-
getTokenExtends
@Optional()@Input() final String getTokenExtends()
TOKEN_EXTENDS: This is a string option whose default value is "", meaning that the generated Token class will extend java.lang.Object. This is the property tokenExtends of the parser configuration.
-
setTokenExtends
final Unit setTokenExtends(String value)
TOKEN_EXTENDS: This is a string option whose default value is "", meaning that the generated Token class will extend java.lang.Object. This is the property tokenExtends of the parser configuration.
-
getTokenFactory
@Optional()@Input() final String getTokenFactory()
TOKEN_FACTORY: This is a string option whose default value is "", meaning that Tokens will be created by calling Token.newToken(). This is the property tokenFactory of the parser configuration.
-
setTokenFactory
final Unit setTokenFactory(String value)
TOKEN_FACTORY: This is a string option whose default value is "", meaning that Tokens will be created by calling Token.newToken(). This is the property tokenFactory of the parser configuration.
-
getJavaCCArgs
@Optional()@Input() final List<String> getJavaCCArgs()
Property with additional command line arguments passed to javaCC.
-
setJavaCCArgs
final Unit setJavaCCArgs(List<String> value)
Property with additional command line arguments passed to javaCC.
-
getToolsclasspathfiles
@Classpath() final ConfigurableFileCollection getToolsclasspathfiles()
Classpath with javaCC libraries.
NOTE: this must not be resolved from the project. A
by lazyblock is evaluated while Gradle snapshots the task inputs - that already happens in the execution phase, where accessingTask.projectis deprecated in Gradle 9 and fails in Gradle 10. The plugin wires this at configuration time instead.
-
provideOutputDir
final Unit provideOutputDir(Provider<Directory> outputDir)
Set provider for outputdir.
-
provideInputFile
final Unit provideInputFile(Provider<RegularFile> inputFile)
Set provider for inputFile.
-
providePackageName
final Unit providePackageName(Provider<String> packageName)
Set provider for packageName.
-
provideJdkVersion
final Unit provideJdkVersion(Provider<String> jdkVersion)
Set provider for jdkVersion.
-
provideLookahead
final Unit provideLookahead(Provider<String> lookahead)
Set provider for lookahead.
-
provideChoiceAmbiguityCheck
final Unit provideChoiceAmbiguityCheck(Provider<String> choiceAmbiguityCheck)
Set provider for choiceAmbiguityCheck.
-
provideOtherAmbiguityCheck
final Unit provideOtherAmbiguityCheck(Provider<String> otherAmbiguityCheck)
Set provider for otherAmbiguityCheck.
-
provideStaticParam
final Unit provideStaticParam(Provider<String> staticParam)
Set provider for staticParam.
-
provideSupportClassVisibilityPublic
final Unit provideSupportClassVisibilityPublic(Provider<String> supportClassVisibilityPublic)
Set provider for supportClassVisibilityPublic.
-
provideDebugParser
final Unit provideDebugParser(Provider<String> debugParser)
Set provider for debugParser.
-
provideDebugLookahead
final Unit provideDebugLookahead(Provider<String> debugLookahead)
Set provider for debugLookahead.
-
provideDebugTokenManager
final Unit provideDebugTokenManager(Provider<String> debugTokenManager)
Set provider for debugTokenManager.
-
provideErrorReporting
final Unit provideErrorReporting(Provider<String> errorReporting)
Set provider for errorReporting.
-
provideJavaUnicodeEscape
final Unit provideJavaUnicodeEscape(Provider<String> javaUnicodeEscape)
Set provider for javaUnicodeEscape.
-
provideUnicodeInput
final Unit provideUnicodeInput(Provider<String> unicodeInput)
Set provider for unicodeInput.
-
provideIgnoreCase
final Unit provideIgnoreCase(Provider<String> ignoreCase)
Set provider for ignoreCase.
-
provideCommonTokenAction
final Unit provideCommonTokenAction(Provider<String> commonTokenAction)
Set provider for commonTokenAction.
-
provideUserTokenManager
final Unit provideUserTokenManager(Provider<String> userTokenManager)
Set provider for userTokenManager.
-
provideUserCharStream
final Unit provideUserCharStream(Provider<String> userCharStream)
Set provider for userCharStream.
-
provideBuildParser
final Unit provideBuildParser(Provider<String> buildParser)
Set provider for buildParser.
-
provideBuildTokenManager
final Unit provideBuildTokenManager(Provider<String> buildTokenManager)
Set provider for buildTokenManager.
-
provideTokenManagerUsesParser
final Unit provideTokenManagerUsesParser(Provider<String> tokenManagerUsesParser)
Set provider for tokenManagerUsesParser.
-
provideSanityCheck
final Unit provideSanityCheck(Provider<String> sanityCheck)
Set provider for sanityCheck.
-
provideForceLaCheck
final Unit provideForceLaCheck(Provider<String> forceLaCheck)
Set provider for forceLaCheck.
-
provideCacheTokens
final Unit provideCacheTokens(Provider<String> cacheTokens)
Set provider for cacheTokens.
-
provideKeepLineColumn
final Unit provideKeepLineColumn(Provider<String> keepLineColumn)
Set provider for keepLineColumn.
-
provideTokenExtends
final Unit provideTokenExtends(Provider<String> tokenExtends)
Set provider for tokenExtends.
-
provideTokenFactory
final Unit provideTokenFactory(Provider<String> tokenFactory)
Set provider for tokenFactory.
-
provideJavaCCArgs
final Unit provideJavaCCArgs(Provider<List<String>> javaCCArgs)
Set provider for javaCCArgs.
-
-
-
-