Modifier and Type | Field and Description |
---|---|
private static final String | |
private CommandlineJava | |
private static final String | |
private File | |
private 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 final Map | |
private static final String | |
private File | |
private String | |
private static final String | |
private File | |
private static final String | |
private static final String |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
private String | |
public void | |
private String | |
private File | |
private String | |
public void | |
public void | setJavacchome(File
the directory containing JavaCC. javaccHome)The directory containing the JavaCC distribution. |
public void | |
public void | |
public void | setNodedefaultvoid(boolean
a nodeDefaultVoid)boolean value.Sets the NODE_DEFAULT_VOID grammar option. |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | setOutputdirectory(File
the output directory. outputDirectory)The directory to write the generated JavaCC grammar and node files to. |
public void | setOutputfile(String
the output file name. outputFile)The outputfile to write the generated JavaCC grammar file to. |
public void | |
public void | |
public void | |
public void | setVisitorException(String
the option to use. visitorException)Sets the VISITOR_EXCEPTION grammar option. |
private String | Returns: validation file, relative if possible;null if not setString destFile, String String outputDir)When running JJTree from an Ant taskdesk the -OUTPUT_DIRECTORY must always be set. |
BUILD_NODE_FILES | back to summary |
---|---|
private static final String BUILD_NODE_FILES |
cmdl | back to summary |
---|---|
private CommandlineJava cmdl |
DEFAULT_SUFFIX | back to summary |
---|---|
private static final String DEFAULT_SUFFIX |
javaccHome | back to summary |
---|---|
private File javaccHome |
maxMemory | back to summary |
---|---|
private String maxMemory |
MULTI | back to summary |
---|---|
private static final String MULTI |
NODE_DEFAULT_VOID | back to summary |
---|---|
private static final String NODE_DEFAULT_VOID |
NODE_FACTORY | back to summary |
---|---|
private static final String NODE_FACTORY |
NODE_PACKAGE | back to summary |
---|---|
private static final String NODE_PACKAGE |
NODE_PREFIX | back to summary |
---|---|
private static final String NODE_PREFIX |
NODE_SCOPE_HOOK | back to summary |
---|---|
private static final String NODE_SCOPE_HOOK |
NODE_USES_PARSER | back to summary |
---|---|
private static final String NODE_USES_PARSER |
optionalAttrs | back to summary |
---|---|
private final Map<String, Object> optionalAttrs |
OUTPUT_FILE | back to summary |
---|---|
private static final String OUTPUT_FILE |
outputDirectory | back to summary |
---|---|
private File outputDirectory |
outputFile | back to summary |
---|---|
private String outputFile |
STATIC | back to summary |
---|---|
private static final String STATIC |
targetFile | back to summary |
---|---|
private File targetFile |
VISITOR | back to summary |
---|---|
private static final String VISITOR |
VISITOR_EXCEPTION | back to summary |
---|---|
private static final String VISITOR_EXCEPTION |
JJTree | back to summary |
---|---|
public JJTree() Constructor |
createOutputFileName | back to summary |
---|---|
private String createOutputFileName(File destFile, String optionalOutputFile, String outputDir) |
execute | back to summary |
---|---|
public void execute() throws BuildException Overrides org. Run the task.
|
getDefaultOutputDirectory | back to summary |
---|---|
private String getDefaultOutputDirectory() |
getRoot | back to summary |
---|---|
private File getRoot(File file) Determine root directory for a given file. |
makeOutputFileRelative | back to summary |
---|---|
private String makeOutputFileRelative(String destFile) |
setBuildnodefiles | back to summary |
---|---|
public void setBuildnodefiles(boolean buildNodeFiles) Sets the BUILD_NODE_FILES grammar option.
|
setJavacchome | back to summary |
---|---|
public void setJavacchome(File javaccHome) The directory containing the JavaCC distribution.
|
setMaxmemory | back to summary |
---|---|
public void setMaxmemory(String max) Corresponds -Xmx.
|
setMulti | back to summary |
---|---|
public void setMulti(boolean multi) Sets the MULTI grammar option.
|
setNodedefaultvoid | back to summary |
---|---|
public void setNodedefaultvoid(boolean nodeDefaultVoid) Sets the NODE_DEFAULT_VOID grammar option.
|
setNodefactory | back to summary |
---|---|
public void setNodefactory(boolean nodeFactory) Sets the NODE_FACTORY grammar option.
|
setNodepackage | back to summary |
---|---|
public void setNodepackage(String nodePackage) Sets the NODE_PACKAGE grammar option.
|
setNodeprefix | back to summary |
---|---|
public void setNodeprefix(String nodePrefix) Sets the NODE_PREFIX grammar option.
|
setNodescopehook | back to summary |
---|---|
public void setNodescopehook(boolean nodeScopeHook) Sets the NODE_SCOPE_HOOK grammar option.
|
setNodeusesparser | back to summary |
---|---|
public void setNodeusesparser(boolean nodeUsesParser) Sets the NODE_USES_PARSER grammar option.
|
setOutputdirectory | back to summary |
---|---|
public void setOutputdirectory(File outputDirectory) The directory to write the generated JavaCC grammar and node files to. If not set, the files are written to the directory containing the grammar file.
|
setOutputfile | back to summary |
---|---|
public void setOutputfile(String outputFile) The outputfile to write the generated JavaCC grammar file to. If not set, the file is written with the same name as the JJTree grammar file with a suffix .jj.
|
setStatic | back to summary |
---|---|
public void setStatic(boolean staticParser) Sets the STATIC grammar option.
|
setTarget | back to summary |
---|---|
public void setTarget(File targetFile) The jjtree grammar file to process.
|
setVisitor | back to summary |
---|---|
public void setVisitor(boolean visitor) Sets the VISITOR grammar option.
|
setVisitorException | back to summary |
---|---|
public void setVisitorException(String visitorException) Sets the VISITOR_EXCEPTION grammar option.
|
validateOutputFile | back to summary |
---|---|
private String validateOutputFile(String destFile, String outputDir) throws BuildException When running JJTree from an Ant taskdesk the -OUTPUT_DIRECTORY must always be set. But when -OUTPUT_DIRECTORY is set, -OUTPUT_FILE is handled as if relative of this -OUTPUT_DIRECTORY. Thus when the -OUTPUT_FILE is absolute or contains a drive letter we have a problem.
|