Method Summary |
|
public void | execute() Run the task. |
protected static File | getArchiveFile(File home) Helper method to retrieve the path used to store the JavaCC.zip
or javacc.jar which is different from versions.
Parameters: home - the javacc home path directory. throws: BuildException - thrown if the home directory is invalidor if the archive could not be found despite attempts to do so. |
protected static String | getMainClass(File home, int type) Helper method to retrieve main class which is different from versions.
Parameters: home - the javacc home path directory. Parameters: type - the taskdef. throws: BuildException - thrown if the home directory is invalidor if the archive could not be found despite attempts to do so. |
protected static String | getMainClass(Path path, int type) Helper method to retrieve main class which is different from versions.
Parameters: path - classpath to search in. Parameters: type - the taskdef. throws: BuildException - thrown if the home directory is invalidor if the archive could not be found despite attempts to do so. |
protected static int | getMajorVersionNumber(File home) Helper method to determine the major version number of JavaCC.
Parameters: home - the javacc home path directory. throws: BuildException - thrown if the home directory is invalidor if the archive could not be found despite attempts to do so. |
public void | setBuildparser(boolean buildParser) Sets the BUILD_PARSER grammar option. |
public void | setBuildtokenmanager(boolean buildTokenManager) Sets the BUILD_TOKEN_MANAGER grammar option. |
public void | setCachetokens(boolean cacheTokens) Sets the CACHE_TOKENS grammar option. |
public void | setChoiceambiguitycheck(int choiceAmbiguityCheck) Sets the CHOICE_AMBIGUITY_CHECK grammar option. |
public void | setCommontokenaction(boolean commonTokenAction) Sets the COMMON_TOKEN_ACTION grammar option. |
public void | setDebuglookahead(boolean debugLookahead) Sets the DEBUG_LOOKAHEAD grammar option. |
public void | setDebugparser(boolean debugParser) Sets the DEBUG_PARSER grammar option. |
public void | setDebugtokenmanager(boolean debugTokenManager) Sets the DEBUG_TOKEN_MANAGER grammar option. |
public void | setErrorreporting(boolean errorReporting) Sets the ERROR_REPORTING grammar option. |
public void | setForcelacheck(boolean forceLACheck) Sets the FORCE_LA_CHECK grammar option. |
public void | setIgnorecase(boolean ignoreCase) Sets the IGNORE_CASE grammar option. |
public void | setJDKversion(String jdkVersion) Sets the JDK_VERSION option. |
public void | setJavacchome(File javaccHome) The directory containing the JavaCC distribution. |
public void | setJavaunicodeescape(boolean javaUnicodeEscape) Sets the JAVA_UNICODE_ESCAPE grammar option. |
public void | setKeeplinecolumn(boolean keepLineColumn) Sets the KEEP_LINE_COLUMN grammar option. |
public void | setLookahead(int lookahead) Sets the LOOKAHEAD grammar option. |
public void | setOptimizetokenmanager(boolean optimizeTokenManager) Sets the OPTIMIZE_TOKEN_MANAGER grammar option. |
public void | setOtherambiguityCheck(int otherAmbiguityCheck) Sets the OTHER_AMBIGUITY_CHECK grammar option. |
public void | setOutputdirectory(File outputDirectory) The directory to write the generated files to. |
public void | setSanitycheck(boolean sanityCheck) Sets the SANITY_CHECK grammar option. |
public void | setStatic(boolean staticParser) Sets the STATIC grammar option. |
public void | setTarget(File targetFile) The grammar file to process. |
public void | setUnicodeinput(boolean unicodeInput) Sets the UNICODE_INPUT grammar option. |
public void | setUsercharstream(boolean userCharStream) Sets the USER_CHAR_STREAM grammar option. |
public void | setUsertokenmanager(boolean userTokenManager) Sets the USER_TOKEN_MANAGER grammar option. |