Class JavaCC
-
- All Implemented Interfaces:
public class JavaCCConfiguration container for special JavaCC code generation.
-
-
Field Summary
-
Method Summary
Modifier and Type Method Description final StringgetName()final JJTreegetJjtree()Tree building configuration for JavaCC parser. final Provider<Directory>getOutputDirProvider()Provider for outputDir property. final FilegetOutputDir()Output dir for JavaCC code generation. final UnitsetOutputDir(File value)Output dir for JavaCC code generation. final Provider<RegularFile>getInputFileProvider()Provider for input file property. final FilegetInputFile()Input file property for JavaCC code generation. final UnitsetInputFile(File value)Input file property for JavaCC code generation. final Provider<String>getSourceSetNameProvider()Generated code will be added to a SourceSet. final StringgetSourceSetName()Generated code will be added to a SourceSet. final UnitsetSourceSetName(String <set-?>)Generated code will be added to a SourceSet. final Provider<String>getPackageNameProvider()This is the provider for the package name of the generated code. final StringgetPackageName()This is the package name property of the generated code. final UnitsetPackageName(String <set-?>)This is the package name property of the generated code. final Provider<String>getJdkVersionProvider()This is the provider for the JDK version configuration of the JavaCC code generator. final StringgetJdkVersion()JDK version property of the JavaCC code generator. final UnitsetJdkVersion(String <set-?>)JDK version property of the JavaCC code generator. final Provider<String>getLookaheadProvider()LOOKAHEAD: The number of tokens to look ahead before making a decision at a choice point during parsing. 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 Provider<String>getChoiceAmbiguityCheckProvider()CHOICE_AMBIGUITY_CHECK: This is the number of tokens considered in checking choices of the form "A \| B \| ..." for ambiguity. 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 Provider<String>getOtherAmbiguityCheckProvider()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 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 Provider<String>getStaticParamProvider()STATIC: If true, all methods and class variables are specified as static in the generated parser and token manager. final StringgetStaticParam()STATIC: If true, all methods and class variables are specified as static in the generated parser and token manager. final UnitsetStaticParam(String <set-?>)STATIC: If true, all methods and class variables are specified as static in the generated parser and token manager. final Provider<String>getSupportClassVisibilityPublicProvider()SUPPORT_CLASS_VISIBILITY_PUBLIC: The default action is to generate support classes (such as Token.java, ParseException.java etc) with Public visibility. 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 <set-?>)SUPPORT_CLASS_VISIBILITY_PUBLIC: The default action is to generate support classes (such as Token.java, ParseException.java etc) with Public visibility. final Provider<String>getDebugParserProvider()DEBUG_PARSER: This option is used to obtain debugging information from the generated parser. final StringgetDebugParser()DEBUG_PARSER: This option is used to obtain debugging information from the generated parser. final UnitsetDebugParser(String <set-?>)DEBUG_PARSER: This option is used to obtain debugging information from the generated parser. final Provider<String>getDebugLookaheadProvider()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 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 <set-?>)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 Provider<String>getDebugTokenManagerProvider()DEBUG_TOKEN_MANAGER: This option is used to obtain debugging information from the generated token manager. final StringgetDebugTokenManager()DEBUG_TOKEN_MANAGER: This option is used to obtain debugging information from the generated token manager. final UnitsetDebugTokenManager(String <set-?>)DEBUG_TOKEN_MANAGER: This option is used to obtain debugging information from the generated token manager. final Provider<String>getErrorReportingProvider()ERROR_REPORTING: Setting it to false causes errors due to parse errors to be reported in somewhat less detail. final StringgetErrorReporting()ERROR_REPORTING: Setting it to false causes errors due to parse errors to be reported in somewhat less detail. final UnitsetErrorReporting(String <set-?>)ERROR_REPORTING: Setting it to false causes errors due to parse errors to be reported in somewhat less detail. final Provider<String>getJavaUnicodeEscapeProvider()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 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 <set-?>)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 Provider<String>getUnicodeInputProvider()UNICODE_INPUT: When set to true, the generated parser uses an input stream object that reads Unicode files. final StringgetUnicodeInput()UNICODE_INPUT: When set to true, the generated parser uses an input stream object that reads Unicode files. final UnitsetUnicodeInput(String <set-?>)UNICODE_INPUT: When set to true, the generated parser uses an input stream object that reads Unicode files. final Provider<String>getIgnoreCaseProvider()IGNORE_CASE: Setting this option to true causes the generate token manager to ignore case in the token specifications and the input 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 <set-?>)IGNORE_CASE: Setting this option to true causes the generate token manager to ignore case in the token specifications and the input files. final Provider<String>getCommonTokenActionProvider()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 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 <set-?>)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 Provider<String>getUserTokenManagerProvider()USER_TOKEN_MANAGER: The default action is to generate a token manager that works on the specified grammar tokens. final StringgetUserTokenManager()USER_TOKEN_MANAGER: The default action is to generate a token manager that works on the specified grammar tokens. final UnitsetUserTokenManager(String <set-?>)USER_TOKEN_MANAGER: The default action is to generate a token manager that works on the specified grammar tokens. final Provider<String>getUserCharStreamProvider()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 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 <set-?>)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 Provider<String>getBuildParserProvider()BUILD_PARSER: When set to false, the parser file is not generated. final StringgetBuildParser()BUILD_PARSER: When set to false, the parser file is not generated. final UnitsetBuildParser(String <set-?>)BUILD_PARSER: When set to false, the parser file is not generated. final Provider<String>getBuildTokenManagerProvider()BUILD_TOKEN_MANAGER: When set to false the token manager file is not generated. final StringgetBuildTokenManager()BUILD_TOKEN_MANAGER: When set to false the token manager file is not generated. final UnitsetBuildTokenManager(String <set-?>)BUILD_TOKEN_MANAGER: When set to false the token manager file is not generated. final Provider<String>getTokenManagerUsesParserProvider()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 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 <set-?>)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 Provider<String>getSanityCheckProvider()SANITY_CHECK: JavaCC performs many syntactic and semantic checks on the grammar file during parser generation. final StringgetSanityCheck()SANITY_CHECK: JavaCC performs many syntactic and semantic checks on the grammar file during parser generation. final UnitsetSanityCheck(String <set-?>)SANITY_CHECK: JavaCC performs many syntactic and semantic checks on the grammar file during parser generation. final Provider<String>getForceLaCheckProvider()FORCE_LA_CHECK: This option setting controls lookahead ambiguity checking performed by JavaCC. final StringgetForceLaCheck()FORCE_LA_CHECK: This option setting controls lookahead ambiguity checking performed by JavaCC. final UnitsetForceLaCheck(String <set-?>)FORCE_LA_CHECK: This option setting controls lookahead ambiguity checking performed by JavaCC. final Provider<String>getCacheTokensProvider()CACHE_TOKENS: Setting this option to true causes the generated parser to lookahead for extra tokens ahead of time. final StringgetCacheTokens()CACHE_TOKENS: Setting this option to true causes the generated parser to lookahead for extra tokens ahead of time. final UnitsetCacheTokens(String <set-?>)CACHE_TOKENS: Setting this option to true causes the generated parser to lookahead for extra tokens ahead of time. final Provider<String>getKeepLineColumnProvider()KEEP_LINE_COLUMN: If you set this option to false, the generated CharStream will not have any line/column tracking code. 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 <set-?>)KEEP_LINE_COLUMN: If you set this option to false, the generated CharStream will not have any line/column tracking code. final Provider<String>getTokenExtendsProvider()TOKEN_EXTENDS: This is a string option whose default value is "", meaning that the generated Token class will extend java.lang.Object. 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 <set-?>)TOKEN_EXTENDS: This is a string option whose default value is "", meaning that the generated Token class will extend java.lang.Object. final Provider<String>getTokenFactoryProvider()TOKEN_FACTORY: This is a string option whose default value is "", meaning that Tokens will be created by calling Token.newToken(). 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 <set-?>)TOKEN_FACTORY: This is a string option whose default value is "", meaning that Tokens will be created by calling Token.newToken(). final Provider<List<String>>getArgsProvider()Provider for property with additional command line arguments passed to javaCC. final List<String>getArgs()Property with additional command line arguments passed to javaCC. final UnitsetArgs(List<String> value)Property with additional command line arguments passed to javaCC. final Unitjjtree(Action<in JJTree> action)Configures jjtree with an action. final UnitaddArg(String argument)Add single argument to the command line arguments passed to javaCC. final UnitaddArgs(List<String> args)Add a list of arguments to the command line arguments passed to javaCC. final StringgetJavaCCTaskName()Calculate the task name. -
-
Constructor Detail
-
JavaCC
JavaCC(ObjectFactory objectFactory, ProjectLayout projectLayout, String name)
-
-
Method Detail
-
getOutputDirProvider
final Provider<Directory> getOutputDirProvider()
Provider for outputDir property.
-
getOutputDir
final File getOutputDir()
Output dir for JavaCC code generation.
-
setOutputDir
final Unit setOutputDir(File value)
Output dir for JavaCC code generation.
-
getInputFileProvider
final Provider<RegularFile> getInputFileProvider()
Provider for input file property.
-
getInputFile
final File getInputFile()
Input file property for JavaCC code generation.
-
setInputFile
final Unit setInputFile(File value)
Input file property for JavaCC code generation.
-
getSourceSetNameProvider
final Provider<String> getSourceSetNameProvider()
Generated code will be added to a SourceSet. This is the provider for the SourceSet name.
-
getSourceSetName
final String getSourceSetName()
Generated code will be added to a SourceSet. This is the SourceSet name property.
-
setSourceSetName
final Unit setSourceSetName(String <set-?>)
Generated code will be added to a SourceSet. This is the SourceSet name property.
-
getPackageNameProvider
final Provider<String> getPackageNameProvider()
This is the provider for the package name of the generated code.
-
getPackageName
final String getPackageName()
This is the package name property of the generated code.
-
setPackageName
final Unit setPackageName(String <set-?>)
This is the package name property of the generated code.
-
getJdkVersionProvider
final Provider<String> getJdkVersionProvider()
This is the provider for the JDK version configuration of the JavaCC code generator.
-
getJdkVersion
final String getJdkVersion()
JDK version property of the JavaCC code generator.
-
setJdkVersion
final Unit setJdkVersion(String <set-?>)
JDK version property of the JavaCC code generator.
-
getLookaheadProvider
final Provider<String> getLookaheadProvider()
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 provider for the LOOKAHEAD property.
-
getLookahead
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.
-
getChoiceAmbiguityCheckProvider
final Provider<String> getChoiceAmbiguityCheckProvider()
CHOICE_AMBIGUITY_CHECK: This is the number of tokens considered in checking choices of the form "A \| B \| ..." for ambiguity. This is the provider for choiceAmbiguityCheck property.
-
getChoiceAmbiguityCheck
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.
-
getOtherAmbiguityCheckProvider
final Provider<String> getOtherAmbiguityCheckProvider()
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 provider for otherAmbiguityCheck property.
-
getOtherAmbiguityCheck
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.
-
getStaticParamProvider
final Provider<String> getStaticParamProvider()
STATIC: If true, all methods and class variables are specified as static in the generated parser and token manager. This is the provider for staticParam property.
-
getStaticParam
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 <set-?>)
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.
-
getSupportClassVisibilityPublicProvider
final Provider<String> getSupportClassVisibilityPublicProvider()
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 provider for supportClassVisibilityPublic property.
-
getSupportClassVisibilityPublic
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 <set-?>)
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.
-
getDebugParserProvider
final Provider<String> getDebugParserProvider()
DEBUG_PARSER: This option is used to obtain debugging information from the generated parser. This is the provider for debugParser property.
-
getDebugParser
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 <set-?>)
DEBUG_PARSER: This option is used to obtain debugging information from the generated parser. This is the property debugParser of the parser configuration.
-
getDebugLookaheadProvider
final Provider<String> getDebugLookaheadProvider()
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 provider for debugLookahead property.
-
getDebugLookahead
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 <set-?>)
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.
-
getDebugTokenManagerProvider
final Provider<String> getDebugTokenManagerProvider()
DEBUG_TOKEN_MANAGER: This option is used to obtain debugging information from the generated token manager. This is the provider for debugTokenManager property.
-
getDebugTokenManager
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 <set-?>)
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.
-
getErrorReportingProvider
final Provider<String> getErrorReportingProvider()
ERROR_REPORTING: Setting it to false causes errors due to parse errors to be reported in somewhat less detail. This is the provider for errorReporting property.
-
getErrorReporting
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 <set-?>)
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.
-
getJavaUnicodeEscapeProvider
final Provider<String> getJavaUnicodeEscapeProvider()
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 provider for javaUnicodeEscape property.
-
getJavaUnicodeEscape
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 <set-?>)
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.
-
getUnicodeInputProvider
final Provider<String> getUnicodeInputProvider()
UNICODE_INPUT: When set to true, the generated parser uses an input stream object that reads Unicode files. This is the provider for unicodeInput property.
-
getUnicodeInput
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 <set-?>)
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.
-
getIgnoreCaseProvider
final Provider<String> getIgnoreCaseProvider()
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 provider for ignoreCase property.
-
getIgnoreCase
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 <set-?>)
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.
-
getCommonTokenActionProvider
final Provider<String> getCommonTokenActionProvider()
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 provider for commonTokenAction property.
-
getCommonTokenAction
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 <set-?>)
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.
-
getUserTokenManagerProvider
final Provider<String> getUserTokenManagerProvider()
USER_TOKEN_MANAGER: The default action is to generate a token manager that works on the specified grammar tokens. This is the provider for userTokenManager property.
-
getUserTokenManager
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 <set-?>)
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.
-
getUserCharStreamProvider
final Provider<String> getUserCharStreamProvider()
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 provider for userCharStream property.
-
getUserCharStream
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 <set-?>)
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.
-
getBuildParserProvider
final Provider<String> getBuildParserProvider()
BUILD_PARSER: When set to false, the parser file is not generated. This is the provider for buildParser property.
-
getBuildParser
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 <set-?>)
BUILD_PARSER: When set to false, the parser file is not generated. This is the property buildParser of the parser configuration.
-
getBuildTokenManagerProvider
final Provider<String> getBuildTokenManagerProvider()
BUILD_TOKEN_MANAGER: When set to false the token manager file is not generated. This is the provider for buildTokenManager property.
-
getBuildTokenManager
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 <set-?>)
BUILD_TOKEN_MANAGER: When set to false the token manager file is not generated. This is the property buildTokenManager of the parser configuration.
-
getTokenManagerUsesParserProvider
final Provider<String> getTokenManagerUsesParserProvider()
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 provider for tokenManagerUsesParser property.
-
getTokenManagerUsesParser
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 <set-?>)
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.
-
getSanityCheckProvider
final Provider<String> getSanityCheckProvider()
SANITY_CHECK: JavaCC performs many syntactic and semantic checks on the grammar file during parser generation. This is the provider for sanityCheck property.
-
getSanityCheck
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 <set-?>)
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.
-
getForceLaCheckProvider
final Provider<String> getForceLaCheckProvider()
FORCE_LA_CHECK: This option setting controls lookahead ambiguity checking performed by JavaCC. This is the provider for forceLaCheck property.
-
getForceLaCheck
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 <set-?>)
FORCE_LA_CHECK: This option setting controls lookahead ambiguity checking performed by JavaCC. This is the property forceLaCheck of the parser configuration.
-
getCacheTokensProvider
final Provider<String> getCacheTokensProvider()
CACHE_TOKENS: Setting this option to true causes the generated parser to lookahead for extra tokens ahead of time. This is the provider for cacheTokens property.
-
getCacheTokens
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 <set-?>)
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.
-
getKeepLineColumnProvider
final Provider<String> getKeepLineColumnProvider()
KEEP_LINE_COLUMN: If you set this option to false, the generated CharStream will not have any line/column tracking code. This is the provider for keepLineColumn property.
-
getKeepLineColumn
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 <set-?>)
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.
-
getTokenExtendsProvider
final Provider<String> getTokenExtendsProvider()
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 provider for tokenExtends property.
-
getTokenExtends
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 <set-?>)
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.
-
getTokenFactoryProvider
final Provider<String> getTokenFactoryProvider()
TOKEN_FACTORY: This is a string option whose default value is "", meaning that Tokens will be created by calling Token.newToken(). This is the provider for tokenFactory property.
-
getTokenFactory
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 <set-?>)
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.
-
getArgsProvider
final Provider<List<String>> getArgsProvider()
Provider for property with additional command line arguments passed to javaCC.
-
getArgs
final List<String> getArgs()
Property with additional command line arguments passed to javaCC.
-
setArgs
final Unit setArgs(List<String> value)
Property with additional command line arguments passed to javaCC.
-
addArg
final Unit addArg(String argument)
Add single argument to the command line arguments passed to javaCC.
-
addArgs
final Unit addArgs(List<String> args)
Add a list of arguments to the command line arguments passed to javaCC.
-
getJavaCCTaskName
final String getJavaCCTaskName()
Calculate the task name.
- Returns:
task name
-
-
-
-