Modifier and Type | Field and Description |
---|---|
protected static final String[] | |
protected static final int[] | |
private static final String | |
private static final String | |
private static final String | |
private static final String | |
private CommandlineJava | |
protected static final String | |
protected static final String | |
protected static final String | |
protected static final String | |
private static final String | |
private static final String | |
private static final String | |
private static final String | |
private static final String | |
private static final String | |
private static final String | |
private static final String | |
private File | |
private static final String | |
private static final String | |
private static final String | |
private String | |
private static final String | |
private final Map | |
protected static final String | |
protected static final String | |
protected static final String | |
protected static final String | |
protected static final String | |
private static final String | |
private File | |
private static final String | |
private static final String | |
private File | |
protected static final int | |
protected static final int | |
protected static final int | |
private static final String | |
private static final String | |
private static final String |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public void | |
protected static File | Returns: the file object pointing to the JavaCC archive.the javacc home path directory. home)Helper method to retrieve the path used to store the JavaCC.zip or javacc.jar which is different from versions. |
private static int | Returns: the archive location indexthe javacc home path directory. home)Helper method to determine the archive location index. |
protected static String | Returns: the main class for the taskdef.the javacc home path directory. home, int the taskdef. type)Helper method to retrieve main class which is different from versions. |
protected static String | Returns: the main class for the taskdef.classpath to search in. path, int the taskdef. type)Helper method to retrieve main class which is different from versions. |
protected static int | Returns: a the major version numberthe javacc home path directory. home)Helper method to determine the major version number of JavaCC. |
private File | getOutputJavaFile(File outputdir, File srcfile)
Determines the output Java file to be generated by the given grammar file. |
public void | |
public void | setBuildtokenmanager(boolean
a buildTokenManager)boolean value.Sets the BUILD_TOKEN_MANAGER grammar option. |
public void | |
public void | setChoiceambiguitycheck(int
an choiceAmbiguityCheck)int value.Sets the CHOICE_AMBIGUITY_CHECK grammar option. |
public void | setCommontokenaction(boolean
a commonTokenAction)boolean value.Sets the COMMON_TOKEN_ACTION grammar option. |
public void | |
public void | |
public void | setDebugtokenmanager(boolean
a debugTokenManager)boolean value.Sets the DEBUG_TOKEN_MANAGER grammar option. |
public void | |
public void | |
public void | |
public void | |
public void | setJavaunicodeescape(boolean
a javaUnicodeEscape)boolean value.Sets the JAVA_UNICODE_ESCAPE grammar option. |
public void | |
public void | |
public void | |
public void | |
public void | setOptimizetokenmanager(boolean
a optimizeTokenManager)boolean value.Sets the OPTIMIZE_TOKEN_MANAGER grammar option. |
public void | setOtherambiguityCheck(int
an otherAmbiguityCheck)int value.Sets the OTHER_AMBIGUITY_CHECK grammar option. |
public void | setOutputdirectory(File
the output directory. outputDirectory)The directory to write the generated files to. |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | setUsertokenmanager(boolean
a userTokenManager)boolean value.Sets the USER_TOKEN_MANAGER grammar option. |
ARCHIVE_LOCATIONS | back to summary |
---|---|
protected static final String[] ARCHIVE_LOCATIONS |
ARCHIVE_LOCATIONS_VS_MAJOR_VERSION | back to summary |
---|---|
protected static final int[] ARCHIVE_LOCATIONS_VS_MAJOR_VERSION |
BUILD_PARSER | back to summary |
---|---|
private static final String BUILD_PARSER |
BUILD_TOKEN_MANAGER | back to summary |
---|---|
private static final String BUILD_TOKEN_MANAGER |
CACHE_TOKENS | back to summary |
---|---|
private static final String CACHE_TOKENS |
CHOICE_AMBIGUITY_CHECK | back to summary |
---|---|
private static final String CHOICE_AMBIGUITY_CHECK |
cmdl | back to summary |
---|---|
private CommandlineJava cmdl |
COM_JAVACC_CLASS | back to summary |
---|---|
protected static final String COM_JAVACC_CLASS |
COM_JJDOC_CLASS | back to summary |
---|---|
protected static final String COM_JJDOC_CLASS |
COM_JJTREE_CLASS | back to summary |
---|---|
protected static final String COM_JJTREE_CLASS |
COM_PACKAGE | back to summary |
---|---|
protected static final String COM_PACKAGE |
COMMON_TOKEN_ACTION | back to summary |
---|---|
private static final String COMMON_TOKEN_ACTION |
DEBUG_LOOKAHEAD | back to summary |
---|---|
private static final String DEBUG_LOOKAHEAD |
DEBUG_PARSER | back to summary |
---|---|
private static final String DEBUG_PARSER |
DEBUG_TOKEN_MANAGER | back to summary |
---|---|
private static final String DEBUG_TOKEN_MANAGER |
ERROR_REPORTING | back to summary |
---|---|
private static final String ERROR_REPORTING |
FORCE_LA_CHECK | back to summary |
---|---|
private static final String FORCE_LA_CHECK |
IGNORE_CASE | back to summary |
---|---|
private static final String IGNORE_CASE |
JAVA_UNICODE_ESCAPE | back to summary |
---|---|
private static final String JAVA_UNICODE_ESCAPE |
javaccHome | back to summary |
---|---|
private File javaccHome |
JDK_VERSION | back to summary |
---|---|
private static final String JDK_VERSION |
KEEP_LINE_COLUMN | back to summary |
---|---|
private static final String KEEP_LINE_COLUMN |
LOOKAHEAD | back to summary |
---|---|
private static final String LOOKAHEAD |
maxMemory | back to summary |
---|---|
private String maxMemory |
OPTIMIZE_TOKEN_MANAGER | back to summary |
---|---|
private static final String OPTIMIZE_TOKEN_MANAGER |
optionalAttrs | back to summary |
---|---|
private final Map<String, Object> optionalAttrs |
ORG_JAVACC_CLASS | back to summary |
---|---|
protected static final String ORG_JAVACC_CLASS |
ORG_JJDOC_CLASS | back to summary |
---|---|
protected static final String ORG_JJDOC_CLASS |
ORG_JJTREE_CLASS | back to summary |
---|---|
protected static final String ORG_JJTREE_CLASS |
ORG_PACKAGE_3_0 | back to summary |
---|---|
protected static final String ORG_PACKAGE_3_0 |
ORG_PACKAGE_3_1 | back to summary |
---|---|
protected static final String ORG_PACKAGE_3_1 |
OTHER_AMBIGUITY_CHECK | back to summary |
---|---|
private static final String OTHER_AMBIGUITY_CHECK |
outputDirectory | back to summary |
---|---|
private File outputDirectory |
SANITY_CHECK | back to summary |
---|---|
private static final String SANITY_CHECK |
STATIC | back to summary |
---|---|
private static final String STATIC |
targetFile | back to summary |
---|---|
private File targetFile |
TASKDEF_TYPE_JAVACC | back to summary |
---|---|
protected static final int TASKDEF_TYPE_JAVACC |
TASKDEF_TYPE_JJDOC | back to summary |
---|---|
protected static final int TASKDEF_TYPE_JJDOC |
TASKDEF_TYPE_JJTREE | back to summary |
---|---|
protected static final int TASKDEF_TYPE_JJTREE |
UNICODE_INPUT | back to summary |
---|---|
private static final String UNICODE_INPUT |
USER_CHAR_STREAM | back to summary |
---|---|
private static final String USER_CHAR_STREAM |
USER_TOKEN_MANAGER | back to summary |
---|---|
private static final String USER_TOKEN_MANAGER |
JavaCC | back to summary |
---|---|
public JavaCC() Constructor |
execute | back to summary |
---|---|
public void execute() throws BuildException Overrides org. Run the task.
|
getArchiveFile | back to summary |
---|---|
protected static File getArchiveFile(File home) throws BuildException Helper method to retrieve the path used to store the JavaCC.zip or javacc.jar which is different from versions.
|
getArchiveLocationIndex | back to summary |
---|---|
private static int getArchiveLocationIndex(File home) throws BuildException Helper method to determine the archive location index.
|
getMainClass | back to summary |
---|---|
protected static String getMainClass(File home, int type) throws BuildException Helper method to retrieve main class which is different from versions.
|
getMainClass | back to summary |
---|---|
protected static String getMainClass(Path path, int type) throws BuildException Helper method to retrieve main class which is different from versions.
|
getMajorVersionNumber | back to summary |
---|---|
protected static int getMajorVersionNumber(File home) throws BuildException Helper method to determine the major version number of JavaCC.
|
getOutputJavaFile | back to summary |
---|---|
private File getOutputJavaFile(File outputdir, File srcfile) Determines the output Java file to be generated by the given grammar file. |
setBuildparser | back to summary |
---|---|
public void setBuildparser(boolean buildParser) Sets the BUILD_PARSER grammar option.
|
setBuildtokenmanager | back to summary |
---|---|
public void setBuildtokenmanager(boolean buildTokenManager) Sets the BUILD_TOKEN_MANAGER grammar option.
|
setCachetokens | back to summary |
---|---|
public void setCachetokens(boolean cacheTokens) Sets the CACHE_TOKENS grammar option.
|
setChoiceambiguitycheck | back to summary |
---|---|
public void setChoiceambiguitycheck(int choiceAmbiguityCheck) Sets the CHOICE_AMBIGUITY_CHECK grammar option.
|
setCommontokenaction | back to summary |
---|---|
public void setCommontokenaction(boolean commonTokenAction) Sets the COMMON_TOKEN_ACTION grammar option.
|
setDebuglookahead | back to summary |
---|---|
public void setDebuglookahead(boolean debugLookahead) Sets the DEBUG_LOOKAHEAD grammar option.
|
setDebugparser | back to summary |
---|---|
public void setDebugparser(boolean debugParser) Sets the DEBUG_PARSER grammar option.
|
setDebugtokenmanager | back to summary |
---|---|
public void setDebugtokenmanager(boolean debugTokenManager) Sets the DEBUG_TOKEN_MANAGER grammar option.
|
setErrorreporting | back to summary |
---|---|
public void setErrorreporting(boolean errorReporting) Sets the ERROR_REPORTING grammar option.
|
setForcelacheck | back to summary |
---|---|
public void setForcelacheck(boolean forceLACheck) Sets the FORCE_LA_CHECK grammar option.
|
setIgnorecase | back to summary |
---|---|
public void setIgnorecase(boolean ignoreCase) Sets the IGNORE_CASE grammar option.
|
setJavacchome | back to summary |
---|---|
public void setJavacchome(File javaccHome) The directory containing the JavaCC distribution.
|
setJavaunicodeescape | back to summary |
---|---|
public void setJavaunicodeescape(boolean javaUnicodeEscape) Sets the JAVA_UNICODE_ESCAPE grammar option.
|
setJDKversion | back to summary |
---|---|
public void setJDKversion(String jdkVersion) Sets the JDK_VERSION option.
|
setKeeplinecolumn | back to summary |
---|---|
public void setKeeplinecolumn(boolean keepLineColumn) Sets the KEEP_LINE_COLUMN grammar option.
|
setLookahead | back to summary |
---|---|
public void setLookahead(int lookahead) Sets the LOOKAHEAD grammar option.
|
setMaxmemory | back to summary |
---|---|
public void setMaxmemory(String max) Corresponds -Xmx.
|
setOptimizetokenmanager | back to summary |
---|---|
public void setOptimizetokenmanager(boolean optimizeTokenManager) Sets the OPTIMIZE_TOKEN_MANAGER grammar option.
|
setOtherambiguityCheck | back to summary |
---|---|
public void setOtherambiguityCheck(int otherAmbiguityCheck) Sets the OTHER_AMBIGUITY_CHECK grammar option.
|
setOutputdirectory | back to summary |
---|---|
public void setOutputdirectory(File outputDirectory) The directory to write the generated files to. If not set, the files are written to the directory containing the grammar file.
|
setSanitycheck | back to summary |
---|---|
public void setSanitycheck(boolean sanityCheck) Sets the SANITY_CHECK grammar option.
|
setStatic | back to summary |
---|---|
public void setStatic(boolean staticParser) Sets the STATIC grammar option.
|
setTarget | back to summary |
---|---|
public void setTarget(File targetFile) The grammar file to process.
|
setUnicodeinput | back to summary |
---|---|
public void setUnicodeinput(boolean unicodeInput) Sets the UNICODE_INPUT grammar option.
|
setUsercharstream | back to summary |
---|---|
public void setUsercharstream(boolean userCharStream) Sets the USER_CHAR_STREAM grammar option.
|
setUsertokenmanager | back to summary |
---|---|
public void setUsertokenmanager(boolean userTokenManager) Sets the USER_TOKEN_MANAGER grammar option.
|